Scraper APIRotten Tomatoes
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.
- 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; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
queryrequired | string | The words to search for: a title, e.g. "dune".Limit: at least 1 characters, at most 200 characters. |
type | "all" | "movie" | "tv" | 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;
typekeeps films (movie) or series (tv) only. - Give a record's
slugtorottentomatoes.titlefor the title's scores and details. - Words that find nothing end
okwith 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
# Start a run and wait up to 60 seconds for it to finish
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"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("rottentomatoes.search", {"query": "dune"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("rottentomatoes.search", { query: "dune" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "rottentomatoes.search", map[string]any{"query": "dune"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("rottentomatoes.search", Map.of("query", "dune"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run rottentomatoes.search --input query=duneInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"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.
{
"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.
{
"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 lists every status and the reasons every scraper shares; the reasons of the Rotten Tomatoes scrapers are in their own section there.