# Rotten Tomatoes Scores Scraper (`xtracto/rottentomatoes-scores-scraper`) Actor

Searches Rotten Tomatoes and returns full movie and TV show records in one call: Tomatometer and Popcornmeter scores, certified-fresh status, full cast and crew, genres, poster and trailer, straight from the same search index the site's own search box uses.

- **URL**: https://apify.com/xtracto/rottentomatoes-scores-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Rotten Tomatoes Scores Scraper

Searches **[Rotten Tomatoes](https://www.rottentomatoes.com)** — the
best-known movie/TV critic-and-audience score aggregator (owned by
Fandango) — and returns a complete record per title in a single request:
Tomatometer (critics) score, Popcornmeter (audience) score, certified-fresh
status, full cast and crew, genres, rating, runtime, poster, trailer and
alternate titles.

### How this works — and why it's not "scraping the search page"

Rotten Tomatoes' own search box is powered by **Algolia**, and the site
embeds a public, read-only search key directly in every page's inline
config. This actor calls that same Algolia index directly — the identical
request RT's own frontend makes, just without a browser. It never touches
`www.rottentomatoes.com/search`, which `robots.txt` disallows; the Algolia
host (`*.algolia.net`) is a separate origin that policy does not cover, the
same relationship this portfolio's other actors have with a target's own
backing JSON API instead of its rendered HTML.

One consequence: a single search hit is already a **complete** record.
Checked directly against a title's own Rotten Tomatoes page, not assumed —
the search hit carries everything the page's own embedded JSON does
(scores, cast, genres, poster) *and more* (full crew with person IDs,
keyword tags, trailer info). So there is no "fetch full details" toggle —
nothing more is available from a per-title page fetch, and this actor
never requests one.

### What you get

Two record types share one dataset, told apart by `recordType`.

#### `TITLE` — one row per movie or show

Raw passthrough of the search hit: `title`, `type` (movie/tv), `releaseYear`,
`rating`, `runTime`, `genres`, `studios`, `posterImageUrl`, `trailer`,
`castCrew`/`cast`/`crew` (with `personId` for each), `keywords`, `aka`
(alternate titles), and `rottenTomatoes` (`audienceScore`, `criticsScore`,
`certifiedFresh`, `scoreSentiment`, `wantToSeeCount`). Flattened
`title*` convenience fields (`titleAudienceScore`, `titleCriticsScore`,
`titleCertifiedFresh`, `titleUrl`) are added for the table view.

#### `SEARCH_SUMMARY` — one row per search term

Algolia's own `nbHits`/`nbPages`, how many rows this run actually pulled,
and the filters sent.

### Input

| Field | What it does |
| --- | --- |
| **Movie/show titles to search** | one search per entry — e.g. `parasite`, `breaking bad` |
| **Content type** | restrict to movies or TV shows; leave on Any for both |
| **Max results per search term** | `0` = unlimited, walks every page the search reports |
| **Results per request** | up to 1000 |

#### Example

```json
{
  "searchTerms": ["parasite", "breaking bad", "dune 2021"],
  "maxItemsPerTerm": 10
}
```

### Notes on reliability

- **`robots.txt`** has no ClaudeBot/anthropic-ai/GPTBot/CCBot group at
  all — policy-open. It disallows `/search` (RT's own HTML search page,
  not used here) and a couple of picture-gallery/self-submission paths.
- **HTTP 400/404 from Algolia is treated as fatal, not retried.** It means
  the request itself is malformed — every case that would trigger it
  (`hitsPerPage` over 1000, a bad content type) is refused in code before
  a request is ever sent.
- **Residential proxy, no country pin** is the cloud default.

### Known limits

- **No keyword-search mode / "crawl everything" mode.** Rotten Tomatoes'
  own HTML search page is `robots.txt`-disallowed, so this actor works
  entirely through the search terms you provide — there is no equivalent
  of "give me the whole catalogue."
- **`nbHits` can wobble for a single, very common word.** Tested with the
  literal stopword `"the"`: the reported total swung between roughly 2,300
  and 86,000 depending on page size — a known Algolia platform behaviour
  for approximate counting on extremely broad, low-specificity queries,
  not something specific to this actor. Realistic title searches (a movie
  or show name) were never observed to hit this; search actual titles
  rather than single common words.
- No cast/crew filmography search (a `people_rt` index exists alongside
  the one this actor uses, but is a different data-type/audience — a
  natural sibling actor, not built here).

# Actor input Schema

## `searchTerms` (type: `array`):

One search per entry, each with its own SEARCH_SUMMARY row — e.g. `parasite`, `breaking bad`, `dune 2021`. Matches against title, alternate titles and cast/crew names. This actor has no 'crawl everything' mode: Rotten Tomatoes' own HTML search page is disallowed by robots.txt, so search terms are the only way in.

## `contentType` (type: `string`):

Restrict to movies or TV shows. Leave on Any to search both in one request.

## `maxItemsPerTerm` (type: `integer`):

Stop after this many titles per search term. Set to 0 for unlimited (walks every page the search reports).

## `hitsPerPage` (type: `integer`):

How many titles to pull per underlying request. 1000 is the maximum this index accepts.

## `maxConcurrency` (type: `integer`):

Upper bound on requests in flight at once, across all search terms.

## `proxyConfiguration` (type: `object`):

No bot-mitigation gate was observed anywhere in recon (7 TLS profiles clean, cold, with no Referer/Origin/cookie required). Residential is still the cloud default as this portfolio's standard baseline.

## Actor input object example

```json
{
  "searchTerms": [
    "parasite",
    "breaking bad"
  ],
  "contentType": "",
  "maxItemsPerTerm": 20,
  "hitsPerPage": 20,
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `items` (type: `string`):

One row per scraped record. See the dataset's default view for field definitions.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "parasite",
        "breaking bad"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/rottentomatoes-scores-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchTerms": [
        "parasite",
        "breaking bad",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("xtracto/rottentomatoes-scores-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "parasite",
    "breaking bad"
  ]
}' |
apify call xtracto/rottentomatoes-scores-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/rottentomatoes-scores-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/h8R25nx2eCQdUjM0n/builds/Jb5mw3v1aGHH57ytI/openapi.json
