API for Hadith and Dua content for MyCompanion mobile app
X-API-Key header with valid key.Check API health status (no auth required)
{
"status": "healthy",
"timestamp": "2025-11-21T11:00:00.000Z",
"version": "1.0.0"
}Get all hadith collections (Bukhari, Muslim, etc.)
[
{
"id": "bukhari",
"name": "The Authentic Collection of al-Bukhari",
"arabicName": "صحيح البخاري",
"description": "The most authentic collection...",
"totalHadith": 7589,
"booksCount": 98
},
...
]Get all books in a hadith collection
[
{
"id": "bukhari_1",
"collectionId": "bukhari",
"bookNumber": 1,
"name": "Revelation",
"arabicName": "الوحي",
"totalHadith": 7
},
...
]Get a specific book's details
Get all hadiths in a book
Get a specific hadith by ID
{
"id": "bukhari_1_1",
"collectionId": "bukhari",
"bookId": "bukhari_1",
"hadithNumber": 1,
"arabicText": "حَدَّثَنَا الْحُمَيْدِيُّ...",
"englishText": "Narrated 'Umar bin Al-Khattab...",
"narrator": "'Umar bin Al-Khattab",
"grade": null,
"reference": "bukhari 1:1"
}Search hadiths by text
Get a random hadith
Get all dua categories
[
{
"id": "daily",
"name": "Daily Supplications",
"arabicName": "الأدعية اليومية",
"description": "Essential daily supplications...",
"icon": null,
"duasCount": 38
},
...
]Get all duas in a category
Get a specific dua by ID
{
"id": "daily-01",
"categoryId": "daily",
"name": "Supplication Before Sleeping",
"arabicName": "دعاء قبل النوم",
"arabicText": "بِاسْمِكَ اللَّهُمَّ أَمُوْتُ وَأَحْيَا",
"transliteration": "bismika, allahumma amuutu wa ahyaa",
"englishTranslation": "In Your name, O Allah, I die and I live.",
"reference": "HR. al-Bukhari"
}Search duas by text
Get a random dua