/v1/collections
All collections and their editions
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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",
…