Client samples · أمثلة
Get started in four languages
Each sample below makes the same call — fetch Sūrah Al-Fātiḥa with the Saheeh International translation and print each āyah. Copy, paste, adjust the edition identifier.
The request
GET https://api.alquran.cloud/v1/surah/1/en.sahihInstall
npm install node-fetch # or use native fetch in Node 18+Sample call
// fetch Sūrah Al-Fātiḥa with the Saheeh International translation
const res = await fetch(
"https://api.alquran.cloud/v1/surah/1/en.sahih"
);
const { data } = await res.json();
console.log(`${data.englishName} — ${data.englishNameTranslation}`);
for (const ayah of data.ayahs) {
console.log(`${ayah.numberInSurah}. ${ayah.text}`);
}
Official libraries
- Islamic Network SDKs (TypeScript, PHP) — https://1x.ax/islamic-network/sdks
- Al Quran Cloud Tools (PHP) — https://1x.ax/islamic-network/alquran/tools