Google Books API

Search book results and available author and preview details.

What is this API?

Serqo’s Google Books API returns book results shown for a Google query as structured JSON. Use engine: "google" and type: "books"; entries may include a title, author text, publication year, description and preview availability.

Common use cases

  • Discover books and authors associated with a subject or search phrase.
  • Review publication details shown in book results.
  • Compare book-result visibility across query and market settings.

Request example

POST https://api.serqo.io/v1/search
FieldValue
enginegoogle
typebooks

Request headers

Create an API key and store it on your server. Send the API key in the x-api-key header.

HeaderValueDescription
Content-Typeapplication/jsonJSON request body.
x-api-keyYOUR_API_KEYAPI key used to authenticate the request.
bash
export SERP_API_KEY='YOUR_API_KEY'

curl https://api.serqo.io/v1/search \
  -H "x-api-key: $SERP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "q": "history of cartography",
  "engine": "google",
  "type": "books",
  "gl": "us",
  "hl": "en"
}'

Code examples

Use the same API key with a standard HTTP client. These examples require Node.js 22 or later, or Python 3.

JavaScript
const response = await fetch('https://api.serqo.io/v1/search', {
  method: 'POST',
  headers: { 'x-api-key': process.env.SERP_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"q": "history of cartography","engine":"google","type":"books"}),
});
const result = await response.json();
if (!response.ok) throw new Error(`${response.status}: ${result.error?.message ?? 'Search failed'}`);
console.log(result.data);
Python
import json
import os
from urllib.request import Request, urlopen

payload = {"q": "history of cartography","engine":"google","type":"books"}
request = Request(
    'https://api.serqo.io/v1/search',
    data=json.dumps(payload).encode(),
    headers={
        'x-api-key': os.environ['SERP_API_KEY'],
        'Content-Type': 'application/json',
    },
)
with urlopen(request) as response:
    result = json.load(response)
    print(result['data'])

Parameters

The number of results returned per request depends on the search engine and may vary.

FieldTypeRequiredDefaultDescription
qstringYes—Non-empty search query.
enginestringNogoogleUse google for this API.
typestringNowebUse books for this API.
glstringNo—Two-letter lowercase country code, for example us.
hlstringNo—Interface language code, for example en.
startintegerNo—Offset from 0 to 1000000. Use nextStart from the response.
safeoff | activeNo—Explicit-content filter: off disables it, active enables it.
tbsstringNo—Google time filter, such as qdr:d, qdr:w or qdr:m.

Only q is required by the API, but keep engine and type as shown for this search. A dash means the API does not assign a default. Unknown parameters return 422 INVALID_PARAM.

Response

HTTP 200. A real API response, trimmed to the first three results for readability. Field availability and result groups vary by the returned page; values can be null.

