# Goodreads Book Detail API Documentation

Retrieve a single public Goodreads book by its legacy book id: title, description in HTML and plain text, author, cover, format, page count, publisher, publication date, language, ISBN/ISBN13, genres, series, average rating, ratings count, the 5-to-1 star rating distribution, text reviews count and the work id behind the edition. ISBN and ISBN13 are omitted when Goodreads does not list them for the edition. A valid book with no ISBN is a successful response.

- **Documentation:** [https://scrappa.co/docs/goodreads-api/goodreads_book](https://scrappa.co/docs/goodreads-api/goodreads_book)
- **API group:** Goodreads API
- **Endpoint:** `GET https://scrappa.co/api/goodreads/book`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer | Yes | Goodreads legacy book id (the number in the book url). Example: 61215351. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/goodreads/book?id=61215351"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": 61215351,
        "title": "The Fellowship of the Ring",
        "title_complete": "The Fellowship of the Ring (The Lord of the Rings, #1)",
        "author": {
            "name": "J.R.R. Tolkien",
            "id": 656983,
            "url": "https://www.goodreads.com/author/show/656983.J_R_R_Tolkien"
        },
        "format": "Kindle Edition",
        "num_pages": 432,
        "publisher": "William Morrow",
        "published_at": "2022-06-07T05:00:00Z",
        "average_rating": 4.41,
        "ratings_count": 3246468,
        "rating_distribution": {
            "five": 55653,
            "four": 82163,
            "three": 310123,
            "two": 823635,
            "one": 1974894
        },
        "text_reviews_count": 59158,
        "work_id": "kca://work/amzn1.gr.work.v1.9REDn-8i069k4tnkJOyIFA"
    },
    "meta": {
        "endpoint_family": "book_detail",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id parameter is missing or not an integer. This response is not billable. |
| 404 | Book Not Found | The requested Goodreads book was not found. This response is not billable. |
| 503 | Upstream Unavailable | Goodreads is temporarily unreachable or the page shape changed. Retry later; this response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
