{
  "openapi": "3.0.1",
  "info": {
    "title": "IMDb Scraper",
    "description": "Scrape IMDb by keyword with filters, charts (Top 250, Most Popular, Box Office), or any IMDb URL — ratings, votes, genres, plots & posters. Full-detail mode adds Metascore, cast, box office & release data. $1 per 1,000 titles — the lowest price on the Store, no start fee.",
    "version": "0.0",
    "x-build-id": "RRSTgMgfVqCgh4TFC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~imdb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-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/omkar-cloud~imdb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-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/omkar-cloud~imdb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-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": {
          "searchQueries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Keywords matched against title names — each is searched separately. Rows carry a `query` field so you can tell keywords apart. Leave empty to scrape only charts or URLs.",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "title": "Title Type",
            "enum": [
              "",
              "movie",
              "tv"
            ],
            "type": "string",
            "description": "Only include movies or only TV shows. Leave on All for both.",
            "default": ""
          },
          "genre": {
            "title": "Genre",
            "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",
              "Short",
              "Sport",
              "Talk-Show",
              "Thriller",
              "War",
              "Western"
            ],
            "type": "string",
            "description": "Only include titles of this genre.",
            "default": ""
          },
          "startYear": {
            "title": "Release Year — From",
            "minimum": 1874,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest release year to include."
          },
          "endYear": {
            "title": "Release Year — To",
            "minimum": 1874,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest release year to include."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "popularity",
              "rating",
              "vote_count",
              "release_date",
              "alphabetical"
            ],
            "type": "string",
            "description": "Order of search results.",
            "default": "popularity"
          },
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "IMDb charts to scrape. Rows carry a `chart` field plus the rank (and rank change where IMDb shows it).",
            "items": {
              "type": "string",
              "enum": [
                "top-movies",
                "top-tv",
                "popular-movies",
                "popular-tv",
                "box-office",
                "popular-celebrities"
              ],
              "enumTitles": [
                "Top 250 Movies",
                "Top 250 TV Shows",
                "Most Popular Movies (100)",
                "Most Popular TV Shows (100)",
                "Weekend Box Office (10)",
                "Popular Celebrities (100)"
              ]
            }
          },
          "startUrls": {
            "title": "IMDb URLs",
            "type": "array",
            "description": "Search, chart, and/or title page URLs — you can mix them. Title pages are always scraped with full details (billed at the detailed-title rate).",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max Titles per Search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of titles to scrape per keyword, search URL, or chart. Use this to control your cost (1,000 titles ≈ $1). Ignored for title page URLs.",
            "default": 100
          },
          "scrapeTitleDetails": {
            "title": "Scrape Full Title Details",
            "type": "boolean",
            "description": "When enabled, every search and chart result is also scraped in full — Metascore, certificate, release date, directors/creators/writers, top cast with characters, total cast count, trailer, box office (budget & grosses), similar titles, countries, and languages. Still one dataset row per title, billed once at the detailed-title rate instead of the standard rate (1,000 detailed titles ≈ $2.50 vs $1 standard). Runs take longer because each title page is fetched individually.",
            "default": false
          },
          "country": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "2-letter country code that localizes release dates, certificates, and regional title names (US, GB, DE, IN, …).",
            "default": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}