100 free credits. No credit card required. Get a key

Goodreads quotes API

Goodreads quotes by book, author, tag or words (30 a page).

GET /v1/goodreads/quotesBeta1 credit per callRefunded on failure
import 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

NameTypeDescription
bookquerystringA book id or link. Example: 5907.
authorquerystringAn author id or link. Example: 656983.
tagquerystringA quote tag. Example: love.
queryquerystringWords to search for. Example: hope.
limitqueryinteger1 to 30, default 30.
afterquerystringCursor: the previous page’s pagination.next_cursor (pass the same filters).
Response fields

200 with a GoodreadsQuotesResponse, in Goodreads’s own JSON.

FieldTypeDescription
totalCountinteger | null
quotesGoodreadsQuote[]
paginationGoodreadsPagination
Status codes
StatusMeaning
200A page of quotes.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No Goodreads book, author, series or list by that id, link or ISBN.
429Too many requests. Wait for Retry-After seconds.
503Goodreads 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.