Short answer: POST a title, author or topic to /google/books and you get the Google Books results page as JSON — 10 books per request with title, link, snippet, year where Google shows one, and related author searches.
The official Google Books API (books/v1/volumes) searches the Books catalogue with its own ranking and per-day quota. If you want the results exactly as they appear on Google's Books tab — what people actually see when they search — read the Books tab itself.
The request
curl -X POST 'https://api.serpbase.dev/google/books' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"query":"clean code"}'
What comes back
On 25 November 2026 "clean code" returned 10 books in 3.9 seconds, with result_stats "About 5,810,000 results". The first was Clean Code: A Handbook of Agile Software Craftsmanship (2008). A second query, inauthor:"Robert C. Martin", returned 10 books by that author, including Clean Agile, The Clean Coder and Clean Architecture.
Each item in organic has:
| Field | What it holds |
|---|---|
position | Order on the page |
title | Book title (Google may add "- Page 54" when it matched inside the text) |
link | The Google Books page for that volume |
snippet | Description or the matching passage |
date / published_at | Publication year, when Google shows it (4 of 10 in our "clean code" test) |
sitelinks | Extra links such as "Preview" and "More editions" |
The response also has related_searches — for "clean code" these were eight inauthor:"…" suggestions.
Python: list books by an author
import requests
r = requests.post(
"https://api.serpbase.dev/google/books",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"query": 'inauthor:"Robert C. Martin"'},
timeout=60,
).json()
if r["status"] != 0:
raise SystemExit(r.get("error"))
for b in r["organic"]:
print(b["position"], b.get("date") or "----", b["title"])
Things that trip people up
- Google's search operators work in
query.inauthor:"…"andintitle:"…"narrow the list; we testedinauthor. - The year is often missing. Six of ten results had no
date. Openlinkif you need full bibliographic data. - This is discovery, not downloads. You get links to Google Books pages, not book files.
- Titles ending in "- Page N" mean Google matched your words inside the book, not in its title.
Related endpoints
For papers and patents on the same topic, see Google Patents. For general web results about a book, use the Google web search endpoint.
Cost and limits
Each request costs 1 credit; failed requests are not charged. Responses are HTTP 200 with a status field (0 = success). Credits cost $0.25–$0.50 per 1,000 depending on the plan; new accounts get 500 free credits without a card.
- Parameters and the full response: Google Books docs
- Try it in the browser: Google Books
- Credit packs: pricing