Madeenan Docs

Build Source-Backed Islamic Answers into Your App

Madeenan retrieves Qur'an, Hadith, Tafsir, and dua sources, then returns citation payloads your product can inspect and render.

Start with source search. Set MADEENAN_API_KEY in your server environment. Search does not need a model provider key.

$curl --get https://api.madeenan.com/v1/search \
-H "X-Madeenan-API-Key: $MADEENAN_API_KEY" \
--data-urlencode "q=patience in adversity" \
--data-urlencode "indexes=quran,hadith" \
--data-urlencode "limit_per_source=3"

Follow the Quickstart, use the SDK Examples, or connect an assistant with MCP Setup.

Hosted chat can return an answer with citations. The following response is an abbreviated illustration, not a result from the search request above.

{
"answer": "Ayat al-Kursi describes Allah's absolute life, knowledge, authority, and care over creation. It says that neither drowsiness nor sleep overtakes Him, and that His knowledge surrounds what is before and behind people.",
"citations": [
{
"source_id": "quran_2_255",
"type": "quran",
"citation_label": "Qur'an 2:255",
"title": "Ayat al-Kursi",
"arabic": "اللَّهُ لَا إِلَٰهَ إِلَّا هُوَ الْحَيُّ الْقَيُّومُ...",
"translation": "Allah - there is no deity except Him, the Ever-Living, the Sustainer of existence..."
}
],
"provider": "gemini",
"model": "gemini-2.5-flash-lite"
}

Source note

Madeenan does not replace scholarship. It helps apps retrieve, cite, and present Islamic sources responsibly.

Published by Madeenan Engineering · Updated