Quran Cloud API

⭐ Beginner's Pick Books / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

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

Quran Cloud data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "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

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://alquran.cloud/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.

Common Errors & Troubleshooting

"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.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 125ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Books
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →