{
  "openapi": "3.0.1",
  "info": {
    "title": "Rotten Tomatoes Scraper: Tomatometer & Audience Scores",
    "description": "Scrape Rotten Tomatoes: Tomatometer and audience scores, certified-fresh flags, browse lists and title details with cast, director and genres for movies and TV. Export CSV, Excel, JSON. No login or API key. Browse rows return about 29 titles per page.",
    "version": "0.1",
    "x-build-id": "4Asfcs9HioffE221F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~rotten-tomatoes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-rotten-tomatoes-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/recordsdata~rotten-tomatoes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-rotten-tomatoes-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/recordsdata~rotten-tomatoes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-rotten-tomatoes-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "includeBrowse": {
            "title": "Browse a list",
            "type": "boolean",
            "description": "On: scrape the list chosen below. Off: only the title URLs and search terms of the next section are fetched."
          },
          "category": {
            "title": "Which list?",
            "enum": [
              "movies_at_home",
              "movies_in_theaters",
              "movies_coming_soon",
              "tv_series_browse"
            ],
            "type": "string",
            "description": "Movies at home (streaming), in theaters, coming soon, or TV series.",
            "default": "movies_at_home"
          },
          "sortBy": {
            "title": "Sort the list by",
            "enum": [
              "popular",
              "newest",
              "top_box_office",
              "a_z",
              "critic_highest",
              "critic_lowest",
              "audience_highest",
              "audience_lowest"
            ],
            "type": "string",
            "description": "For example Highest Tomatometer. Top box office exists only for in-theaters movies; audience sorts do not exist for coming soon.",
            "default": "popular"
          },
          "titleUrls": {
            "title": "Title URLs or paths",
            "type": "array",
            "description": "Movie, TV show or season links, for example /m/oppenheimer_2023 or https://www.rottentomatoes.com/tv/shogun_2024.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search by name",
            "type": "array",
            "description": "Words to look for, one per line, for example dune or the bear (up to 25). Each term returns the best matching movies and shows.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxSearchResults": {
            "title": "Matches per search term",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many titles to return per term, best match first. Example: 5.",
            "default": 5
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Titles in any of the genres you pick, for example Horror and Comedy.",
            "items": {
              "type": "string",
              "enum": [
                "action",
                "adventure",
                "animation",
                "anime",
                "biography",
                "comedy",
                "crime",
                "documentary",
                "drama",
                "entertainment",
                "faith_and_spirituality",
                "fantasy",
                "game_show",
                "lgbtq",
                "health_and_wellness",
                "history",
                "holiday",
                "horror",
                "house_and_garden",
                "kids_and_family",
                "music",
                "musical",
                "mystery_and_thriller",
                "nature",
                "news",
                "reality",
                "romance",
                "sci_fi",
                "short",
                "soap",
                "special_interest",
                "sports",
                "stand_up",
                "talk_show",
                "travel",
                "variety",
                "war",
                "western"
              ],
              "enumTitles": [
                "Action",
                "Adventure",
                "Animation",
                "Anime",
                "Biography",
                "Comedy",
                "Crime",
                "Documentary",
                "Drama",
                "Entertainment",
                "Faith & Spirituality",
                "Fantasy",
                "Game Show",
                "LGBTQ+",
                "Health & Wellness",
                "History",
                "Holiday",
                "Horror",
                "House & Garden",
                "Kids & Family",
                "Music",
                "Musical",
                "Mystery & Thriller",
                "Nature",
                "News",
                "Reality",
                "Romance",
                "Sci-Fi",
                "Short",
                "Soap",
                "Special Interest",
                "Sports",
                "Stand-Up",
                "Talk Show",
                "Travel",
                "Variety",
                "War",
                "Western"
              ]
            },
            "default": []
          },
          "criticsFilter": {
            "title": "Tomatometer status (critics)",
            "enum": [
              "",
              "certified_fresh",
              "fresh",
              "rotten"
            ],
            "type": "string",
            "description": "Certified Fresh, Fresh or Rotten. Certified Fresh does not exist for TV.",
            "default": ""
          },
          "audienceFilter": {
            "title": "Popcornmeter status (audience)",
            "enum": [
              "",
              "verified_hot",
              "upright",
              "spilled"
            ],
            "type": "string",
            "description": "Verified Hot, Hot or Stale. Not available for coming soon; Verified Hot does not exist for TV.",
            "default": ""
          },
          "contentRatings": {
            "title": "Age ratings",
            "type": "array",
            "description": "Movie ratings (G to NR) for movie lists, TV ratings (TV-Y to TV-MA) for TV.",
            "items": {
              "type": "string",
              "enum": [
                "g",
                "pg",
                "pg_13",
                "r",
                "nc_17",
                "nr",
                "ur",
                "tvy",
                "tvy7",
                "tvg",
                "tvpg",
                "tv14",
                "tvma"
              ],
              "enumTitles": [
                "G",
                "PG",
                "PG-13",
                "R",
                "NC-17",
                "Not rated",
                "Unrated",
                "TV-Y",
                "TV-Y7",
                "TV-G",
                "TV-PG",
                "TV-14",
                "TV-MA"
              ]
            },
            "default": []
          },
          "streamingServices": {
            "title": "Streaming services",
            "type": "array",
            "description": "Titles on these services, for example Netflix. Works for movies at home and TV only.",
            "items": {
              "type": "string",
              "enum": [
                "theaters",
                "fandango",
                "apple-tv-plus",
                "netflix",
                "prime-video",
                "disney-plus",
                "max",
                "peacock",
                "hulu",
                "paramount-plus",
                "amc-plus",
                "acorn-tv",
                "apple-tv"
              ],
              "enumTitles": [
                "Theaters",
                "Fandango",
                "Apple TV+",
                "Netflix",
                "Prime Video",
                "Disney+",
                "HBO Max",
                "Peacock",
                "Hulu",
                "Paramount+",
                "AMC+",
                "Acorn TV",
                "Apple TV"
              ]
            },
            "default": []
          },
          "releaseYearFrom": {
            "title": "Released from (year)",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Keeps titles released in or after this year, for example 2020. Applied by the actor, so raise the page depth below when you use it."
          },
          "releaseYearTo": {
            "title": "Released up to (year)",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Keeps titles released in or before this year, for example 2024."
          },
          "maxPages": {
            "title": "Browse depth (pages of 28 titles)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many list pages to read, from 1 to 25. Rotten Tomatoes serves about 100 to 300 titles per list, so a higher value just returns the whole list.",
            "default": 5
          },
          "includeReviews": {
            "title": "Add reviews to each title",
            "type": "boolean",
            "description": "Adds critic quotes (outlet, link) and audience reviews, up to 6 of each. TV pages show none, so the latest scored season is used. Reviews count toward Max rows.",
            "default": false
          },
          "reviewTypes": {
            "title": "Which reviews?",
            "type": "array",
            "description": "Critic reviews, audience reviews or both. Audience reviewer names are never collected.",
            "items": {
              "type": "string",
              "enum": [
                "critic",
                "audience"
              ],
              "enumTitles": [
                "Critic reviews",
                "Audience reviews"
              ]
            },
            "default": [
              "critic",
              "audience"
            ]
          },
          "maxReviewsPerTitle": {
            "title": "Reviews per title",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "From 1 to 12. With both types they alternate: critic, audience, critic. Example: 5.",
            "default": 5
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows across browse, detail and review rows (a title with 5 reviews is 6 rows). Free plan: 10 rows; paid: up to 1,000,000.",
            "default": 10
          },
          "onlyNew": {
            "title": "Only new titles",
            "type": "boolean",
            "description": "Skips titles delivered by earlier runs of the same search. Skipped titles are not charged.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Label to keep separate memories for identical searches, for example weekly-netflix. Empty shares one memory per search."
          },
          "resetSeen": {
            "title": "Forget what was seen",
            "type": "boolean",
            "description": "Clears the memory before the run, so every title counts as new again.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}