/v1/collections
All collections and their editions
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/hadith-api/v1/collections" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hadith-api/v1/collections", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hadith-api/v1/collections");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/hadith-api/v1/collections",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"count": 10,
"collections": [
{
"name": "Sunan Abu Dawud",
"editions": [
{
"edition": "ara-abudawud",
"language": "Arabic",
"direction": "rtl",
"has_books": false
},
{
"edition": "ara-abudawud1",
"language": "Arabic",
"direction": "rtl",
"has_books": false
},
{
"edition": "ben-abudawud",
"language": "Bengali",
"direction": "ltr",
"has_books": false
},
{
"edition": "eng-abudawud",
"language": "English",
"direction": "ltr",
"has_books": false
},
{
"edition": "fra-abudawud",
"language": "French",
"direction": "ltr",
"has_books": false
},
{
"edition": "ind-abudawud",
"language": "Indonesian",
"direction": "ltr",
"has_books": false
},
{
"edition": "rus-abudawud",
"language": "Russian",
"direction": "ltr",
"has_books": false
},
{
"edition": "tur-abudawud",
"language": "Turkish",
"direction": "ltr",
"has_books": false
},
{
"edition": "urd-abudawud",
"language": "Urdu",
"direction": "rtl",
"has_books": false
}
],
"collection": "abudawud"
},
{
"name": "Sahih al Bukhari",
"editions": [
{
"edition": "ara-bukhari",
"language": "Arabic",
"direction": "rtl",
"has_books": false
},
{
"edition": "ara-bukhari1",
"language": "Arabic",
"direction": "rtl",
"has_books": false
},
{
"edition": "ben-bukhari",
"language": "Bengali",
"direction": "rtl",
…