{
  "openapi": "3.0.1",
  "info": {
    "title": "JustWatch Streaming Availability Tracker",
    "description": "Search one or many movie and TV titles across countries and streaming providers on JustWatch. Get flat JSON results for availability, pricing, provider offers, ratings, and title metadata.",
    "version": "0.7",
    "x-build-id": "2gl4gcDaFht3ZKZbI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrapelab~justwatch-streaming-availability-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrapelab-justwatch-streaming-availability-tracker",
        "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/thescrapelab~justwatch-streaming-availability-tracker/runs": {
      "post": {
        "operationId": "runs-sync-thescrapelab-justwatch-streaming-availability-tracker",
        "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/thescrapelab~justwatch-streaming-availability-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-thescrapelab-justwatch-streaming-availability-tracker",
        "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",
        "required": [
          "titles",
          "countries"
        ],
        "properties": {
          "titles": {
            "title": "Titles",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Enter one title or a list of titles. For a single search, use a list with one item.",
            "items": {
              "type": "string"
            },
            "default": [
              "Dune"
            ]
          },
          "year": {
            "title": "Release year",
            "type": "integer",
            "description": "Optional release year to improve matching. Best for single-title searches."
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "movie",
              "show",
              "all"
            ],
            "type": "string",
            "description": "Limit matches to movies, shows, or both.",
            "default": "all"
          },
          "exactMatchOnly": {
            "title": "Exact match only",
            "type": "boolean",
            "description": "Only return exact normalized title matches. Turn this on to remove broad franchise or related-title matches.",
            "default": false
          },
          "countries": {
            "title": "Countries",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Search in one country or a list of countries.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "US",
                "GB",
                "ZA",
                "AU",
                "CA",
                "DE",
                "FR",
                "IN",
                "ES",
                "IT",
                "NL",
                "BR",
                "MX",
                "JP"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "South Africa",
                "Australia",
                "Canada",
                "Germany",
                "France",
                "India",
                "Spain",
                "Italy",
                "Netherlands",
                "Brazil",
                "Mexico",
                "Japan"
              ]
            },
            "default": [
              "US"
            ]
          },
          "providers": {
            "title": "Providers",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional provider filter. Choose common providers from the list, and use Other providers to include everything outside that list.",
            "items": {
              "type": "string",
              "enum": [
                "netflix",
                "prime-video",
                "disney-plus",
                "hulu",
                "max",
                "apple-tv-plus",
                "apple-tv",
                "google-play-movies",
                "amazon-video",
                "plex",
                "peacock",
                "other"
              ],
              "enumTitles": [
                "Netflix",
                "Prime Video",
                "Disney Plus",
                "Hulu",
                "Max",
                "Apple TV Plus",
                "Apple TV",
                "Google Play Movies",
                "Amazon Video",
                "Plex",
                "Peacock",
                "Other providers"
              ]
            }
          },
          "includeCast": {
            "title": "Include cast",
            "type": "boolean",
            "description": "Include cast members when visible.",
            "default": false
          },
          "includeRatings": {
            "title": "Include ratings",
            "type": "boolean",
            "description": "Include visible ratings such as JustWatch and IMDb.",
            "default": true
          },
          "includeTrailers": {
            "title": "Include trailers",
            "type": "boolean",
            "description": "Include visible trailer links and metadata when available.",
            "default": false
          },
          "includeSimilarTitles": {
            "title": "Include similar titles",
            "type": "boolean",
            "description": "Include related titles when visible.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}