# rottentomatoes.search

The films and series Rotten Tomatoes' search finds for some words, up to 10 of each: title, year, Tomatometer, Certified Fresh and the cast it names.

Rotten Tomatoes search, one of the Rotten Tomatoes scrapers.

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

Start it with `POST /v1/scrapers/rottentomatoes.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 | The words to search for: a title, e.g. "dune". Limit: at least 1 characters, at most 200 characters. |
| `type` | "all" \| "movie" \| "tv" | no | Films (movie), series (tv), or both (all). Default: `"all"`. |

- The search page lists 10 films and 10 series at most for the words, films first, in its order; `type` keeps films (`movie`) or series (`tv`) only.
- Give a record's `slug` to [`rottentomatoes.title`](https://docs.enrichednow.com/scrapers/rottentomatoes.title.md) for the title's scores and details.
- Words that find nothing end `ok` with zero records.

## 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 |
| --- | --- | --- |
| `position` | integer | Its place in the results, from 1: films first, then series, as the page lists them. |
| `type` | string | movie or tv. |
| `title` | string | The title, as the results show it. |
| `slug` | string | The title's part of its address: m/<name> or tv/<name>; give it to rottentomatoes.title. |
| `url` | string | The title's address on Rotten Tomatoes. |
| `year` | integer or null | The year it was released; for a series, the year it started. |
| `end_year` | integer or null | For a series, the last year of the range the results show. |
| `tomatometer` | integer or null | The Tomatometer, in percent, when it has one. |
| `certified_fresh` | boolean or null | Whether the title is Certified Fresh. |
| `cast` | array of string | The cast the results name, in their order. |
| `poster` | string or null | The address of the poster the results show. |
| `fetched_at` | string (date-time) | When the search was 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/rottentomatoes.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": "rottentomatoes.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": [
    {
      "position": 1,
      "type": "movie",
      "title": "Dune: Part Two",
      "slug": "m/dune_part_two",
      "url": "https://www.rottentomatoes.com/m/dune_part_two",
      "year": 2024,
      "end_year": null,
      "tomatometer": 92,
      "certified_fresh": true,
      "cast": [
        "Timothée Chalamet",
        "Zendaya",
        "Rebecca Ferguson"
      ],
      "poster": "https://resizing.flixster.com/5GRwdlNPzocG0TTLJvZ_dl72Fnc=/fit-in/80x126/v2/https://resizing.flixster.com/PgHhmCKS3hR6GUsVNlC-vZ9d90I=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzZhOTA0OTIzLTEwNDctNDhkNS1iNTc3LTY3MjBmNDc5OGU1Mi5qcGc=",
      "fetched_at": "2026-11-19T18:07:41.214854Z"
    }
  ],
  "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 Rotten Tomatoes scrapers](https://docs.enrichednow.com/results-and-statuses.md#rotten-tomatoes) are in their own section there.
