Μετάβαση στο περιεχόμενο
GET /v1/meta

Service description & endpoints

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/hadith-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/hadith-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hadith-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hadith-api/v1/meta");
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/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "service": "hadith-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/hadith": "A single hadith (edition=, number=).",
            "GET /v1/random": "A random hadith (edition=).",
            "GET /v1/section": "A section/book of a collection (edition=, section=).",
            "GET /v1/collections": "All collections and their editions."
        },
        "description": "Hadith collections via the open fawazahmed0 dataset: browse the canonical collections (Sahih al-Bukhari, Sahih Muslim, Abu Dawud, Tirmidhi, Nasai, Ibn Majah, Malik and more) and their per-language editions, fetch a single hadith by number with its grading and reference, list a section/book of a collection and pull a random hadith. Real data, no key.",
        "example_editions": [
            "eng-bukhari",
            "eng-muslim",
            "ara-bukhari",
            "eng-abudawud",
            "eng-tirmidhi"
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:29.337Z",
        "request_id": "d1daad5d-6735-46fb-ae36-e1683335641e"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}