Quick start
curl -s https://quran.nexusprogramming.dev/v1/quran.json -o quran.json
const BASE = "https://quran.nexusprogramming.dev/v1";
const { data } = await fetch(`${BASE}/surah/1.json`).then((r) => r.json());
const verses = data.readings["hafs-uthmani"].verses;
verses.forEach((v) => console.log(v.key, v.translations["wo.lo-ngaabu"]));
// The same ayah in Latin letters, for a reader learning the script.
// It is its own field — never inside `translations`.
console.log(verses[1].transliteration);
// → al-ḥamdu lillahi rabbi l-ʿālamīna
Endpoints
| Path | Returns |
|---|---|
/v1/quran.json | The whole corpus: both Arabic editions, all six translations, the transliteration and every audio URL |
/v1/manifest.json | Schema and content version, editions, coverage, byte count and SHA-256 of the corpus |
/v1/meta.json | Counts, coverage and the list of endpoints |
/v1/editions.json | The editions and the two numbering schemes |
/v1/surahs.json | All 114 chapters with their metadata, no text |
/v1/surah/{number}.json | One chapter, every edition |
/v1/edition/{edition}.json | The whole corpus in a single edition |
Every response uses the same envelope, so a client only ever unwraps
data:
{ "code": 200, "status": "OK", "data": { "...": "..." } }
Editions
| Identifier | Language | Credit |
|---|---|---|
hafs-uthmani | Arabic | Hafs ʿan ʿĀṣim — KFGQPC Uthmanic Hafs v18, 6,236 ayahs |
warsh-uthmani | Arabic | Warsh ʿan Nāfiʿ — KFGQPC Uthmanic Warsh v10, 6,214 ayahs |
fr.hamidullah | French | Muhammad Hamidullah |
en.sahih | English | Saheeh International |
it.piccardo | Italian | Hamza Roberto Piccardo |
es.garcia | Spanish | Sheikh Isa Garcia |
wo.lo-ngaabu | Wolof | Sëriñ Seexunaa Lóo Ngaabu, written by Allaaji Mamadu Ngeer and Góorgi Jaw |
The Wolof translation is, as far as we know, the first complete Qur'an translation in Wolof published as an open API. All six translations cover every one of the 6,236 ayahs.
The Arabic in Latin letters
Every ayah also carries a transliteration: the same words
romanised, for a reader who can say them but cannot yet read the script.
It is in its own field and its own catalogue group, never inside
translations — it carries the sound of the text, not its
meaning, and no client should be able to serve one where a reader asked
for the other.
It is built from the provider's word-level romanisation of the very words
the Arabic edition is built from, checked position for position against
them, so the two are the same words in the same order. The provider's
verse-level romanisation is deliberately not used: it is an older ASCII
scheme that writes yaAAlamu and runs neighbouring words
together, and nobody could recite from it.
Two riwayat, two verse counts
Warsh is not Hafs in another font: its wording, orthography, marks and verse
count are its own. Translations are aligned to the Kufan (Hafs) numbering
and are carried inline on the Hafs reading. Each Warsh ayah names the Hafs
ayahs its words cover in hafsVerses, and says in
coverage whether it matches one exactly, joins several, or
shares one with its neighbour — so a shared passage is never presented
twice as though it belonged to each ayah alone.
Provenance
The Arabic text is the King Fahd Glorious Qur'an Printing Complex's, served unaltered. Each translation remains the work of its translator and is republished with credit and a link to its source. Every file the corpus is built from is pinned by SHA-256, and every departure from a source is recorded in a correction ledger with the evidence for it. See NOTICE.md.
Printing that arrived inside the verse
Two of the translations reach us with material from the printed page inside their verse fields — a page header, a surah introduction, a whole footnote section, or the next ayah run on behind its printed number. Before the corrections, 2:286 in Italian arrived as 71,879 characters of commentary where the verse should be.
139 verses are cut at boundaries proven against the provider's own published footnote records, not at a length: a cut is placed only where every footnote marker from that point to the end of the field is followed by that footnote's own body. No word of a translation is rewritten. Three verses whose boundary cannot be shown are served exactly as they arrive and named, with the reason, in the catalogue — the right answer there is to tell you, not to guess.
Links
Source and issues · OpenAPI description · README · Provenance and licensing