/v1/section
A section (kitab) of a collection
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
},
…