{
  "openapi": "3.0.1",
  "info": {
    "title": "IMDb Scraper — Movies, TV, Ratings & Reviews",
    "description": "Scrape IMDb titles and user reviews: rating, votes, genres, cast, box office, awards, plus thousands of reviews per title with rating, text, date and helpful votes. Charts and search too.",
    "version": "0.1",
    "x-build-id": "actcHfin9aAebZAHp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~imdb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-imdb-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/tortuga~imdb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-imdb-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/tortuga~imdb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-imdb-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "reviews",
              "titles",
              "chart",
              "search"
            ],
            "type": "string",
            "description": "What to scrape. `reviews`: user reviews (`review` items) of every title. `titles`: one `title` item per movie / show with rating, votes, cast, box office, awards and more. `chart`: ranked rows (`list_entry`) of IMDb charts such as the Top 250. `search`: ranked rows (`list_entry`) for search terms or advanced-search URLs. In `titles` and `reviews` mode, chart and search URLs expand to the titles on them.",
            "default": "reviews"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "IMDb URLs, one per line: title pages (`https://www.imdb.com/title/tt0111161/`), reviews pages (`/title/tt0111161/reviews/?sort=submission_date&dir=desc`, the sort and rating filter in the URL are kept), charts (`/chart/top/`, `/chart/toptv/`, `/chart/moviemeter/`, `/chart/tvmeter/`, `/chart/bottom/`, `/chart/top-english-movies/`, `/india/top-rated-indian-movies/`), advanced searches (`/search/title/?genres=comedy&user_rating=7,&sort=num_votes,desc`) or `/find/?q=...` searches.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "titleIds": {
            "title": "Title IDs",
            "type": "array",
            "description": "IMDb title IDs, one per line, e.g. `tt0111161` (The Shawshank Redemption) or `tt0903747` (Breaking Bad).",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Movie or show names, one per line (add the year to disambiguate, e.g. `Dune 2021`). In `titles` / `reviews` mode each term resolves to its best-matching title; in `search` mode every match is returned as a ranked row.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Overall cap on dataset items for the run (titles, reviews and list rows combined). Keeps cost predictable.",
            "default": 100
          },
          "maxReviewsPerTitle": {
            "title": "Max reviews per title",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on reviews collected for each title in `reviews` mode. The full review list is reachable (50 reviews per request), so large values work: The Shawshank Redemption has 12,000+ reviews.",
            "default": 100
          },
          "maxTitlesPerList": {
            "title": "Max titles per chart / search URL",
            "minimum": 1,
            "type": "integer",
            "description": "In `titles` and `reviews` mode, how many titles to take from each chart or search start URL before fetching their details or reviews.",
            "default": 50
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "helpfulness",
              "newest",
              "oldest",
              "most_votes",
              "rating_high",
              "rating_low"
            ],
            "type": "string",
            "description": "Order in which reviews are collected (matters when a cap is set). `helpfulness` is IMDb's default order; `newest` is best for monitoring.",
            "default": "helpfulness"
          },
          "ratingFilter": {
            "title": "Only reviews with this rating",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Keep only reviews whose star rating is exactly this value (1-10), using IMDb's own filter. Leave empty for all reviews, including those without a rating."
          },
          "includeSpoilers": {
            "title": "Include spoiler reviews",
            "type": "boolean",
            "description": "Reviews flagged as spoilers are included and marked with `isSpoiler: true`. Turn off to skip them (IMDb's own spoiler filter).",
            "default": true
          },
          "reviewsNewerThan": {
            "title": "Only reviews newer than",
            "type": "string",
            "description": "Only reviews newer than: a date (YYYY-MM-DD) or a period such as '7 days' or '2 weeks'. Reviews are then read newest first and paging stops at the first page that reaches older reviews, so a daily run makes one call per title. IMDb dates reviews by day, so reviews from the cutoff day itself are included. Leave empty for no date limit. `reviews` mode only."
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this input returned and output only new items: in `reviews` mode only reviews not output before (read newest first; paging stops where the previous run's reviews begin); in `titles` mode titles whose IMDb rating or Metascore changed; in `chart` and `search` mode titles that are new in the list or whose rating changed (rank and vote counts move daily and are not watched). Use with a Schedule; unchanged items are not charged.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input. Only used with **Only new or changed items**."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Normally not used: the Actor reads IMDb's own data API directly, which needs no proxy and costs nothing extra. Only if IMDb refuses those requests does it fall back to this proxy; imdb.com pages sit behind an AWS WAF challenge that only Apify's Unblocker proxy (group UNBLOCKER) passes. Unblocker is billed to your Apify account per successful request: 10 Unblocker units, about $0.0015 or less. On the fallback one request = one title, 50 reviews, one chart or 50 search rows.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}