Nexus Programming · open data

Qur'an API

The complete Qur'an as plain JSON: the Arabic text in two riwayat — Hafs and Warsh — with French, English, Italian, Spanish and Wolof translations, and the Arabic sounded out in Latin letters. One downloadable file. No API key, no server, no rate limit.

Base URL https://quran.nexusprogramming.dev/v1

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

PathReturns
/v1/quran.jsonThe whole corpus: both Arabic editions, all six translations, the transliteration and every audio URL
/v1/manifest.jsonSchema and content version, editions, coverage, byte count and SHA-256 of the corpus
/v1/meta.jsonCounts, coverage and the list of endpoints
/v1/editions.jsonThe editions and the two numbering schemes
/v1/surahs.jsonAll 114 chapters with their metadata, no text
/v1/surah/{number}.jsonOne chapter, every edition
/v1/edition/{edition}.jsonThe 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

IdentifierLanguageCredit
hafs-uthmaniArabicHafs ʿan ʿĀṣim — KFGQPC Uthmanic Hafs v18, 6,236 ayahs
warsh-uthmaniArabicWarsh ʿan Nāfiʿ — KFGQPC Uthmanic Warsh v10, 6,214 ayahs
fr.hamidullahFrenchMuhammad Hamidullah
en.sahihEnglishSaheeh International
it.piccardoItalianHamza Roberto Piccardo
es.garciaSpanishSheikh Isa Garcia
wo.lo-ngaabuWolofSë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

En français

Une API ouverte et gratuite pour le Coran : le texte arabe dans les deux riwāyāt Hafs et Warsh, avec les traductions française (Hamidullah), anglaise, italienne, espagnole et wolof, servies en JSON sur https://quran.nexusprogramming.dev/v1. Aucune clé, aucun serveur : chaque réponse est un fichier JSON statique. Le texte arabe est celui du Complexe du Roi Fahd ; chaque traduction reste l'œuvre de son traducteur et est publiée avec son crédit. Voir NOTICE.md.