Quran All docs

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 credit

List the 114 surahs with Arabic and Latin names and ayah counts. Text from Tanzil (CC BY 3.0, verbatim). 1 credit.

GET/v1/quran/surahs
curl 'https://api.apifor.dev/v1/quran/surahs' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 error
  • 404Not found
GET/v1/quran/{surah}1 credit

All ayahs of one surah in Arabic (Tanzil Uthmani and Simple editions, verbatim). No translations. 1 credit.

ParameterInTypeRules
surah *pathinteger1 to 114 · Surah number 1-114
editionquerystringone of uthmani, simple, all · uthmani, simple or all (default all)
GET/v1/quran/{surah}
curl 'https://api.apifor.dev/v1/quran/ID' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 error
  • 404Not found
GET/v1/quran/{surah}/{ayah}1 credit

One ayah in Arabic (Tanzil Uthmani and Simple editions, verbatim). 1 credit.

ParameterInTypeRules
surah *pathinteger1 to 114 · Surah number 1-114
ayah *pathinteger1 to 286 · Ayah number
editionquerystringone of uthmani, simple, all · uthmani, simple or all (default all)
GET/v1/quran/{surah}/{ayah}
curl 'https://api.apifor.dev/v1/quran/ID/ID' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 error
  • 404Not found
GET/v1/quran/coverageFree

Countries this service covers, with sources, licences, row counts and country-only fields. Free (0 credits), still needs an API key. Price note: Free.

GET/v1/quran/coverage
curl 'https://api.apifor.dev/v1/quran/coverage' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "service": "quran",
    "global": true,
    "country_param": "none",
    "param_name": "country",
    "countries": []
  }
}
  • 200Coverage

Error handling · Rate limits · Prices