Ir al contenido
GET /v1/section

A section (kitab) of a collection

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/hadith-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/hadith-api/v1/section" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hadith-api/v1/section", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hadith-api/v1/section");
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/section",
    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": 51,
        "edition": "eng-bukhari",
        "hadiths": [
            {
                "text": "Narrated Ibn 'Umar: Allah's Messenger (ﷺ) said: Islam is based on (the following) five (principles): 1. To testify that none has the right to be worshipped but Allah and Muhammad is Allah's Messenger (ﷺ). 2. To offer the (compulsory congregational) prayers dutifully and perfectly. 3. To pay Zakat (i.e. obligatory charity) . 4. To perform Hajj. (i.e. Pilgrimage to Mecca) 5. To observe fast during the month of Ramadan",
                "grades": [],
                "number": 8,
                "edition": "eng-bukhari",
                "reference": {
                    "book": 2,
                    "hadith": 1
                },
                "arabic_number": 8
            },
            {
                "text": "Narrated Abu Huraira: The Prophet (ﷺ) said, \"Faith (Belief) consists of more than sixty branches (i.e. parts). And Haya (This term \"Haya\" covers a large number of concepts which are to be taken together; amongst them are self respect, modesty, bashfulness, and scruple, etc.) is a part of faith",
                "grades": [],
                "number": 9,
                "edition": "eng-bukhari",
                "reference": {
                    "book": 2,
                    "hadith": 2
                },
                "arabic_number": 9
            },
            {
                "text": "Narrated 'Abdullah bin 'Amr: The Prophet (ﷺ) said, \"A Muslim is the one who avoids harming Muslims with his tongue and hands. And a Muhajir (emigrant) is the one who gives up (abandons) all what Allah has forbidden",
                "grades": [],
                "number": 10,
                "edition": "eng-bukhari",
                "reference": {
                    "book": 2,
                    "hadith": 3
                },
                "arabic_number": 10
            },
            {
                "text": "Narrated Abu Musa: Some people asked Allah's Messenger (ﷺ), \"Whose Islam is the best? i.e. (Who is a very good Muslim)?\" He replied, \"One who avoids harming the Muslims with his tongue and hands",
                "grades": [],
                "number": 11,
                "edition": "eng-bukhari",
                "reference": {
                    "book": 2,
                    "hadith": 4
                },
                "arabic_number": 11
            },
            {
                "text": "Narrated 'Abdullah bin 'Amr: A man asked the Prophet (ﷺ) , \"What sort of deeds or (what qualities of) Islam are good?\" The Prophet (ﷺ) replied, 'To feed (the poor) and greet those whom you know and those whom you do not Know (See Hadith No)",
                "grades": [],
                "number": 12,
                "edition": "eng-bukhari",
                "reference": {
                    "book": 2,
                    "hadith": 5
                },
                "arabic_number": 12
            },
  
…