JSON
{
  "success": true,
  "requestId": "req_ecbfd102-3957-460b-bf91-23e614716bd8",
  "data": {
    "engine": "google",
    "type": "books",
    "query": {
      "q": "history of cartography",
      "gl": "us",
      "hl": "en"
    },
    "searchInformation": {
      "totalResults": 872000,
      "timeTakenMs": 380,
      "displayed": "About 872,000 results"
    },
    "results": [
      {
        "position": 1,
        "type": "book",
        "title": "History of Cartography",
        "url": "https://books.google.com/books?id=OBeB4tDmJv8C&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6AF6BAgPEAM",
        "displayedUrl": "books.google.com › books",
        "domain": "books.google.com",
        "source": null,
        "date": null,
        "snippet": null,
        "snippetHighlightedWords": [],
        "thumbnail": null,
        "favicon": null,
        "duration": null,
        "price": null,
        "rating": null,
        "sitelinks": [
          {
            "title": "Leo Bagrow",
            "url": "https://www.google.com/search?safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&udm=36&q=inauthor:%22Leo+Bagrow%22&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ9Ah6BAgPEAY"
          },
          {
            "title": "Preview",
            "url": "https://books.google.com/books?id=OBeB4tDmJv8C&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQuwV6BAgPEAg"
          },
          {
            "title": "More editions",
            "url": "https://www.google.com/books/edition/History_of_Cartography/OBeB4tDmJv8C?hl=en&gl=us&kptab=editions&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQmBZ6BAgPEAk"
          }
        ],
        "extensions": {}
      },
      {
        "position": 2,
        "type": "book",
        "title": "The New Nature of Maps: Essays in the History of Cartography",
        "url": "https://books.google.com/books?id=dFWPuU2x0dkC&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6AF6BAgMEAM",
        "displayedUrl": "books.google.com › books",
        "domain": "books.google.com",
        "source": null,
        "date": null,
        "snippet": null,
        "snippetHighlightedWords": [],
        "thumbnail": null,
        "favicon": null,
        "duration": null,
        "price": null,
        "rating": null,
        "sitelinks": [
          {
            "title": "J. B. Harley",
            "url": "https://www.google.com/search?safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&udm=36&q=inauthor:%22J.+B.+Harley%22&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ9Ah6BAgMEAY"
          },
          {
            "title": "Preview",
            "url": "https://books.google.com/books?id=dFWPuU2x0dkC&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQuwV6BAgMEAg"
          },
          {
            "title": "More editions",
            "url": "https://www.google.com/books/edition/The_New_Nature_of_Maps/dFWPuU2x0dkC?hl=en&gl=us&kptab=editions&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQmBZ6BAgMEAk"
          }
        ],
        "extensions": {}
      },
      {
        "position": 3,
        "type": "book",
        "title": "The History of Cartography",
        "url": "https://books.google.com/books?id=-b4YAQAAMAAJ&q=history+of+cartography&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&printsec=frontcover&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6AF6BAgKEAM",
        "displayedUrl": "books.google.com › books",
        "domain": "books.google.com",
        "source": null,
        "date": null,
        "snippet": null,
        "snippetHighlightedWords": [],
        "thumbnail": null,
        "favicon": null,
        "duration": null,
        "price": null,
        "rating": null,
        "sitelinks": [
          {
            "title": "More editions",
            "url": "https://www.google.com/books/edition/The_History_of_Cartography/-b4YAQAAMAAJ?hl=en&gl=us&kptab=editions&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQmBZ6BAgKEAc"
          }
        ],
        "extensions": {}
      }
    ],
    "features": {
      "relatedSearches": [
        {
          "query": "2",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=10&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAE"
        },
        {
          "query": "3",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=20&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAG"
        },
        {
          "query": "4",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=30&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAI"
        },
        {
          "query": "5",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=40&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAK"
        },
        {
          "query": "6",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=50&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAM"
        },
        {
          "query": "7",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=60&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAO"
        },
        {
          "query": "8",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=70&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAQ"
        },
        {
          "query": "9",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=80&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAS"
        },
        {
          "query": "10",
          "url": "https://www.google.com/search?q=history+of+cartography&safe=off&sca_esv=64345335af5ad8d5&hl=en&gl=us&udm=36&sxsrf=APpeQnvoIcRVB4FVbKksAsyxYwlRdMDL4A:1792732951815&ei=F-_aarSvMZHIptQPz668mQE&start=90&sa=N&sstk=AS6-VmJd8DkzmvnAZcPa63FGZDz-AN-XfHeKW1uf16bXdtfOpwC6mZSoMmJ6w3VnywudyXVVJhKD0FEVXnHSkejJFizziIX-s6dMDw&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ8tMDegQIEBAU"
        }
      ],
      "knowledgePanel": {
        "title": null,
        "subtitle": null,
        "description": null,
        "kgmid": null,
        "attributes": {
          "AutocompletePrediction": "Delete"
        },
        "sources": []
      },
      "books": [
        {
          "position": 1,
          "title": "History of Cartography",
          "link": "https://books.google.com/books?id=OBeB4tDmJv8C&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgPEAE",
          "author": "Leo Bagrow",
          "year": null,
          "preview": null,
          "snippet": "This expanded second edition of Bagrow and Skelton's History of Cartography marks the reappearance of this seminal work after a hiatus of nearly a half century.",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_11"
        },
        {
          "position": 2,
          "title": "The New Nature of Maps: Essays in the History of Cartography",
          "link": "https://books.google.com/books?id=dFWPuU2x0dkC&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgMEAE",
          "author": "J. B. Harley , Paul Laxton",
          "year": "2001",
          "preview": null,
          "snippet": "In these essays the author draws on ideas in art history, literature, philosophy and the study of visual culture to subvert the traditional 'positivist' model of cartography and replace it with one grounded in an iconological and semiotic ...",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_4"
        },
        {
          "position": 3,
          "title": "The History of Cartography",
          "link": "https://books.google.com/books?id=-b4YAQAAMAAJ&q=history+of+cartography&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&printsec=frontcover&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgKEAE",
          "author": "John Brian Harley, David Woodward, Matthew H. Edney",
          "year": "1987",
          "preview": null,
          "snippet": "For more than thirty years, the History of Cartography Project has charted the course for scholarship on cartography, bringing together research from a variety of disciplines on the creation, dissemination, and use of maps.",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_1"
        },
        {
          "position": 4,
          "title": "The World Through Maps: A History of Cartography",
          "link": "https://books.google.com/books?id=kV3ybVPTN3sC&printsec=frontcover&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgNEAE",
          "author": "John R. Short",
          "year": "2003",
          "preview": null,
          "snippet": "An illustrated history of maps and mapmaking, including reproductions of 200 antique maps.",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_7"
        },
        {
          "position": 5,
          "title": "The History of Cartography - Volume 6, Book 2",
          "link": "https://books.google.com/books?id=uwLLzgEACAAJ&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgOEAE",
          "author": "John Brian Harley, David Woodward, Mark S. Monmonier",
          "year": "1987",
          "preview": "No preview",
          "snippet": "But as the renown of the series and the comprehensiveness and acuity of the present volume demonstrate, the history of cartography has proven to be unexpectedly fertile ground.--Amazon.com.",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_9"
        },
        {
          "position": 6,
          "title": "History of Cartography: International Symposium of the ICA ... - Page v",
          "link": "https://books.google.com/books?id=v0CYuQbTcOQC&pg=PR5&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgLEAE",
          "author": "Elri Liebenberg, Imre Josef Demhardt",
          "year": "2012",
          "preview": null,
          "snippet": "Found inside – Page v ... History of Cartography which took place at the University of Texas at Arlington on October 11–12, 2010. Its appear- ance in published form sets it apart from the ... cartographic developments during the History of Cartography : Preface.",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_2"
        },
        {
          "position": 7,
          "title": "Guide to the History of Cartography: An Annotated List of ...",
          "link": "https://books.google.com/books?id=vc7QAAAAMAAJ&q=history+of+cartography&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&printsec=frontcover&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgSEAE",
          "author": "Library of Congress. Geography and Map Division",
          "year": "1973",
          "preview": null,
          "snippet": null,
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_13"
        },
        {
          "position": 8,
          "title": "A History of Cartography: 2500 Years of Maps and Mapmakers",
          "link": "https://books.google.com/books?id=HxNmQgAACAAJ&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6AF6BAgREAE",
          "author": "Charles Bricker , Ronald Vere Tooley",
          "year": "1969",
          "preview": "No preview",
          "snippet": "Traces the exploration of each continent through contemporary maps.",
          "thumbnailId": null
        },
        {
          "position": 9,
          "title": "The History of Cartography, Volume Four: Cartography in the ...",
          "link": "https://books.google.com/books?id=m9fkDwAAQBAJ&pg=PA631&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgTEAE",
          "author": "Matthew H. Edney, Mary Sponberg Pedley",
          "year": "2020",
          "preview": null,
          "snippet": "Found inside – Page 631 Cartography in the European Enlightenment Matthew H. Edney, Mary Sponberg Pedley. claims . One theme evident in Enlightenment commen- tary was a sense of national mapping capability ... History of Cartography 631 History of Cartography .",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_15"
        },
        {
          "position": 10,
          "title": "The History of Cartography, Volume Six: Cartography in the ... - Page 11",
          "link": "https://books.google.com/books?id=BZRfEAAAQBAJ&pg=PA11&dq=history+of+cartography&hl=en&newbks=1&newbks_redir=1&sa=X&ved=2ahUKEwj0lpTWss-XAxURpIkEHU8XLxMQ6wF6BAgUEAE",
          "author": "Mark Monmonier",
          "year": "2015",
          "preview": null,
          "snippet": "Found inside – Page 11 Cartography in the Twentieth Century Mark Monmonier. GENERAL ( SYSTEMATIC ) CARTOGRAPHY THEORY OF CARTOGRAPHY ... History of theoretical cartography History of cartographical methodology History of practical cartography FIG . 3 ...",
          "thumbnailId": "dimg_F-_aarSvMZHIptQPz668mQE_17"
        }
      ]
    },
    "pagination": {
      "page": 1,
      "start": 0,
      "hasNext": true,
      "nextStart": 10
    },
    "meta": {
      "elapsedMs": 1338
    }
  },
  "meta": {
    "cache": "miss"
  }
}

