Search Goodreads books API
Search Goodreads books by title, author or ISBN (20 a page).
GET /v1/goodreads/searchBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/goodreads/search?query=dune",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "query": "dune", "books": [ { "legacyId": 44767458, "title": "Dune", "webUrl": "https://www.goodreads.com/book/show/44767458", "imageUrl": "https://m.media-amazon.com/images/S/compressed.photo.goodreads.com/books/1555447414i/44767458.jpg", "authors": [ { "legacyId": 58, "name": "Frank Herbert", "webUrl": "https://www.goodreads.com/author/show/58.Frank_Herbert" } ], "averageRating": 4.29, "ratingsCount": 1700000, "reviewsCount": 91100, "publicationYear": 2019, "editionsCount": 524, "series": { "title": "Dune (Series #1)", "webUrl": "https://www.goodreads.com/series/45935-dune" } }, { "legacyId": 44492285, "title": "Dune Messiah", "webUrl": "https://www.goodreads.com/book/show/44492285", "imageUrl": "https://m.media-amazon.com/images/S/compressed.photo.goodreads.com/books/1577043824i/44492285.jpg", "authors": [ { "legacyId": 58, "name": "Frank Herbert", "webUrl": "https://www.goodreads.com/author/show/58.Frank_Herbert" }, { "legacyId": 56, "name": "Brian Herbert", "webUrl": "https://www.goodreads.com/author/show/56.Brian_Herbert" } ], "averageRating": 3.9, "ratingsCount": 457000, "reviewsCount": 31500, "publicationYear": 2019, "editionsCount": 274, "series": { "title": "Dune (Series #2)", "webUrl": "https://www.goodreads.com/series/45935-dune" } }, "… 18 more" ], "pagination": { "next_cursor": "2", "has_more": true }}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | What to search for. Example: dune. |
limitquery | integer | 1 to 20, default 20. |
afterquery | string | Cursor: the previous page’s pagination.next_cursor (pass the same filters). |
Response fields
200 with a GoodreadsSearchResponse, in Goodreads’s own JSON.
| Field | Type | Description |
|---|---|---|
query | string | |
books | GoodreadsBookCard[] | |
pagination | GoodreadsPagination |
Status codes
| Status | Meaning |
|---|---|
200 | A page of books. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Goodreads book, author, series or list by that id, link or ISBN. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Goodreads is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Goodreads is a trademark of its owner. We are not affiliated with or endorsed by it.