Goodreads quotes API
Goodreads quotes by book, author, tag or words (30 a page).
GET /v1/goodreads/quotesBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/goodreads/quotes?tag=love",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "totalCount": 101924, "quotes": [ { "legacyId": 8630, "text": "I'm selfish, impatient and a little insecure. I make mistakes, I am out of control and at times hard to handle. But if y…", "author": { "name": "Marilyn Monroe", "webUrl": null, "legacyId": null }, "work": null, "tags": [ "attributed-no-source", "best", "… 7 more" ], "likesCount": 166132, "webUrl": "https://www.goodreads.com/quotes/8630-i-m-selfish-impatient-and-a-little-insecure-i-make-mistakes" }, { "legacyId": 10123, "text": "You've gotta dance like there's nobody watching, Love like you'll never be hurt, Sing like there's nobody listening, And…", "author": { "name": "William W. Purkey", "webUrl": "https://www.goodreads.com/author/show/1744830.William_W_Purkey", "legacyId": 1744830 }, "work": null, "tags": [ "dance", "heaven", "… 5 more" ], "likesCount": 129561, "webUrl": "https://www.goodreads.com/quotes/10123-you-ve-gotta-dance-like-there-s-nobody-watching-love-like-you-ll" }, "… 28 more" ], "pagination": { "next_cursor": "2", "has_more": true }}Parameters
| Name | Type | Description |
|---|---|---|
bookquery | string | A book id or link. Example: 5907. |
authorquery | string | An author id or link. Example: 656983. |
tagquery | string | A quote tag. Example: love. |
queryquery | string | Words to search for. Example: hope. |
limitquery | integer | 1 to 30, default 30. |
afterquery | string | Cursor: the previous page’s pagination.next_cursor (pass the same filters). |
Response fields
200 with a GoodreadsQuotesResponse, in Goodreads’s own JSON.
| Field | Type | Description |
|---|---|---|
totalCount | integer | null | |
quotes | GoodreadsQuote[] | |
pagination | GoodreadsPagination |
Status codes
| Status | Meaning |
|---|---|
200 | A page of quotes. |
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.