/v1/search
Search books with ratings and want-to-read
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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",
…