Quran Cloud API

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

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/edition
Result
HTTP 200 · application/json · 58,532 bytes · compressed
Response time
113 ms (median of 3) · fastest 110 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
Answered
8 of 8 weekly checks (100%, since 2026-07-31)
Recorded
2026-09-21

Fields Returned

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

Field Type Value received
identifier string ar.muyassar
language string ar
name string تفسير المیسر
englishName string King Fahad Quran Complex
format string text
type string tafsir
direction string rtl

Captured Response

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

JSON Response · Captured
{
  "code": 200,
  "status": "OK",
  "data": [
    {
      "identifier": "ar.muyassar",
      "language": "ar",
      "name": "تفسير المیسر",
      "englishName": "King Fahad Quran Complex",
      "format": "text",
      "type": "tafsir",
      "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.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-09-21. 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 application/json
{
  "code": 404,
  "status": "RESOURCE_NOT_FOUND",
  "data": "Not found."
}

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 20/20
Security 20/20
Browser access 15/15
Transparency 15/15
Endpoint Response Time 113ms

Fully tested on Sep 21, 2026

Technical Specifications

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

Related Tags

Similar APIs

View All →