---
title: "Quran API Reference | APIFor"
description: "Endpoint reference for the Quran service: parameters, request bodies, example responses, status codes and credits per call."
canonical: "https://apifor.dev/docs/reference/quran/"
---

**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](https://apifor.dev/services/quran/) page.

GET `/v1/quran/surahs` 1 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

```bash
curl 'https://api.apifor.dev/v1/quran/surahs' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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/."
    }
  }
}
```

- `200` OK. meta.attribution names the source and licence.
- `400` Validation error
- `404` Not found

GET `/v1/quran/{surah}` 1 credit

All 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) |

GET /v1/quran/{surah}

```bash
curl 'https://api.apifor.dev/v1/quran/ID' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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/."
    }
  }
}
```

- `200` OK. meta.attribution names the source and licence.
- `400` Validation error
- `404` Not found

GET `/v1/quran/{surah}/{ayah}` 1 credit

One 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) |

GET /v1/quran/{surah}/{ayah}

```bash
curl 'https://api.apifor.dev/v1/quran/ID/ID' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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/."
    }
  }
}
```

- `200` OK. meta.attribution names the source and licence.
- `400` Validation error
- `404` Not found

GET `/v1/quran/search` 1 credit

Search 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 |

GET /v1/quran/search

```bash
curl 'https://api.apifor.dev/v1/quran/search?q=' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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/."
    }
  }
}
```

- `200` OK. meta.attribution names the source and licence.
- `400` Validation error
- `404` Not found

GET `/v1/quran/coverage` Free

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

```bash
curl 'https://api.apifor.dev/v1/quran/coverage' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "success": true,
  "data": {
    "service": "quran",
    "global": true,
    "country_param": "none",
    "param_name": "country",
    "countries": []
  }
}
```

- `200` Coverage

[Error handling](https://apifor.dev/docs/errors/) · [Rate limits](https://apifor.dev/docs/rate-limits/) · [Prices](https://apifor.dev/pricing/#services)
