Naar de inhoud
GET /v1/book

A book reader stats — ratings and reading-log

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/bookstats-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "title": "The Lord of the Rings",
        "author": "J.R.R. Tolkien",
        "source": "Open Library",
        "work_id": "OL27448W",
        "subjects": [
            "The Lord of the Rings",
            "Fiction",
            "Ficción",
            "English Fantasy fiction",
            "Ficción fantástica inglesa",
            "Fantasy fiction",
            "Open Library Staff Picks",
            "Middle Earth (Imaginary place)"
        ],
        "already_read": 222,
        "rating_count": 112,
        "want_to_read": 2272,
        "rating_average": 4.438,
        "first_published": "September 3, 2001",
        "open_library_url": "https://openlibrary.org/works/OL27448W",
        "currently_reading": 191,
        "star_distribution": {
            "1": 3,
            "2": 5,
            "3": 9,
            "4": 18,
            "5": 77
        }
    },
    "meta": {
        "timestamp": "2026-06-12T01:42:14.738Z",
        "request_id": "2c818ef7-43b9-4a7a-83fb-4a83b1a473ab"
    },
    "status": "ok",
    "message": "Book retrieved successfully",
    "success": true
}