Sources › Indonesia › Al-Qur'an Kemenag › Random Ayah

Al-Qur'an Kemenag Random Ayah API
One random ayah, optionally restricted to a surah or juz.
Request
https://api.zapi.ink/v1/indonesia:quran-kemenag/random-ayahSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| surah | number | query | No | Restrict to one surah, 1-114 Example: 2 |
| juz | number | query | No | Restrict to one juz, 1-30 Example: 30 |
Code examples
curl -X GET "https://api.zapi.ink/v1/indonesia:quran-kemenag/random-ayah?surah=2&juz=30" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/indonesia:quran-kemenag/random-ayah?surah=2&juz=30", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/indonesia:quran-kemenag/random-ayah", params={"surah":"2","juz":"30"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "indonesia:quran-kemenag", "data": { "juz": 30, "ayah": 13, "latin": "Fī ṣuḥufim mukarrmah(tin).", "surah": 80, "arabic": "فِيْ صُحُفٍ مُّكَرَّمَةٍۙ", "ayahId": 5771, "poolSize": 564, "provider": "quran-kemenag", "surahName": "‘Abasa", "mushafPage": 585, "translation": "di dalam suhuf yang dimuliakan (di sisi Allah)," }, "timestamp": "2026-08-29T09:26:58Z" }
Frequently asked questions
How do I call the Al-Qur'an Kemenag Random Ayah API?
Send a GET request to https://api.zapi.ink/v1/indonesia:quran-kemenag/random-ayah with your Zapi key in the x-api-key header. Parameters — optional: surah, juz. The response is JSON in the { project, data, timestamp } envelope.
What does the Al-Qur'an Kemenag Random Ayah API return?
One random ayah, optionally restricted to a surah or juz. The example response has the fields juz, ayah, latin, surah, arabic, ayahId, poolSize, provider.
Is the Al-Qur'an Kemenag Random Ayah API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Al-Qur'an Kemenag Random Ayah API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "quran-kemenag" and endpoint "random-ayah".
What other Al-Qur'an Kemenag API endpoints are there?
It has 3 endpoints. Besides Random Ayah: Surah List, Ayah List.