Vai al contenuto
GET /v1/search

Search books

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/books-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "books": [
            {
                "isbn": "0007525524",
                "cover": "https://covers.openlibrary.org/b/id/255844-M.jpg",
                "title": "Novels (Hobbit / Lord of the Rings)",
                "authors": [
                    "J.R.R. Tolkien"
                ],
                "subjects": [
                    "Fiction, fantasy, epic",
                    "Middle earth (imaginary place), fiction",
                    "Baggins, frodo (fictitious character), fiction",
                    "Baggins, bilbo (fictitious character), fiction",
                    "Gandalf (fictitious character), fiction",
                    "Science fiction, fantasy, horror",
                    "British and irish fiction (fictional works by one author)",
                    "Fiction, fantasy, general"
                ],
                "work_key": "/works/OL14926019W",
                "languages": [
                    "rus",
                    "eng"
                ],
                "edition_count": 24,
                "first_publish_year": 1979
            },
            {
                "isbn": "9780395282656",
                "cover": "https://covers.openlibrary.org/b/id/14627509-M.jpg",
                "title": "The Hobbit",
                "authors": [
                    "J.R.R. Tolkien"
                ],
                "subjects": [
                    "Fantasy",
                    "Arkenstone",
                    "Battle of Five Armies",
                    "invisibility",
                    "thrushes",
                    "eagles",
                    "hobbits",
                    "wizards"
                ],
                "work_key": "/works/OL27482W",
                "languages": [
                    "cor",
                    "ger",
                    "nob",
                    "heb",
                    "pol",
                    "vie",
                    "spa",
                    "cat",
                    "ang",
                    "epo",
                    "jpn",
                    "rum",
                    "lez",
                    "dut",
                    "gle",
                    "eng",
                    "lat",
                    "tur",
                    "por",
                    "swe",
                    "rus",
                    "dan",
                    "chi",
                    "cze",
                    "bul",
                    "ita",
                    "yid",
                    "fin",
                    "fre",
                    "bre"
                ],
                "edition_count": 462,
                "first_publish_year": 1937
            },
            {
                "isbn": "5170097468",
                "cover": null,
                "title": "The Hobbit / Lord of the Rings / Silmarillion",
                "authors": [
                    "J.R.R. Tolkien"
                ],
                "subjects": [],
                "work_key": "/works/OL149
…