WINQURAN · API Documentation v1
WINQURAN Developer API
Qur'an data from WINQURAN for your apps, websites or research: the list of surahs, Uthmani text, transliteration, Indonesian & English translations, word-by-word data (meaning, transliteration, audio), juz, search, and recitations with per-word timing. Free, no API key, JSON format.
| Base URL | http://aplikasiqu.com/WinQuran/api/v1 |
|---|---|
| Method | GET only (read-only) |
| Format | JSON, UTF-8 (Arabic text is not escaped) |
| Authentication | Not required |
| Rate limit | 120 requests per minute per IP address (beyond that: HTTP 429) |
| CORS | Allowed from any domain (can be called directly from JavaScript in the browser) |
| Cache | Cache-Control: public, max-age=3600 |
1. Response format & status codes
Every successful response has the same shape:
{
"status": 200,
"data": { ... }, // main content
"meta": { ... } // extra details (language, count, limits)
}
On failure:
{ "status": 404, "error": "Surah 115 tidak ditemukan (1–114)." }
| Code | Meaning |
|---|---|
200 | Success |
400 | Missing or invalid parameter |
404 | Surah/verse/reciter not found, or the API is disabled |
429 | More than 120 requests per minute — wait a moment |
503 | Data not yet available on the server |
Common parameters
| Parameter | Value | Description |
|---|---|---|
bahasa | id (default), en | Language of the verse translation and word meanings (bahasa = language). See /bahasa. |
kata | true / false | Include word-by-word data (meaning, transliteration, word audio URL). kata = word. |
2. API info
GET /info
API version, data counts, available languages and reciters, rate limit, and data sources.
{
"status": 200,
"data": {
"nama": "WINQURAN API",
"versi": "1.0",
"jumlahSurah": 114,
"jumlahAyat": 6236,
"jumlahKata": 77429,
"bahasa": ["id", "en"],
"qari": [{ "id": 7, "nama": "Mishari Rashid al-`Afasy", "gaya": "Murattal", "mode": "per-surah" }],
"batasPermintaan": "120 permintaan per menit per IP",
"sumber": ["Teks Al-Qur'an, data per kata & timing audio: Quran.com / Quran Foundation", "..."]
}
}
3. List of surahs
GET /surah
All 114 surahs with name, meaning (arti, in Indonesian), place of revelation (tempatTurun), revelation order, number of verses (jumlahAyat), and mushaf pages.
{
"status": 200,
"data": [
{
"nomor": 1,
"nama": "الفاتحة",
"namaLatin": "Al-Fatihah",
"namaLengkap": "Al-Fātiĥah",
"arti": "Pembukaan",
"tempatTurun": "Makkiyah",
"urutanTurun": 5,
"jumlahAyat": 7,
"bismillah": false,
"halaman": [1, 1]
},
...
]
}
4. One surah + verses
GET /surah/{nomor}?bahasa=en&kata=false
| Parameter | Required | Description |
|---|---|---|
nomor | yes | Surah number 1–114 |
bahasa | no | id (default) or en |
kata | no | true to include word-by-word data (default false) |
{
"status": 200,
"data": {
"surah": { "nomor": 1, "namaLatin": "Al-Fatihah", "jumlahAyat": 7, ... },
"ayat": [
{
"nomor": 1,
"kunci": "1:1",
"surah": 1,
"teksArab": "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ",
"teksLatin": "Bismillāhir-raḥmānir-raḥīm(i).",
"terjemahan": "In the Name of Allah—the Most Compassionate, Most Merciful.",
"juz": 1,
"halaman": 1,
"hizb": 1,
"sajdah": false
},
...
]
},
"meta": { "bahasa": "en", "kata": false }
}
5. One verse + word-by-word data
GET /ayat/{surah}/{ayat}?bahasa=en&kata=true
Word-by-word data is included by default (kata=true). Word audio URLs can be played directly.
{
"status": 200,
"data": {
"surah": { "nomor": 1, "namaLatin": "Al-Fatihah", ... },
"ayat": {
"nomor": 1,
"kunci": "1:1",
"teksArab": "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ",
"teksLatin": "Bismillāhir-raḥmānir-raḥīm(i).",
"terjemahan": "In the Name of Allah—the Most Compassionate, Most Merciful.",
"juz": 1, "halaman": 1, "hizb": 1, "sajdah": false,
"kata": [
{
"posisi": 1,
"teksArab": "بِسْمِ",
"latin": "bis'mi",
"arti": "In (the) name",
"audio": "http://aplikasiqu.com/WinQuran/media/audio/wbw/001/001_001_001.mp3"
},
...
]
}
}
}
6. Several verses (references)
GET /ayat?ref=2:255,3:102-103&bahasa=en
Fetch many verses in one request. Separate references with commas; use - for a range.
At most 300 verses per request. No word-by-word data.
{
"status": 200,
"data": [
{
"ref": "2:255",
"surah": { "nomor": 2, "namaLatin": "Al-Baqarah", ... },
"ayat": [ { "kunci": "2:255", "teksArab": "ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ...", "terjemahan": "Allah! There is no god ˹worthy of worship˺ except Him. ...", ... } ]
},
{ "ref": "3:102-103", "surah": { ... }, "ayat": [ ... ] }
],
"meta": { "bahasa": "en", "jumlahAyat": 3, "batas": 300 }
}
7. Juz
GET /juz — the 30 juz with their first verse
GET /juz/{nomor}?bahasa=en — all verses in juz 1–30
{ "status": 200, "data": [ { "nomor": 1, "mulai": "1:1", "surah": 1, "ayat": 1 }, ... ] }
{ "status": 200, "data": { "juz": 30, "jumlahAyat": 564, "ayat": [ { "kunci": "78:1", ... }, ... ] } }
8. Search
GET /cari?q=sabar&limit=20
Searches the Indonesian translation and the Arabic text (harakat are ignored). limit 1–100, default 20. cuplikan = snippet.
{
"status": 200,
"data": [
{
"kunci": "2:153",
"surah": 2,
"ayat": 153,
"namaSurah": "Al-Baqarah",
"teksArab": "...",
"cuplikan": "Wahai orang-orang yang beriman! Mohonlah pertolongan (kepada Allah) dengan sabar dan salat..."
}
],
"meta": { "q": "sabar", "jumlah": 3, "limit": 3 }
}
9. List of reciters
GET /qari
mode per-surah: one audio file per surah with per-verse and per-word timing.
per-ayat: one audio file per verse (no word timing).
{ "status": 200, "data": [ { "id": 7, "nama": "Mishari Rashid al-`Afasy", "gaya": "Murattal", "mode": "per-surah" } ] }
10. Recitation + per-word timing
GET /audio/{qari}/{surah}
The recitation file URL and the time (milliseconds) of each verse and each word. segmen holds
[wordPosition, startMs, endMs]; wordPosition matches posisi in the word-by-word data,
so you can highlight the word being recited.
{
"status": 200,
"data": {
"qari": { "id": 7, "nama": "Mishari Rashid al-`Afasy", "mode": "per-surah" },
"surah": { "nomor": 1, "namaLatin": "Al-Fatihah", ... },
"audio": "http://aplikasiqu.com/WinQuran/media/audio/recitations/alafasy/001.mp3",
"ayat": [
{ "nomor": 1, "kunci": "1:1", "mulaiMs": 0, "selesaiMs": 6090,
"segmen": [[1, 0, 580], [2, 580, 1409], [3, 1409, 2502], [4, 2502, 5840]] },
{ "nomor": 2, "kunci": "1:2", "mulaiMs": 6090, "selesaiMs": 11680, "segmen": [[1, 6025, 7025], ...] }
]
}
}
11. Available languages
GET /bahasa
{ "status": 200, "data": ["id", "en"] }
12. Code examples
cURL
curl "http://aplikasiqu.com/WinQuran/api/v1/ayat/2/255?kata=false"
JavaScript (browser / Node.js 18+)
const res = await fetch("http://aplikasiqu.com/WinQuran/api/v1/surah/36?bahasa=en");
const json = await res.json();
if (json.status === 200) {
for (const a of json.data.ayat) {
console.log(a.kunci, a.teksArab, a.terjemahan);
}
}
PHP
<?php
$json = json_decode(file_get_contents("http://aplikasiqu.com/WinQuran/api/v1/ayat/1/1"), true);
$ayat = $json["data"]["ayat"];
echo $ayat["teksArab"] . "\n" . $ayat["terjemahan"];
C# (.NET)
using var http = new HttpClient();
var json = await http.GetStringAsync("http://aplikasiqu.com/WinQuran/api/v1/juz/30");
using var doc = System.Text.Json.JsonDocument.Parse(json);
foreach (var a in doc.RootElement.GetProperty("data").GetProperty("ayat").EnumerateArray())
Console.WriteLine(a.GetProperty("kunci").GetString());
Python
import requests
data = requests.get("http://aplikasiqu.com/WinQuran/api/v1/cari", params={"q": "sabar", "limit": 5}).json()
for hit in data["data"]:
print(hit["kunci"], hit["cuplikan"])
Playing a recitation and highlighting the current word
const { data } = await (await fetch("http://aplikasiqu.com/WinQuran/api/v1/audio/7/1")).json();
const audio = new Audio(data.audio);
audio.ontimeupdate = () => {
const ms = audio.currentTime * 1000;
const ayat = data.ayat.find(a => ms >= a.mulaiMs && ms < a.selesaiMs);
const seg = ayat?.segmen.find(s => ms >= s[1] && ms < s[2]);
if (seg) console.log(`Verse ${ayat.kunci}, word ${seg[0]}`);
};
audio.play();
13. Terms, data sources & attribution
- This API is free for da'wah, education, research, and reasonable non-commercial or commercial apps. Please do not copy the whole dataset repeatedly; cache the results on your side.
- Include attribution, for example: “Qur'an data: WINQURAN (http://aplikasiqu.com/WinQuran)”, together with the original sources:
- Qur'an text, word-by-word data, word transliteration and audio timing: Quran.com / Quran Foundation.
- Indonesian translation: Ministry of Religious Affairs of the Republic of Indonesia.
- English translation: as listed in
/info(via Quran.com). - Verse transliteration: Kemenag RI transliteration guidelines (via equran.id).
- Recitations: QuranicAudio / Quran.com — recording copyrights belong to their owners.
- Always verify the text against an official printed mushaf when used for publishing or teaching.
- The limit of 120 requests per minute per IP may change depending on server capacity.
Version 1.0 · New endpoints will be added without changing the shape of existing data.
Breaking changes will use the /api/v2 address.