Quran Cloud API

Beginner's Pick Books / No Auth Required Beginner HTTPS CORS
Free to Use 12 per window (11 remaining at test time)
88 A
Measured Score 0 50 100 Speed 21/30 Consistency 17/20 Security 20/20 Browser access 15/15 Transparency 15/15 TESTED 2026-08-10

Overview

Quran Cloud provides a RESTful API to fetch individual verses (Ayah), chapters (Surah), sections (Juz), or the complete Quran text with multiple audio recitations and translations.

Beginner Tip

Fetch a single verse with https://api.alquran.cloud/v1/ayah/1:1 to get Al-Fatiha verse 1 in Arabic. Append /en.asad to the URL to get an English translation in the same call.

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://api.alquran.cloud/v1/surah/1
Result
HTTP 200 · application/json · 1,845 bytes · compressed
Response time
109 ms (median of 3) · fastest 98 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by ZeroSSL GmbH
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Rate limit
12 per window (11 remaining at test time)
Served by
FrankenPHP Caddy
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
number integer 1
name string سُورَةُ ٱلْفَاتِحَةِ
englishName string Al-Faatiha
englishNameTranslation string The Opening
revelationType string Meccan
numberOfAyahs integer 7
ayahs array [1 item]
edition object {7 fields}

Captured Response

Captured from a real request to https://api.alquran.cloud/v1/surah/1 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "code": 200,
  "status": "OK",
  "data": {
    "number": 1,
    "name": "سُورَةُ ٱلْفَاتِحَةِ",
    "englishName": "Al-Faatiha",
    "englishNameTranslation": "The Opening",
    "revelationType": "Meccan",
    "numberOfAyahs": 7,
    "ayahs": [
      {
        "…": "(9 more fields)"
      }
    ],
    "edition": {
      "identifier": "quran-uthmani-quran-academy",
      "language": "ar",
      "name": "القرآن الكريم برسم العثماني (quran-academy)",
      "englishName": "Modified Quran Uthmani Text from the Quran Academy to work with the Kitab font",
      "format": "text",
      "type": "quran",
      "direction": "rtl"
    }
  }
}

Field Reference

code HTTP-style status code; 200 means success.
status Human-readable status, e.g. "OK".
data Container object with the requested Surah or Ayah data.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.alquran.cloud/v1/surah/1";
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.

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.

"code": 400 — "edition" not found Invalid edition identifier passed in the URL
First fetch https://api.alquran.cloud/v1/edition to list all valid edition codes, then use a code from that list.
Arabic text displays as boxes or question marks Missing Arabic-capable font in the rendering environment
Include an Arabic web font (e.g. Amiri from Google Fonts) in your HTML head to render Arabic script correctly.
Audio URL returns 403 Directly hot-linking CDN audio from the browser triggers referrer restrictions
Download the audio file server-side or use the CDN URLs only in <audio> HTML elements, not in fetch() calls.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 21/30
Consistency 17/20
Security 20/20
Browser access 15/15
Transparency 15/15
Endpoint Response Time 109ms

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

Related Tags

Similar APIs

View All →