بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

Quran API Documentation

The following endpoints are supported by the Quran API. They all support the HTTP GET method and return JSON.

All these endpoints give you a JSON object describing an edition. From this object, you need to use the identifer to get data from other endpoints in this API. For any of the endpoints that require an edition identifier, if you do not specify one, 'quran-uthmani' is used and returns the Arabic text of the Holy Quran.

Endpoint
Description
Example
1. http://api.alquran.cloud/edition
Lists all available editions. You can filter the results using the parameters below.

Parameters

  • format - Specify a format. 'text' or 'audio
  • language - A 2 digit language code. Example: 'en', 'fr', etc.
  • type - A valid type. Example - 'versebyverse', 'translation' etc.
  1. http://api.alquran.cloud/edition - Lists all editions
  2. http://api.alquran.cloud/edition?format=audio&language=fr&type=versebyverse - Lists all audio editions in french of the versebyverse type
2. http://api.alquran.cloud/edition/language
Lists all languages in which editions are available
3. http://api.alquran.cloud/edition/language/{{language}}
Lists all editions for a given language
{{language}} is a 2 digit language code. Example: en for English, fr for French, ar for Arabic
4. http://api.alquran.cloud/edition/type
Lists all types of editions
5. http://api.alquran.cloud/edition/type/{{type}}
Lists all editions for a given type
{{type}} can be 'translation', 'tafsir' or another result returned in 4 above
6. http://api.alquran.cloud/edition/format
Lists all formats
7. http://api.alquran.cloud/edition/format/{{format}}
Lists all editions for a given format
{{format}} can be 'audio' or 'text'

NOTE that audio and text edition responses differ. See examples for the response.

Endpoint
Description
Example
1. http://api.alquran.cloud/quran/{{edition}}
Returns a complete Quran edition in the audio or text format
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation
  1. http://api.alquran.cloud/quran/en.asad - (Text) Returns Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/quran/quran-uthmani - (Text) Returns the text of the Holy Quran
  3. http://api.alquran.cloud/quran/ar.alafasy - (Audio) Returns Mishary Alafasy's recitation of the Quran

The Quran has 30 Juz. You can get the text for each Juz using the endpoint below.

Endpoint
Description
Example
1. http://api.alquran.cloud/juz/{{juz}}/{{edition}}

Returns the requested juz from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation

Optional Parameters:
  • offset - Offset ayahs in a juz by the given number
  • limit - This is the number of ayahs that the response will be limited to.
  1. http://api.alquran.cloud/juz/30/en.asad - Returns Juz 30 from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/juz/30/quran-uthmani - Returns the text of Juz 30 of the Holy Quran
  3. http://api.alquran.cloud/juz/1/quran-uthmani?offset=3&limit=10 - Returns the the ayahs 4-13 from Juz 1

The Quran has 114 Surahs. You can get a list of all of them or all the ayahs for a particular surah using the endpoints below.

Endpoint
Description
Example
1. http://api.alquran.cloud/surah
Returns the list of Surahs in the Quran
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation Optional Parameters:
  • offset - Offset ayahs in a juz by the given number
  • limit - This is the number of ayahs that the response will be limited to.
2. http://api.alquran.cloud/surah/{{surah}}/{{edition}}
Returns the requested surah from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation
  1. http://api.alquran.cloud/surah/114/en.asad - Returns Surat An-Naas from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/surah/114/ar.alafasy - Returns Mishary Alafasy's recitation of Surat An-Naas
  3. http://api.alquran.cloud/surah/114 - Returns Arabic text of Surat An-Naas
  4. http://api.alquran.cloud/surah/1?offset=1&limit=3 - Returns verses 2-4 of Surah Al-Fatiha
3. http://api.alquran.cloud/surah/{{surah}}/editions/{{edition}},{{edition}}
Returns the requested surah from multiple editions
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation. You can specify multiple identifiers separated by a comma.
  1. http://api.alquran.cloud/surah/114/editions/quran-uthmani,en.asad,en.pickthall - Returns Surat An-Naas from 3 editions: Simple Quran, Muhammad Asad and Marmaduke Pickthall

The Quran contains 6236 verses. With this endpoint, you can retrieve any of those verses.

Endpoint
Description
Example
1. http://api.alquran.cloud/ayah/{{reference}}/{{edition}}
Returns an ayah for a given edition.
{{reference}} here can be the ayah number or the surah:ayah. For instance, 262 or 2:255 will both get you Ayat Al Kursi
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation
  1. http://api.alquran.cloud/ayah/262 - (Text) Returns Muhammad Asad's translation Ayat Al Kursi
  2. http://api.alquran.cloud/ayah/2:255 - (Text) Returns Muhammad Asad's translation Ayat Al Kursi
  3. http://api.alquran.cloud/ayah/262/ar.alafasy - (Audio) Returns Mishary Alafasy's recitation of the Ayat Al Kursi
  4. http://api.alquran.cloud/ayah/262 - (Text) Returns the Arabic text of Ayat Al Kursi