Response fields

FieldTypeDescription
data.queryobjectSearch query passed to the engine.
data.searchInformationobjectReported result count and search timing, when provided.
successbooleanWhether the request succeeded. True in this example.
requestIdstringRequest identifier to include when troubleshooting.
data.typestringSearch type used for this response.
data.enginestringEngine that returned the results.
data.resultsarrayMain result list. Check feature groups as well when present.
data.featuresobjectAdditional result groups; groups not returned by the engine may be absent.
data.paginationobjectCurrent offset and next-page availability.
data.meta.elapsedMsnumberSearch duration in milliseconds, not a performance guarantee.
meta.cachestring | nullhit, miss, or null if cache status is unknown.

Result fields

Read data.features.books when present. Some results may instead appear in data.results; check both before treating a search as empty.

FieldTypeDescription
data.features.books[].positionintegerBook position.
data.features.books[].titlestringBook title.
data.features.books[].linkstring | nullBook-page link.
data.features.books[].authorstring | nullAuthor text shown in the result.
data.features.books[].yearstring | nullPublication year text.
data.features.books[].previewstring | nullPreview availability text.
data.features.books[].snippetstring | nullBook description or matching excerpt.
data.features.books[].thumbnailIdstring | nullCover identifier, not an image URL.

Main result entries

