Goodreads lists (Listopia) API
Goodreads Listopia: a list’s ranked books, lists by tag, or the lists a book is on.
GET /v1/goodreads/listsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/goodreads/lists?id=1",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "list": { "legacyId": 1, "title": "Best Books Ever (80343 books)", "webUrl": "https://www.goodreads.com/list/show/1", "description": null, "votersCount": 299467, "books": [ { "legacyId": 2767052, "title": "The Hunger Games (The Hunger Games, #1)", "webUrl": "https://www.goodreads.com/book/show/2767052-the-hunger-games", "imageUrl": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1586722975i/2767052._SX50_.jpg", "authors": [ { "legacyId": 153394, "name": "Suzanne Collins", "webUrl": "https://www.goodreads.com/author/show/153394.Suzanne_Collins" } ], "averageRating": 4.36, "ratingsCount": 10382314, "publicationYear": null, "editionsCount": null, "rank": 1, "listScore": 4591000, "listVotes": 46648 }, { "legacyId": 1885, "title": "Pride and Prejudice", "webUrl": "https://www.goodreads.com/book/show/1885.Pride_and_Prejudice", "imageUrl": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1320399351i/1885._SY75_.jpg", "authors": [ { "legacyId": 1265, "name": "Jane Austen", "webUrl": "https://www.goodreads.com/author/show/1265.Jane_Austen" } ], "averageRating": 4.3, "ratingsCount": 5060013, "publicationYear": null, "editionsCount": null, "rank": 2, "listScore": 3107701, "listVotes": 31828 }, "… 98 more" ] }, "pagination": { "next_cursor": "2", "has_more": true }}Parameters
| Name | Type | Description |
|---|---|---|
idquery | string | Goodreads list id. Example: 1. |
urlquery | string | A goodreads.com/list/show/… link instead. Example: https://www.goodreads.com/list/show/1.Best_Books_Ever. |
tagquery | string | A list tag. Example: fantasy. |
bookquery | string | A book id or link: the lists it is on. Example: 5907. |
limitquery | integer | 1 to 100, default 100. |
afterquery | string | Cursor: the previous page’s pagination.next_cursor (pass the same filters). |
Response fields
200 with a GoodreadsListsResponse, in Goodreads’s own JSON.
| Field | Type | Description |
|---|---|---|
list | object | With id: the list and a page of its books. |
lists | GoodreadsListCard[] | With tag or book: matching lists. |
pagination | GoodreadsPagination |
Status codes
| Status | Meaning |
|---|---|
200 | A list, or lists. |
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.