{
  "openapi": "3.0.1",
  "info": {
    "title": "IMDb Scraper — Movies, TV, Ratings, Reviews & Cast API",
    "description": "Unofficial IMDb API powered by IMDb's own GraphQL — no key, no browser. Search movies & TV by genre/year/rating/votes, pull title details, cast & crew, episode lists, user reviews and ratings. Export IMDb datasets to JSON, CSV or Excel. For film analytics, ML and recommendations.",
    "version": "1.0",
    "x-build-id": "aSBlgNSVyklTvjm6G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~imdb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-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/logiover~imdb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-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/logiover~imdb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-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": [
              "searchTitles",
              "search",
              "titleDetails",
              "episodes",
              "reviews",
              "name"
            ],
            "type": "string",
            "description": "Which IMDb endpoint to run.\n\n• **searchTitles** — advanced movie/TV search: filter by type, genre, year, rating and votes; paginates through tens of thousands of matches (highest volume)\n• **search** — free-text search across titles, people and companies\n• **titleDetails** — full details for one or more title IDs (batch)\n• **episodes** — every episode of a TV series (paginated)\n• **reviews** — user reviews for a title (paginated)\n• **name** — person / cast / crew details for one or more name IDs (batch)",
            "default": "searchTitles"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text term for **search** mode (movie name, show, actor, director or company)."
          },
          "searchType": {
            "title": "Search entity type",
            "enum": [
              "TITLE",
              "NAME",
              "COMPANY",
              "KEYWORD"
            ],
            "type": "string",
            "description": "Restrict **search** results to one entity type. Leave empty to search everything."
          },
          "titleTypes": {
            "title": "Title types",
            "type": "array",
            "description": "Filter **searchTitles** by one or more title types. Leave empty to default to Movies.",
            "items": {
              "type": "string",
              "enum": [
                "movie",
                "tvSeries",
                "tvMiniSeries",
                "tvMovie",
                "tvSpecial",
                "tvShort",
                "tvEpisode",
                "short",
                "video",
                "videoGame",
                "musicVideo",
                "podcastSeries",
                "podcastEpisode"
              ],
              "enumTitles": [
                "Movie",
                "TV series",
                "TV mini-series",
                "TV movie",
                "TV special",
                "TV short",
                "TV episode",
                "Short",
                "Video",
                "Video game",
                "Music video",
                "Podcast series",
                "Podcast episode"
              ]
            },
            "default": []
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Filter by one or more genres (all must match).",
            "items": {
              "type": "string",
              "enum": [
                "Action",
                "Adventure",
                "Animation",
                "Biography",
                "Comedy",
                "Crime",
                "Documentary",
                "Drama",
                "Family",
                "Fantasy",
                "Film-Noir",
                "Game-Show",
                "History",
                "Horror",
                "Music",
                "Musical",
                "Mystery",
                "News",
                "Reality-TV",
                "Romance",
                "Sci-Fi",
                "Sport",
                "Talk-Show",
                "Thriller",
                "War",
                "Western"
              ],
              "enumTitles": [
                "Action",
                "Adventure",
                "Animation",
                "Biography",
                "Comedy",
                "Crime",
                "Documentary",
                "Drama",
                "Family",
                "Fantasy",
                "Film-Noir",
                "Game-Show",
                "History",
                "Horror",
                "Music",
                "Musical",
                "Mystery",
                "News",
                "Reality-TV",
                "Romance",
                "Sci-Fi",
                "Sport",
                "Talk-Show",
                "Thriller",
                "War",
                "Western"
              ]
            },
            "default": []
          },
          "releaseDateStart": {
            "title": "Release date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only titles released on/after this date. Format `YYYY-MM-DD`."
          },
          "releaseDateEnd": {
            "title": "Release date to (YYYY-MM-DD)",
            "type": "string",
            "description": "Only titles released on/before this date. Format `YYYY-MM-DD`."
          },
          "minRating": {
            "title": "Minimum IMDb rating (0-10)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only titles with an average IMDb rating at or above this value."
          },
          "maxRating": {
            "title": "Maximum IMDb rating (0-10)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only titles with an average IMDb rating at or below this value."
          },
          "minVotes": {
            "title": "Minimum vote count",
            "minimum": 0,
            "type": "integer",
            "description": "Only titles with at least this many user ratings. Great for filtering out obscure entries (e.g. 1000+)."
          },
          "sortBy": {
            "title": "Sort by (searchTitles)",
            "enum": [
              "POPULARITY",
              "USER_RATING",
              "USER_RATING_COUNT",
              "RELEASE_DATE",
              "RUNTIME",
              "BOX_OFFICE_GROSS_DOMESTIC",
              "METACRITIC_SCORE"
            ],
            "type": "string",
            "description": "Ordering field for advanced title search.",
            "default": "POPULARITY"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "ASC",
              "DESC"
            ],
            "type": "string",
            "description": "ASC = most popular / lowest value first (for POPULARITY, ASC = most popular). DESC = highest value first.",
            "default": "ASC"
          },
          "titleId": {
            "title": "Title ID (tt…)",
            "type": "string",
            "description": "IMDb title ID, e.g. `tt0111161`. Used by **titleDetails**, **episodes**, **reviews**. The digits after `tt` in an IMDb URL."
          },
          "titleIds": {
            "title": "Title IDs (batch, titleDetails)",
            "type": "array",
            "description": "Array of IMDb title IDs (`tt…`) for batch **titleDetails**.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "nameId": {
            "title": "Name ID (nm…)",
            "type": "string",
            "description": "IMDb person ID, e.g. `nm0000138`. Used by **name** mode."
          },
          "nameIds": {
            "title": "Name IDs (batch)",
            "type": "array",
            "description": "Array of IMDb person IDs (`nm…`) for batch **name** lookups.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound on rows returned. For searchTitles/episodes/reviews this drives pagination; for search it caps a single page (≤200).",
            "default": 200
          },
          "country": {
            "title": "Country (localization)",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "IE",
              "DE",
              "FR",
              "ES",
              "IT",
              "PT",
              "NL",
              "BE",
              "SE",
              "NO",
              "DK",
              "FI",
              "PL",
              "TR",
              "RU",
              "UA",
              "GR",
              "CZ",
              "AT",
              "CH",
              "BR",
              "MX",
              "AR",
              "CL",
              "CO",
              "IN",
              "JP",
              "KR",
              "CN",
              "HK",
              "TW",
              "TH",
              "ID",
              "PH",
              "VN",
              "MY",
              "SG",
              "SA",
              "AE",
              "IL",
              "EG",
              "ZA",
              "NG",
              "NZ"
            ],
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code used for IMDb localization (affects regional titles, release dates and ranking).",
            "default": "US"
          },
          "language": {
            "title": "Language (localization)",
            "enum": [
              "en-US",
              "en-GB",
              "de-DE",
              "fr-FR",
              "es-ES",
              "es-MX",
              "it-IT",
              "pt-BR",
              "pt-PT",
              "nl-NL",
              "sv-SE",
              "nb-NO",
              "da-DK",
              "fi-FI",
              "pl-PL",
              "tr-TR",
              "ru-RU",
              "uk-UA",
              "el-GR",
              "cs-CZ",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "th-TH",
              "id-ID",
              "vi-VN",
              "hi-IN",
              "ar-AE",
              "he-IL"
            ],
            "type": "string",
            "description": "BCP 47 language tag for IMDb localization (affects title language and text).",
            "default": "en-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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}