# Rotten Tomatoes Scraper (`kawsar/rotten-tomatoes-scraper`) Actor

Extract Tomatometer scores, cast, director, and genre details from Rotten Tomatoes movie pages into clean JSON, CSV, or Excel datasets.

- **URL**: https://apify.com/kawsar/rotten-tomatoes-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Scraper

![Rotten Tomatoes Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/rotten-tomatoes-scraper-cover.png)

Collect movie information and ratings from publicly accessible Rotten Tomatoes movie pages. Retrieve Tomatometer scores, cast members, directors, genres, release information, and other available movie details. Export structured results in JSON, CSV, Excel, and other supported Apify dataset formats.

### What It Does

The actor collects movie information from the Rotten Tomatoes URLs you provide. Each result contains available movie metadata, including the title, aggregate rating, content rating, cast, director, and genres.

Movie titles and page URLs are stored as `movieName` and `movieUrl`, while descriptions use `itemDescription` to maintain valid dataset field names. Duplicate records are removed before being saved.

### Scraping Mode

**Movie Page (`movie`)**

Collects structured movie information from individual Rotten Tomatoes movie pages. Each URL should point to a movie page under `/m/`.

### Input Example

```json
{
  "mode": "movie",
  "urls": [
    "https://www.rottentomatoes.com/m/oppenheimer_2023"
  ],
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

#### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `movie` | Movie page collection mode. |
| `urls` | array | Sample Oppenheimer URL | Rotten Tomatoes movie page URLs under `/m/`. |
| `maxItems` | integer | `100` | Maximum number of successful dataset rows. |
| `userAgent` | string | BigiByte research UA | User agent used for requests. |
| `requestDelayMs` | integer | `1000` | Delay between requests in milliseconds. |
| `timeoutSecs` | integer | `300` | Overall run timeout in seconds. |
| `requestTimeoutSecs` | integer | `30` | Individual request timeout in seconds. |
| `proxyConfiguration` | object | Proxy off | Optional proxy configuration. |

### Output Example

```json
{
  "actor": [
    {
      "@type": "Person",
      "name": "Cillian Murphy",
      "sameAs": "https://www.rottentomatoes.com/celebrity/cillian_murphy",
      "image": "https://resizing.flixster.com/example"
    }
  ],
  "aggregateRating": {
    "@type": "AggregateRating",
    "bestRating": "100",
    "name": "Tomatometer",
    "ratingCount": 511,
    "ratingValue": "93",
    "reviewCount": 511,
    "worstRating": "0"
  },
  "contentRating": "R",
  "dateCreated": "2023-07-21",
  "director": [
    {
      "@type": "Person",
      "name": "Christopher Nolan",
      "sameAs": "https://www.rottentomatoes.com/celebrity/christopher_nolan"
    }
  ],
  "itemDescription": "Discover reviews, ratings, and trailers for Oppenheimer (2023) on Rotten Tomatoes.",
  "genre": [
    "Biography",
    "History",
    "Drama"
  ],
  "movieName": "Oppenheimer (2023)",
  "movieUrl": "https://www.rottentomatoes.com/m/oppenheimer_2023",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Description |
|---|---|
| `actor` | Available cast member information, including names and associated details. |
| `aggregateRating` | Aggregate movie rating information, including Tomatometer score and review counts. |
| `contentRating` | Movie content rating. |
| `dateCreated` | Movie creation date provided in the collected data. |
| `director` | Director information, including names and associated details. |
| `itemDescription` | Movie description. |
| `genre` | Movie genres. |
| `movieName` | Movie title. |
| `movieUrl` | Rotten Tomatoes movie page URL. |
| `scrapedAt` | Timestamp when the result was collected. |

### Use Cases

- **Tomatometer Tracking:** Collect movie scores for watchlists and rating comparisons.
- **Movie Research:** Build structured datasets containing cast, directors, and genres.
- **Bulk Movie Collection:** Process multiple Rotten Tomatoes movie URLs in one run.
- **Film Analysis:** Organize movie metadata for research and analysis.
- **Score Monitoring:** Schedule recurring runs to refresh information for selected movies.

### Frequently Asked Questions

**Who can use this actor?**

It is useful for film researchers, analysts, developers, and movie enthusiasts who need structured Rotten Tomatoes movie information.

**What movie information does it collect?**

Available information includes movie titles, Tomatometer ratings, review counts, content ratings, cast members, directors, genres, and descriptions.

**What export formats are supported?**

You can export results as JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I process multiple movie URLs?**

Yes. Provide multiple movie page URLs in the `urls` array to collect information for different titles.

**Can I run it on a schedule?**

Yes. You can use Apify schedules to refresh movie information at your preferred intervals.

**Why might some movie pages return incomplete results?**

Available information can vary between movie pages. Some pages may not provide all expected movie details, so certain output fields may be missing.

### Trademark Notice

Rotten Tomatoes and its related names and trademarks belong to their respective owners. They are mentioned only to identify the source of the collected information. This actor is independently developed and is not affiliated with or endorsed by Rotten Tomatoes.

### Is Web Scraping Legal?

This actor collects publicly accessible movie information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Movie records may contain names and other information about cast members or individuals. Handle personal data responsibly and consider applicable privacy requirements, including GDPR and CCPA where relevant.
- **Copyright and Licensing:** Movie descriptions, images, and other creative content may be protected by copyright. Avoid unauthorized reproduction or redistribution, and respect applicable licensing and attribution requirements.
- **Platform Terms and Rate Limits:** Follow Rotten Tomatoes' terms, policies, and applicable request limits when collecting information.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional about your specific use case.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to scrape.

## `urls` (type: `array`):

Movie page URLs under rottentomatoes.com/m/.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds (about 1 request per second by default).

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless Rotten Tomatoes blocks your IP.

## Actor input object example

```json
{
  "mode": "movie",
  "urls": [
    "https://www.rottentomatoes.com/m/oppenheimer_2023"
  ],
  "userAgent": "ActorResearch/1.0",
  "requestDelayMs": 1000,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

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

Dataset items as JSON.

# 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 = {
    "urls": [
        "https://www.rottentomatoes.com/m/oppenheimer_2023"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/rotten-tomatoes-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 = { "urls": ["https://www.rottentomatoes.com/m/oppenheimer_2023"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/rotten-tomatoes-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 '{
  "urls": [
    "https://www.rottentomatoes.com/m/oppenheimer_2023"
  ]
}' |
apify call kawsar/rotten-tomatoes-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/rotten-tomatoes-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/7Bv38CBbtNResXj0y/builds/i0te3TDWcilXHqUmA/openapi.json
