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

All collections and their editions

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

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

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

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

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

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

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_..."}
)

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

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

{
    "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",
 
…