Free ISBN lookup APIs, with code

Open Library is the main free ISBN API: openlibrary.org/isbn/9780140328721.json returns the edition with no key, and its books endpoint returns authors, publishers, pages and cover in one call. Google Books searches with q=isbn:9780140328721 and its docs ask for an API key. Our Book Lookup API validates the ISBN-10 or ISBN-13 check digit before looking it up in Open Library and returns clean fields for $0.002, with no charge when the book isn't found.

Try it free Book Lookup API — ISBN or title to book details, $0.002 · $0.002 / call

Open Library in Python

Open Library's developer page says requests without identification are limited to 1 per second and identified ones (a User-Agent with an email) to 3 per second. For whole-catalogue work it asks you to use its monthly data dumps instead of the API.

import requests

HEADERS = {"User-Agent": "MyBookApp/1.0 (you@example.com)"}
isbn = "9780140328721"
r = requests.get("https://openlibrary.org/api/books",
                 params={"bibkeys": f"ISBN:{isbn}", "format": "json", "jscmd": "data"},
                 headers=HEADERS, timeout=10)
book = r.json().get(f"ISBN:{isbn}")
if book:
    print(book["title"], [a["name"] for a in book.get("authors", [])], book.get("number_of_pages"))
    print(book.get("cover", {}).get("large"))

Check the ISBN before you call anything

A mistyped ISBN wastes a request and can match the wrong book. ISBN-13 uses the same check digit as an EAN barcode: weights 1 and 3 alternating, total divisible by 10. ISBN-10 weights the digits 10 down to 1, total divisible by 11, and the last character can be X for 10.

def isbn_ok(s):
    s = s.replace("-", "").replace(" ", "").upper()
    if len(s) == 13 and s.isdigit():
        return sum(int(c) * (3 if i % 2 else 1) for i, c in enumerate(s)) % 10 == 0
    if len(s) == 10 and s[:9].isdigit() and (s[9].isdigit() or s[9] == "X"):
        return sum((10 if c == "X" else int(c)) * (10 - i) for i, c in enumerate(s)) % 11 == 0
    return False

Open Library, Google Books or ours

Because ours reads Open Library, it won't find a book Open Library doesn't have. What you pay for is the validation, one tidy response shape (title, authors, publishers, year, pages, up to 12 subjects, ISBN-10 and ISBN-13, cover_url) and no charge for misses.

curl -i -X POST https://iamai.markets/api/x402/services/2HSQV5mgqKVR \
  -H "Content-Type: application/json" \
  -d '{"isbn": "978-0-14-032872-1"}'

# or {"title": "The Hobbit", "author": "Tolkien", "limit": 5}
Open LibraryGoogle BooksBook Lookup (iamai.markets)
PriceFreeFree with a key$0.002 per lookup
KeyNo; register your use if heavyAPI key per Google's docsNone; x402 per call
ISBN check digit validatedNoNoYes, before lookup
Title and author searchYesYesYes, up to 10 results
CoverageBroad, gaps for new and regional booksVery broadOpen Library's

The product

Questions

Is there a completely free ISBN database?

Open Library's catalogue is free to use and downloadable as monthly dumps. Commercial databases such as ISBNdb sell broader coverage on paid plans.

Why does an ISBN return nothing?

Either the check digit is wrong (a typo) or the source doesn't list that edition. Try a title search, which matches the work across editions.

Does an ISBN-10 and ISBN-13 find the same book?

Yes. Every ISBN-10 has an ISBN-13 starting with 978, and our API returns both.

Related

Updated 2026-12-02