Skip to navigation

quotes-scraper

View as Markdown

Quotes Scraper

Scrapes quotes associated with a specific book work from its Goodreads quotes page. Returns a list of quotes with attribution and like counts.


Request

Method: POST
URL: {{Instance Domain}}/api/works/quotes

Headers

KeyValueDescription
Content-Typeapplication/jsonIndicates the request body is JSON

Body

FieldTypeRequiredDescription
queryURLstringYesThe full Goodreads work quotes page URL (e.g. https://www.goodreads.com/work/quotes/1540236)

Example Body:

{
"queryURL": "https://www.goodreads.com/work/quotes/1540236"
}

Response

200 Success

Returns a JSON object containing the scraped quotes.

{
"status": "Received",
"statusCode": 200,
"scrapeURL": "string",
"quotes": [
{
"quote": "string",
"author": "string",
"likes": "string",
"tags": ["string"]
}
]
}

Response Field Descriptions

FieldTypeDescription
statusstringHuman-readable status message
statusCodenumberHTTP status code of the scrape operation
scrapeURLstringThe Goodreads URL that was scraped
quotesarrayList of quotes from the book
quotes[].quotestringThe quote text
quotes[].authorstringThe author attributed to the quote
quotes[].likesstringNumber of likes the quote has received
quotes[].tagsarrayList of tags associated with the quote

Request

This endpoint expects an object.
queryURLstringRequiredformat: "uri"

Response

OK
statusstring
sourcestringformat: "uri"
scrapeURLstringformat: "uri"
bookURLstring
imagestringformat: "uri"
namestring
quoteslist of objects
lastScrapeddatetime