Documentation

Ihsan API

Complete reference for building with Quran reflections and Seerah events.

Base: public.api.ihsandeen.comRate: 100/min

Quick Start

bash
# Check API status
curlhttps://public.api.ihsandeen.com/api/status
# Get random Quran reflection
curlhttps://public.api.ihsandeen.com/api/quran/random
# Get random Seerah event
curlhttps://public.api.ihsandeen.com/api/events/random
# Get specific ayah (Surah 96, Ayah 1)
curlhttps://public.api.ihsandeen.com/api/quran/96/1

Endpoints

Status

Check API health

GET/api/status

Check if the API is running

Response: ApiStatus

FieldTypeDescription
statusstringAlways 'ok'
servicestringService name
timestampstringISO timestamp
GET/api

Get API information and available endpoints

Response: ApiInfo

FieldTypeDescription
namestringAPI name
descriptionstringAPI description
versionstringAPI version
endpointsobjectAvailable endpoints

Quran Reflections

Detailed breakdown of Quranic verses

GET/api/quran/random

Get a random Quran verse with reflection

Response: QuranReflection

FieldTypeDescription
surah_numberstringSurah number
surah_namestringSurah name
ayah_numberstringAyah number
ayah_arabicstringArabic text
ayah_translationstringEnglish translation
literary_devicesstring[]Literary devices used
primary_emotionsstring[]Emotions in the ayah
tonestringTone of the ayah
thematic_summarystringMain theme
GET/api/quran/:surah/:ayah

Get Quran verse by surah and ayah number

Parameters

surahSurah number (1-114)*
ayahAyah number*

Response: QuranReflection

FieldTypeDescription
surah_numberstringSurah number
surah_namestringSurah name
ayah_numberstringAyah number
ayah_arabicstringArabic text
ayah_translationstringEnglish translation

Seerah Events

Historical events from the life of Prophet Muhammad (ﷺ)

GET/api/events/random

Get a random Seerah event with analysis

Response: EventData

FieldTypeDescription
event_idstringEvent ID (e.g., EVT-0001)
event_namestringName of the event
year_hijristringYear in Hijri/CE
locationstringWhere it happened
phasestringPhase of the Prophet's life
situation_contextstringHistorical context
pressures_presentstring[]Challenges faced
decision_nodestringKey decision point
outcomestringWhat happened
quranic_referenceobject?Related Quran verse
lessons_learnedstring[]?Key takeaways
GET/api/events/:id

Get Seerah event by ID

Parameters

idEvent ID (e.g., "1" or "EVT-0001")*

Response: EventData

FieldTypeDescription
event_idstringEvent ID
event_namestringEvent name
year_hijristringYear
locationstringLocation
phasestringPhase

Error Responses

StatusDescriptionResponse
200 OKRequest successful{ }
400Invalid parameters{ "error": "Invalid surah..." }
404Resource not found{ "error": "Not found" }
500Internal server error{ "error": "Internal Server Error" }
99.99%
Uptime
< 50ms
Latency
10M+
Requests
5k+
Developers