Get Book Metadata
Retrieve detailed metadata for a specific Hadith collection.
- URL:
/api/early-access/book/[slug] - Method:
GET - Auth required: Yes
Example Request: GET /api/early-access/book/bukhari
Example Response:
json
{
"message": "Welcome to the Sahih al-Bukhari API!",
"instructions": "To interact with this book's data, use the endpoints listed below.",
"endpoints": {
"all_hadiths": "/api/early-access/book/bukhari/hadith",
"single_hadith": "/api/early-access/book/bukhari/hadith/<HADITH ID>",
"volume_hadiths": "/api/early-access/book/bukhari/volume/<VOLUME ID>",
"chapter_hadiths": "/api/early-access/book/bukhari/chapter/<CHAPTER ID>"
},
"docs": "https://docs.sunnah.now",
"metadata": {
"collection": "Sahih al-Bukhari",
"slug": "bukhari"
}
}