Quran API Reference
5 routes. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Quran text API page.
GET
/v1/quran/surahs1 creditList the 114 surahs with Arabic and Latin names and ayah counts. Text from Tanzil (CC BY 3.0, verbatim). 1 credit.
curl 'https://api.apifor.dev/v1/quran/surahs' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"number": 1,
"name_arabic": "الفاتحة",
"name_latin": "Al-Fatihah",
"ayah_count": 7,
"revelation_place": "mecca",
"revelation_order": 5
},
{
"number": 2,
"name_arabic": "البقرة",
"name_latin": "Al-Baqarah",
"ayah_count": 286,
"revelation_place": "medina",
"revelation_order": 87
},
{
"number": 3,
"name_arabic": "آل عمران",
"name_latin": "Ali 'Imran",
"ayah_count": 200,
"revelation_place": "medina",
"revelation_order": 89
}
],
"meta": {
"total": 114,
"attribution": {
"source": "Tanzil Project: Tanzil Quran Text (Uthmani and Simple, version 1.1)",
"licence": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license_url": "https://tanzil.net/docs/text_license",
"source_url": "https://tanzil.net",
"attribution_page": "https://apifor.dev/sources",
"notice": "Quran text: Copyright (C) 2007-2026 Tanzil Project, https://tanzil.net. Served verbatim; check updates at https://tanzil.net/updates/."
}
}
}200OK. meta.attribution names the source and licence.400Validation error404Not found
GET
/v1/quran/{surah}1 creditAll ayahs of one surah in Arabic (Tanzil Uthmani and Simple editions, verbatim). No translations. 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| surah * | path | integer | 1 to 114 · Surah number 1-114 |
| edition | query | string | one of uthmani, simple, all · uthmani, simple or all (default all) |
curl 'https://api.apifor.dev/v1/quran/ID' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"number": 1,
"name_arabic": "الفاتحة",
"name_latin": "Al-Fatihah",
"ayah_count": 7,
"revelation_place": "mecca",
"revelation_order": 5,
"ayahs": [
{
"id": "1:1",
"surah": 1,
"ayah": 1,
"text_uthmani": "بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ",
"text_simple": "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ"
},
{
"id": "1:2",
"surah": 1,
"ayah": 2,
"text_uthmani": "ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ",
"text_simple": "الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ"
}
]
},
"meta": {
"attribution": {
"source": "Tanzil Project: Tanzil Quran Text (Uthmani and Simple, version 1.1)",
"licence": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license_url": "https://tanzil.net/docs/text_license",
"source_url": "https://tanzil.net",
"attribution_page": "https://apifor.dev/sources",
"notice": "Quran text: Copyright (C) 2007-2026 Tanzil Project, https://tanzil.net. Served verbatim; check updates at https://tanzil.net/updates/."
}
}
}200OK. meta.attribution names the source and licence.400Validation error404Not found
GET
/v1/quran/{surah}/{ayah}1 creditOne ayah in Arabic (Tanzil Uthmani and Simple editions, verbatim). 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| surah * | path | integer | 1 to 114 · Surah number 1-114 |
| ayah * | path | integer | 1 to 286 · Ayah number |
| edition | query | string | one of uthmani, simple, all · uthmani, simple or all (default all) |
curl 'https://api.apifor.dev/v1/quran/ID/ID' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"id": "1:2",
"surah": 1,
"ayah": 2,
"text_uthmani": "ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ",
"text_simple": "الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ"
},
"meta": {
"attribution": {
"source": "Tanzil Project: Tanzil Quran Text (Uthmani and Simple, version 1.1)",
"licence": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license_url": "https://tanzil.net/docs/text_license",
"source_url": "https://tanzil.net",
"attribution_page": "https://apifor.dev/sources",
"notice": "Quran text: Copyright (C) 2007-2026 Tanzil Project, https://tanzil.net. Served verbatim; check updates at https://tanzil.net/updates/."
}
}
}200OK. meta.attribution names the source and licence.400Validation error404Not found
GET
/v1/quran/search1 creditSearch the Arabic text. Diacritics in the query are ignored (matched against Tanzil's simple-clean edition). 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| q * | query | string | max 100 chars · Arabic text, 2-100 characters |
| edition | query | string | one of uthmani, simple, all · uthmani, simple or all |
| page | query | integer | 1 to 1000 |
| limit | query | integer | 1 to 100 · 1-100, default 20 |
curl 'https://api.apifor.dev/v1/quran/search?q=' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": "1:2",
"surah": 1,
"ayah": 2,
"text_uthmani": "ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ",
"text_simple": "الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ"
}
],
"meta": {
"total": 23,
"page": 1,
"per_page": 1,
"total_pages": 23,
"query": "الحمد لله",
"attribution": {
"source": "Tanzil Project: Tanzil Quran Text (Uthmani and Simple, version 1.1)",
"licence": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license": "Creative Commons Attribution 3.0 (Tanzil terms of use: verbatim copies only, changing the text is not allowed)",
"license_url": "https://tanzil.net/docs/text_license",
"source_url": "https://tanzil.net",
"attribution_page": "https://apifor.dev/sources",
"notice": "Quran text: Copyright (C) 2007-2026 Tanzil Project, https://tanzil.net. Served verbatim; check updates at https://tanzil.net/updates/."
}
}
}200OK. meta.attribution names the source and licence.400Validation error404Not found
GET
/v1/quran/coverageFreeCountries this service covers, with sources, licences, row counts and country-only fields. Free (0 credits), still needs an API key. Price note: Free.
curl 'https://api.apifor.dev/v1/quran/coverage' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"service": "quran",
"global": true,
"country_param": "none",
"param_name": "country",
"countries": []
}
}200Coverage