2. http://api.alquran.cloud/ayah/{{reference}}/editions/{{edition}},{{edition}}
Returns an ayah for multiple edtitions.
{{reference}} here can be the ayah number or the surah:ayah. For instance, 262 or 2:255 will both get you Ayat Al Kursi
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation. You can specify multiple editions separated by a comma
  1. http://api.alquran.cloud/ayah/262/editions/quran-uthmani,en.asad,en.pickthall - (Text) Returns Ayat Al Kursi from 3 editions: Simple Quran, Muhammad Asad and Maramduke Pickthall

Please note that only text editions of the Quran are searchable.

Endpoint
Description
Example
1. http://api.alquran.cloud/search/{{keyword}}/{{surah}}/{{edition or language}}
Returns ayahs that match a keyword in a given edition or language. If you do not specify an edition or language, all english language texts are searched.
{{surah}} Enter a surah number (between 1 and 114) to search a specific surah or 'all' to search all the text {{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation
{language} is 2 digit alpha language code. Example: en for English, fr for french
  1. http://api.alquran.cloud/search/Abraham/all/en - (Text) Returns all ayahs that contain the word 'Abraham' in all the english editions
  2. http://api.alquran.cloud/search/Abraham/all/en.pickthall - (Text) Returns all ayahs that contain the word 'Abraham' in Maramduke Pickthall's English translation
  3. http://api.alquran.cloud/search/Abraham/37/en.pickthall - (Text) Returns all ayahs that contain the word 'Abraham' Surat As-Saafaat in Maramduke Pickthall's English translation

The Quran has 7 Manzils (for those who want to read / recite it over one week). You can get the text for each Manzil using the endpoint below.

Endpoint
Description
Example
1. http://api.alquran.cloud/manzil/{{manzil}}/{{edition}}

Returns the requested manzil from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation

Optional Parameters:
  • offset - Offset ayahs in a manzil by the given number
  • limit - This is the number of ayahs that the response will be limited to.
  1. http://api.alquran.cloud/manzil/7/en.asad - Returns manzil 7 from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/manzil/7/quran-uthmani - Returns the text of Manzil 7 of the Holy Quran
  3. http://api.alquran.cloud/manzil/7/quran-uthmani?offset=3&limit=10 - Returns the the ayahs 4-13 from Manzil 7

The Quran has 556 Rukus. You can get the text for each Ruku using the endpoint below.

Endpoint
Description
Example
1. http://api.alquran.cloud/ruku/{{ruku}}/{{edition}}

Returns the requested ruku from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation

Optional Parameters:
  • offset - Offset ayahs in a ruku by the given number
  • limit - This is the number of ayahs that the response will be limited to.
  1. http://api.alquran.cloud/ruku/7/en.asad - Returns ruku 7 from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/ruku/7/quran-uthmani - Returns the text of ruku 7 of the Holy Quran
  3. http://api.alquran.cloud/ruku/7/quran-uthmani?offset=3&limit=3 - Returns the the ayahs 4-6 from ruku 7

The Quran is traditionally printed / written on 604 pages. You can get the text for each page using the endpoint below.

Endpoint
Description
Example
1. http://api.alquran.cloud/page/{{page}}/{{edition}}

Returns the requested page from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation

Optional Parameters:
  • offset - Offset ayahs in a page by the given number
  • limit - This is the number of ayahs that the response will be limited to.
  1. http://api.alquran.cloud/page/1/en.asad - Returns page 1 from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/page/1/quran-uthmani - Returns the text of page 1 of the Holy Quran
  3. http://api.alquran.cloud/page/1/quran-uthmani?offset=2&limit=2 - Returns the the ayahs 3-4 from page 1

The Quran comprises 240 Hizb Quarters. One Hizb is half a Juz.

Endpoint
Description
Example
1. http://api.alquran.cloud/hizbQuarter/{{hizb}}/{{edition}}

Returns the requested Hizb Quarter from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation

Optional Parameters:
  • offset - Offset ayahs in a hizb quarter by the given number
  • limit - This is the number of ayahs that the response will be limited to.
  1. http://api.alquran.cloud/hizbQuarter/1/en.asad - Returns hizb quarter 1 from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/hizbQuarter/1/quran-uthmani - Returns the text of hizb quarater 1 of the Holy Quran
  3. http://api.alquran.cloud/hizbQuarter/1/quran-uthmani?offset=2&limit=2 - Returns the the ayahs 3-4 from hizb Quarter 1

Depending on the madhab, there can be 14, 15 or 16 sajdas. This API has 15.

Endpoint
Description
Example
1. http://api.alquran.cloud/sajda/{{edition}}

Returns all the sajda ayahs from a particular edition
{{edition}} is an edition identifier. Example: en.asad for Muhammad Asad's english translation

  1. http://api.alquran.cloud/sajda/en.asad - Returns sajda ayahs from Muhammad Asad's translation of the Holy Quran
  2. http://api.alquran.cloud/sajda/quran-uthmani - Returns the text of sajda ayahs of the Holy Quran

Base URLs

The API is available via 2 Base URLs - 1 in Europe and 1 in China.

http://api.alquran.cloud - Available over http and https - based in Europe. Powered by multiple load balanced instances - please use this if you are outside China or expect heavy usage.
http://api.quran.2muslim.org - Available over http and https - licensed and based in China. This is a single instance endpoint - if you expect heavy usage, use the European endpoint or contact us, please. This instance has been kindly provided by ZhongMuWang(中穆网).

Developer Resources

For API clients and other tools, see our open source repositories on GitHub.