Get a Goodreads book API
A Goodreads book by id, link or ISBN: work stats, rating distribution, genres, series, awards.
GET /v1/goodreads/bookBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/goodreads/book?id=5907&include_similar=true",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "book": { "id": "kca://book/amzn1.gr.book.v1.7HhPxEJT1NiirAiej27XwA", "legacyId": 5907, "webUrl": "https://www.goodreads.com/book/show/5907.The_Hobbit_or_There_and_Back_Again", "title": "The Hobbit, or There and Back Again", "titleComplete": "The Hobbit, or There and Back Again", "description": "In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, fill…", "imageUrl": "https://m.media-amazon.com/images/S/compressed.photo.goodreads.com/books/1546071…", "primaryContributorEdge": { "role": "Author", "node": { "id": "kca://author/amzn1.gr.author.v1.pTArlfsRKKGTU_K__Rhomw", "legacyId": 656983, "name": "J.R.R. Tolkien", "webUrl": "https://www.goodreads.com/author/show/656983.J_R_R_Tolkien", "profileImageUrl": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/authors/17950899…", "isGrAuthor": false, "works": { "…": "1 fields" }, "followers": { "…": "1 fields" } } }, "secondaryContributorEdges": [ { "role": "Editor", "node": { "…": "4 fields" } }, "… 2 more" ], "bookSeries": [ { "userPosition": "1", "series": { "…": "3 fields" } } ], "…": "3 more fields" }, "similarBooks": [ { "id": "kca://book/amzn1.gr.book.v1.jx7ATVahQXcHIqlmR6NM4g", "legacyId": 119, "title": "The Art of The Fellowship of the Ring", "imageUrl": "https://m.media-amazon.com/images/S/compressed.photo.goodreads.com/books/1347803…", "webUrl": "https://www.goodreads.com/book/show/119.The_Art_of_The_Fellowship_of_the_Ring", "primaryContributorEdge": { "node": { "…": "2 fields" } }, "work": { "stats": { "…": "2 fields" } } }, "… 19 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
idquery | string | Goodreads book id (the number in its link). Example: 5907. |
urlquery | string | A goodreads.com/book/show/… link instead. Example: https://www.goodreads.com/book/show/5907.The_Hobbit. |
isbnquery | string | An ISBN-10 or ISBN-13 instead. Example: 9780547928227. |
include_similarquery | "true" | "false" | Add similar books. One of true, false. |
include_listsquery | "true" | "false" | Add lists the book is on. One of true, false. |
include_previewquery | "true" | "false" | Accepted; previews are not available logged out. One of true, false. |
Response fields
200 with a GoodreadsBookResponse, in Goodreads’s own JSON.
| Field | Type | Description |
|---|---|---|
book | GoodreadsBook | |
similarBooks | object[] | With include_similar. |
lists | object[] | With include_lists. |
Status codes
| Status | Meaning |
|---|---|
200 | The book. |
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.