Search books by title, author or keyword

Searches books by keyword (q), title and/or author. Returns title, authors, first publish year, ISBNs and cover links.

Request

GEThttps://books.p.apihiver.com/v1/search?q=harry+potter&limit=2
String. Any words.
String. Filter by title.
String. Filter by author.
Number. Maximum number of results (1–50, default 10).
Number. Results page (1–100, default 1).
Language
Client
1curl --request GET \
2  --url 'https://books.p.apihiver.com/v1/search?q=harry%20potter&title=%7Btitle%7D&author=%7Bauthor%7D&limit=2&page=%7Bpage%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Search books by title, author or keyword: Books API reference

Searches books by keyword (`q`), `title` and/or `author`. Returns title, authors, first publish year, ISBNs and cover links. This endpoint is part of the Books API: Search millions of books by title, author or subject, look up any ISBN, and find authors — powered by Open Library.

Example response (200, application/json)

Success.

1{
2  "page": 1,
3  "books": [
4    {
5      "url": "https://openlibrary.org/works/OL82563W",
6      "isbn": "0939173344",
7      "cover": "https://covers.openlibrary.org/b/id/15155833-M.jpg",
8      "title": "Harry Potter and the Philosopher's Stone",
9      "authors": [
10        "J. K. Rowling"
11      ],
12      "editions": 400,
13      "subjects": [
14        "series:Harry_Potter",
15        "Ghosts",
16        "Monsters"
17      ],
18      "languages": [
19        "mar",
20        "afr",
21        "spa"
22      ],
23      "first_published": 1997
24    },
25    {
26      "url": "https://openlibrary.org/works/OL82537W",
27      "isbn": "0439064872",
28      "cover": "https://covers.openlibrary.org/b/id/15158664-M.jpg",
29      "title": "Harry Potter and the Chamber of Secrets",
30      "authors": [
31        "J. K. Rowling"
32      ],
33      "editions": 306,
34      "subjects": [
35        "series:Harry_Potter",
36        "Fantasy fiction",
37        "school stories"
38      ],
39      "languages": [
40        "mar",
41        "spa",
42        "arm"
43      ],
44      "first_published": 1998
45    }
46  ],
47  "total": 4063
48}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "Pass 'q', 'title' or 'author'."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.