FieldTypeDescription
data.results[].domainstring | nullDestination domain, when available.
data.results[].faviconstring | nullSite icon when provided.
data.results[].sitelinksarrayAdditional links nested under the result.
data.results[].sitelinks[].titlestringSitelink label.
data.results[].sitelinks[].urlstring | nullSitelink destination.
data.results[].extensionsobjectOther result-specific properties.
data.results[].snippetHighlightedWordsstring[], optionalHighlighted terms in the snippet, when provided.
data.results[].positionintegerRank on this results page, starting at 1.
data.results[].typestringResult category: organic, news, image, video, shopping, local, forum, book, patent or ad. This can differ from the request type.
data.results[].titlestring | nullTitle shown in the result.
data.results[].urlstring | nullDestination URL when resolved; it may be null.
data.results[].displayedUrlstring | nullURL or domain displayed by the engine; not always a clickable link.
data.results[].sourcestring | nullSource name or displayed domain.
data.results[].datestring | nullDate text when extracted; not necessarily an ISO timestamp.
data.results[].snippetstring | nullResult summary.
data.results[].thumbnailstring | nullThumbnail URL or inline data URL, when provided.
data.results[].durationstring | nullVideo duration text when provided.
data.results[].pricestring | nullPrice text when provided.
data.results[].ratingnumber | nullRating when provided.

Pagination

  1. Check data.pagination.hasNext; stop when it is false.
  2. Use data.pagination.nextStart as start. Keep the other search parameters unchanged.
  3. Send the next request. Each page is a separate search request.
FieldTypeDescription
data.pagination.nextUrlstring | nullSearch-engine URL for the next page, when available; use nextStart with this API.
data.pagination.requestedPageintegerPage requested; may differ from the returned page if the engine does not provide it.
data.pagination.pageintegerCurrent page number.
data.pagination.startintegerCurrent result offset.
data.pagination.hasNextbooleanWhether another page is available.
data.pagination.nextStartinteger | nullOffset for the next request, or null when unavailable.

Errors

JSON
{
  "success": false,
  "requestId": "req_example",
  "error": {
    "code": "INVALID_PARAM",
    "message": "Unknown parameter \"page\"",
    "retryable": false
  }
}
FieldTypeDescription
error.codestringMachine-readable error code.
error.messagestringReason the request failed.
error.retryablebooleanWhether retrying is recommended.
error.retryAfterMsnumber, optionalMinimum wait before retrying, in milliseconds.
HTTP statusMeaningWhat to do
400Invalid request or unsupported search type.Check the query and engine/type combination.
401Missing, invalid or revoked API key.Check the authentication header and API key.
402Insufficient credits.Check your credit balance.
403Permission or plan restriction.Check account access and plan limits.
422Invalid parameter.Correct the parameter identified by error.message.
429Request rate or queue limit.Follow the retry rules below.
5xxServer or search service failure.Keep the requestId; retry only if allowed.

Retry rules

  • Retry only when error.retryable is true.
  • If error.retryAfterMs is present, wait at least that many milliseconds.

Pricing and limits

  • Successful searches use credits at the applicable rate.
  • Failed searches and timeouts are not charged.
  • Cache hits are free at the default rate. Before searching, your available balance must cover the full request cost.

See plan pricing and rate-limit and credit details.

Frequently asked questions

Does a preview field mean the full book is available?

No. It reflects preview availability text shown in a result when present; it does not provide the book’s full text or guarantee access.

How are Books searches charged?

Successful searches use the applicable credit rate for the engine, type and country. Failed searches and timeouts release the reservation; cache hits are free at the default rate. See Pricing and limits below for the current rules.