Request Format
Make a GET request to api/tafsir/<surahNo>_<ayahNo>.json
Replace <surahNo>
with the Surah Number and <ayahNo>
with the Ayah Number.
Available Tafsirs
Currently, three major tafsirs are available:
- Ibn Kathir
- Maarif Ul Quran
- Tazkirul Quran
Response
A JSON object containing three major tafsirs of the requested verse, formatted in markdown style for easy rendering.
Example Response
Endpoint: /api/tafsir/19_56.json
{
"surahName": "Maryam",
"surahNo": 19,
"ayahNo": 56,
"tafsirs": [
{
"author": "Ibn Kathir",
"groupVerse": "You are reading a tafsir for the group of verses 19:56 to 19:57",
"content": "## Mentioning Idris\n\nAllah complimented Idris for being a truthful Prophet and He mentioned that he raised him to a high station. It has previously been mentioned that in the Sahih it is recorded that the Messenger of Allah ï·º passed by Idris on the night of the Isra (Night Journey) and he (Idris) was in the fourth heaven..."
},
{
"author": "Maarif Ul Quran",
"groupVerse": null,
"content": "..."
},
{
"author": "Tazkirul Quran",
"groupVerse": "You are reading a tafsir for the group of verses 19:54 to 19:57",
"content": "..."
}
]
}
The tafsir texts are formatted in markdown, allowing you to easily render them with any markdown parser in your application.
See the original tafsir (opens in a new tab) from quran.com
Notes
groupVerse
will have a text when the tafsir is for a group of verses- The responses will vary from 3KB to 88KB
- Tafsirs are taken from Quran.com (opens in a new tab)