Quran-api API

Beginner's Pick Books / No Auth Required Beginner HTTPS CORS
Free to Use
88 A
Measured Score 0 50 100 Speed 25/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

This community-maintained Quran API hosts the full Quran text in 90+ languages and 400+ translations as static JSON files on GitHub CDN—no rate limits, no key needed.

Beginner Tip

Because it's static JSON, you can fetch individual chapter files like https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/eng-translation/chapters/1.json. Using jsDelivr CDN keeps it fast worldwide.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions.json
Result
HTTP 200 · application/json · 239,987 bytes · compressed
Response time
43 ms (median of 3) · fastest 42 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Sectigo Limited
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

translated text
source language
target language
confidence score

Captured Response

Captured from a real request to https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions.json on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "aar_sheikhmahmoudab": {
    "name": "aar-sheikhmahmoudab",
    "author": "Sheikh Mahmoud Abdel Qader Hamz And Group Of Scholars",
    "language": "Afar",
    "direction": "ltr",
    "source": "https://qurancomplex.gov.sa/",
    "comments": "This translation was OCRed, in case you find any mistakes, let me know at https://bit.ly/33FuNZS",
    "link": "https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/aar-sheikhmahmoudab.json",
    "linkmin": "https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/aar-sheikhmahmoudab.min.json"
  },
  "ace_tgkhmahjiddinju": {
    "name": "ace-tgkhmahjiddinju",
    "author": "Tgk. H. Mahjiddin Jusuf",
    "language": "Achinese",
    "direction": "ltr",
    "source": "https://www.islamic-invitation.com/",
    "comments": "This translation was OCRed, in case you find any mistakes, let me know at https://bit.ly/33FuNZS",
    "link": "https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/ace-tgkhmahjiddinju.json",
    "linkmin": "https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/ace-tgkhmahjiddinju.min.json"
  },
  "afr_imammabaker": {
    "name": "afr-imammabaker",
    "author": "Imam M. A. Baker",
    "language": "Afrikaans",
    "direction": "ltr",
    "source": "The Islamic Dawah Movement of Southern Africa",
    "comments": "",
    "link": "https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/afr-ima
…

Implementation Example

Request skeleton. The URL below is this API's documentation page, not a live endpoint — swap in the path you need from the provider's docs before running it.

Request
const url = "https://github.com/fawazahmed0/quran-api";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/plain
Couldn't find the requested file /editions.json/apisscore-nonexistent-path in fawazahmed0/quran-api.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

404 Not Found on chapter URL Wrong edition slug or chapter number out of range (1–114)
List available editions at https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions.json to find valid edition slugs.
Verse numbering mismatch between editions Different scholarly traditions number certain verses differently
Stick to one edition as the primary reference and map verse numbers explicitly if combining multiple editions.
Large payload slows page load Fetching a full chapter file when only a few verses are needed
Cache the chapter JSON locally on first fetch, then slice the verses array client-side instead of re-fetching each time.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 25/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 43ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Books
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →