Quran Cloud API

Beginner's Pick Books / No Auth Required Beginner HTTPS CORS
Free to Use

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.

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.

Quran Cloud data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "status": "success",
  "data": {
    "result": "Data from Quran Cloud",
    "description": "A RESTful Quran API to retrieve an Ayah, Surah, Juz or the entire Holy Quran",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

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.
data.number Surah number (1–114).
data.name Arabic name of the Surah.
data.ayahs Array of verse objects each containing text, number, and audio URL.

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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Books
Difficulty Beginner
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →