# goodreads.search

The books Goodreads' search box suggests for a title, an author or an ISBN: title, author, average rating, number of ratings, pages and the address of each book's page.

Goodreads search, one of the Goodreads scrapers.

| | |
| --- | --- |
| Id | `goodreads.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/goodreads.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to search for: a title, an author, an ISBN. Limit: at least 1 characters, at most 200 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `query` | string | The query that was asked. |
| `position` | integer | The rank among the suggestions, from 1. Limit: at least 1. |
| `book_id` | string | Goodreads' number for the book, e.g. `44767458`. |
| `work_id` | string or null | Goodreads' number for the work, shared by all its editions. |
| `url` | string | The book's page on Goodreads. |
| `title` | string | The title with the series in brackets, as Goodreads prints it, e.g. `Dune (Dune, #1)`. |
| `title_bare` | string or null | The title alone. |
| `author` | string or null | The author's name. |
| `author_url` | string or null | The author's page on Goodreads. |
| `average_rating` | number or null | The average rating, 1 to 5. |
| `ratings_count` | integer or null | The number of ratings. |
| `page_count` | integer or null | The number of pages. |
| `description` | string or null | The start of the book's description, as the search box carries it. |
| `image` | string or null | The address of the cover's small picture. |
| `fetched_at` | string (date-time) | When the suggestions were read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/goodreads.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"dune"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "goodreads.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "dune"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "query": "dune",
      "position": 1,
      "book_id": "44767458",
      "work_id": "3634639",
      "url": "https://www.goodreads.com/book/show/44767458-dune",
      "title": "Dune (Dune, #1)",
      "title_bare": "Dune",
      "author": "Frank Herbert",
      "author_url": "https://www.goodreads.com/author/show/58.Frank_Herbert",
      "average_rating": 4.29,
      "ratings_count": 1729877,
      "page_count": 658,
      "description": "Set on the desert planet Arrakis, Dune is the story of the boy Paul Atreides, heir to a noble family tasked with ruling an inhospitable world where the only thing of value is …",
      "image": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1555447414i/44767458._SY75_.jpg",
      "fetched_at": "2026-11-19T18:07:40.345089Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Goodreads scrapers](https://docs.enrichednow.com/results-and-statuses.md#goodreads) are in their own section there.
