SerpBase
Back to Blog

ISBN Lookup API: Find a Book by ISBN with Google Books Search

Search Google Books for isbn: plus the 13 digits to get the book's title, description, year, volume link and authors as JSON. Two ISBNs looked up.

November 30, 2026
By SerpBase Team2 min read

Short answer: send isbn: followed by the 13 digits as the query to /google/books. Google Books answers with the matching book: title, description, a Google Books link, the year when Google shows it, and the authors as inauthor: suggestions.

The request

curl -X POST 'https://api.serpbase.dev/google/books' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"q":"isbn:9780262033848"}'

We sent the ISBN without hyphens or spaces.

What came back

We looked up two ISBNs on 1 December 2026. Each returned exactly one result, and result_stats said "1 result".

ISBNtitledateAuthors (from related_searches)
9780262033848Introduction to Algorithms, third edition2009Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
9780141439518Pride and Prejudicenot shownJane Austen

The first response, shortened:

{
  "status": 0,
  "credits_charged": 1,
  "query": "isbn:9780262033848",
  "result_stats": "1 result (0.10s)",
  "organic": [
    {
      "rank": 1,
      "title": "Introduction to Algorithms, third edition",
      "link": "https://books.google.com/books?id=i-bUBQAAQBAJ&printsec=frontcover&dq=isbn:9780262033848&...",
      "snippet": "Many exercises and problems have been added for this edition. The international paperback edition is no longer available; the hardcover is available worldwide.",
      "date": "2009",
      "sitelinks": [
        {"title": "Preview", "link": "https://books.google.com/books?id=i-bUBQAAQBAJ&printsec=frontcover&..."},
        {"title": "More editions", "link": "https://www.google.com/books/edition/Introduction_to_Algorithms_third_edition/i-bUBQAAQBAJ?..."}
      ]
    }
  ],
  "related_searches": [
    "inauthor:\"Thomas H. Cormen\"",
    "inauthor:\"Charles E. Leiserson\"",
    "inauthor:\"Ronald L. Rivest\""
  ]
}

The id= value in the link (i-bUBQAAQBAJ) is the Google Books volume ID.

Python: ISBN to title, year and authors

import re
import requests

def isbn_lookup(isbn):
    isbn = re.sub(r"[^0-9X]", "", isbn.upper())
    r = requests.post("https://api.serpbase.dev/google/books",
                      headers={"X-API-Key": "YOUR_API_KEY"},
                      json={"q": f"isbn:{isbn}"}, timeout=60).json()
    if r["status"] != 0:
        raise RuntimeError(r.get("error"))
    if not r.get("organic"):
        return None
    book = r["organic"][0]
    authors = [s.split(":", 1)[1].strip('"')
               for s in r.get("related_searches", []) if s.startswith("inauthor:")]
    volume = re.search(r"[?&]id=([^&]+)", book["link"])
    return {"title": book["title"], "year": book.get("date"),
            "authors": authors, "volume_id": volume and volume.group(1),
            "description": book.get("snippet")}

print(isbn_lookup("978-0-262-03384-8"))

Things that trip people up

  • Not every field is always there. The 2009 algorithms book had a date; the Penguin edition of Pride and Prejudice did not. Read date with .get().
  • Authors come from the suggestions, not the result. They arrive in related_searches as inauthor:"Name" queries, one per author. Strip the prefix and quotes, as above.
  • This is a search, not a catalogue record. You get what Google Books shows on its results page: no page count, publisher or cover field. Open the volume link for more.
  • Check organic before reading it. The function above returns None when there is no result.

Related

Cost and docs

A Google Books search is 1 credit. Failed requests are not charged, and new accounts get 500 free credits.