Zum Inhalt springen
GET /v1/search

Search books with ratings and want-to-read

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bookstats-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 10,
        "query": "dune",
        "total": 44544,
        "source": "Open Library",
        "results": [
            {
                "title": "Dune",
                "author": "Frank Herbert",
                "work_id": "OL893415W",
                "already_read": 681,
                "rating_count": 423,
                "want_to_read": 3284,
                "rating_average": 4.305,
                "first_published": 1965
            },
            {
                "title": "Dune Messiah",
                "author": "Frank Herbert",
                "work_id": "OL893526W",
                "already_read": 244,
                "rating_count": 137,
                "want_to_read": 530,
                "rating_average": 3.956,
                "first_published": 1969
            },
            {
                "title": "Children of Dune",
                "author": "Frank Herbert",
                "work_id": "OL893516W",
                "already_read": 126,
                "rating_count": 42,
                "want_to_read": 267,
                "rating_average": 4,
                "first_published": 1976
            },
            {
                "title": "Heretics of Dune",
                "author": "Frank Herbert",
                "work_id": "OL893502W",
                "already_read": 91,
                "rating_count": 50,
                "want_to_read": 131,
                "rating_average": 3.86,
                "first_published": 1984
            },
            {
                "title": "God Emperor of Dune",
                "author": "Frank Herbert",
                "work_id": "OL893515W",
                "already_read": 131,
                "rating_count": 74,
                "want_to_read": 165,
                "rating_average": 3.946,
                "first_published": 1981
            },
            {
                "title": "Chapterhouse Dune",
                "author": "Frank Herbert",
                "work_id": "OL893508W",
                "already_read": 51,
                "rating_count": 20,
                "want_to_read": 123,
                "rating_average": 3.9,
                "first_published": 1985
            },
            {
                "title": "The Great Dune Trilogy",
                "author": "Frank Herbert",
                "work_id": "OL893444W",
                "already_read": 21,
                "rating_count": 20,
                "want_to_read": 17,
                "rating_average": 4.2,
                "first_published": 1977
            },
            {
                "title": "Go Ask Alice",
                "author": "Beatrice Sparks",
                "work_id": "OL264729W",
                "already_read": 119,
                "rating_count": 51,
                "want_to_read": 644,
                "rating_average": 3.686,
                "first_published": 1971
            },
            {
                "title": "Dune",
                "author": "Brian Herbert",
   
…