openapi: 3.0.3
info:
    title: Watchmode API
    version: '1.10.1'
    description: |
        The Watchmode API is a movie and TV show API with streaming availability for 436 services in 54 countries, plus live sports, TV listings, and awards data.

        ## What you can build with the Watchmode API

        Common products built on the Watchmode API:

        - **Where-to-watch and universal search apps**: Search by title name, IMDb ID, or TMDB ID ([Search](#operation/search), [Autocomplete](#operation/autocompleteSearch)), then show every subscription, rental, purchase, free, and TV-provider option per country with web links and iOS/Android deep links ([Title sources](#operation/getTitleSources)).
        - **Discovery and recommendation features**: Build lists like "horror movies on Netflix in the US" or "most popular shows on Disney+ this week" by filtering on service, country, genre, network, language, release date, ratings, people, or awards, sorted by popularity or relevance ([List titles](#operation/listTitles)).
        - **Title pages and catalog metadata**: Plot, runtime, release date, genres, user and critic ratings, content ratings, poster and backdrop art, trailers, similar titles, networks, cast and crew, and awards in one request ([Title details](#operation/getTitleDetails), [Cast and crew](#operation/getTitleCastCrew), [People](#operation/getPerson)).
        - **TV apps with episode-level availability**: Seasons, episodes, and the services and links for each specific episode ([Episodes](#operation/getTitleEpisodes)).
        - **Connected-TV and mobile apps**: Deep links for iOS, Android, Apple TV/tvOS, Android TV, and Roku so viewers land in the streaming app rather than a website. TV links are included on all paid plans.
        - **Release calendars and "leaving soon" features**: Upcoming and recent streaming premieres with release times where known, and the dates titles leave each service ([Release dates](#operation/getTitleReleaseDatesAdvanced), [Leaving dates](#operation/getTitleLeavingDates)).
        - **Live sports, events, and TV guides**: Find games and award ceremonies by date, league, or team with where-to-watch links and app deep links in the US, UK, Canada, and Australia, plus US channel listings for TV guide apps ([Live events](#operation/getLiveEvents), [TV listings](#operation/getLiveGuideAirings)).
        - **Awards databases**: Oscars, Primetime Emmys, Golden Globes, BAFTA, SAG, DGA, WGA, and PGA wins and nominations by title, person, edition, and category ([Awards](#tag/Awards)).
        - **Catalog sync, analytics, and research**: Daily feeds of new titles, new people, and changed sources, details, and episodes keep your database current ([Changes](#tag/Changes)). CSV ID maps link Watchmode IDs to IMDb and TMDB IDs ([ID mapping](#tag/Integration-reference/ID-mapping)).

        Watchmode does not host or stream video. It returns availability, metadata, and links for services including Netflix, Prime Video, Disney+, Hulu, HBO Max, Apple TV+, Peacock, and Paramount+.

        ## Getting started

        Get an API key, search for a title, and retrieve its details and streaming availability. Review [credits and request limits](#tag/Account) before integrating.

        Access badges appear beside endpoint names in the reference and navigation:
        - **Paid plan**: Startup, Business, or Enterprise.
        - **Business+**: Business or Enterprise.
        - **Free sample**: Free accounts receive limited sample data; eligible paid plans receive broader access.
        Credit costs are listed separately and still apply to sample requests.

        Already have IMDb or TMDB IDs? Use the [ID mapping files](#tag/Integration-reference/ID-mapping) to match your existing catalog to Watchmode IDs.

        ### API key

        All API requests require an API key. We recommend sending it in a request header so the key is not exposed in URLs, browser history, analytics, referrer headers, or web server logs.

        Recommended:
        ```bash
        curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/status/'
        ```

        Also supported:
        ```bash
        curl -H 'Authorization: Bearer YOUR_API_KEY' 'https://api.watchmode.com/v1/status/'
        ```

        For backwards compatibility, the `apiKey` query parameter is still accepted, but new integrations should prefer headers:
        ```bash
        curl 'https://api.watchmode.com/v1/status/?apiKey=YOUR_API_KEY'
        ```

        Get your free API key at [https://api.watchmode.com/requestApiKey/](https://api.watchmode.com/requestApiKey/)

        ### Official TypeScript SDK

        The SDK examples below support version 3 and later (Node.js 22+). Install the latest published version:

        ```bash
        npm install @watchmode/api-client
        ```

        **Quick Start:**
        ```typescript
        import { WatchmodeClient } from '@watchmode/api-client';

        const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

        // Search for titles
        const { data: results } = await client.search.byName('Breaking Bad');

        // Get title details
        const { data: title } = await client.title.getDetails(3173903);

        // Get streaming sources
        const { data: sources } = await client.title.getSources(3173903);
        ```

        Examples use top-level `await` in ES modules. Catch rejected requests in your application;
        `unwrap()` also throws for HTTP errors. Methods returning `{ data, error, response }` let you
        handle HTTP failures explicitly. Requests are not automatically retried or paginated.

        📦 [View on npm](https://www.npmjs.com/package/@watchmode/api-client) | 📖 [SDK Examples](#operation/getSources)

        Catalog authentication failures, including awards, return `success: false` and `errorMessage`.
        Other JSON errors use `statusCode` and `statusMessage`; Live errors also include a machine-readable `code`.
        Use the HTTP response status for control flow and read the available message field. Proxies can return text or an empty body.

        ### Plan notes

        - Free accounts get a preview of the next 10 departures in the leaving calendar; paid plans get the full calendar.
        - All paid plans include Apple TV/tvOS, Android TV, and Roku link data for catalog titles and episodes, where available. Coverage varies by service, country, title, and episode. On the free plan, each TV link field returns "TV links available for paid plans only."
    contact:
        name: Watchmode API Support
        url: https://api.watchmode.com
    license:
        name: Proprietary
        url: https://api.watchmode.com/tc

servers:
    - url: https://api.watchmode.com/v1
      description: Production server

security:
    - apiKey: []

tags:
    - name: Search
      description: Search for titles and people
    - name: Title
      x-displayName: Titles & streaming availability
      description: |
          Get detailed information about movies and TV shows and find where to stream, rent, or buy them.

          For title wins and nominations, see [Awards & nominations](#tag/Awards).
    - name: Live TV, Sports & Events
      description: |
          Build TV guides, discover live sports and events, and connect viewers to streaming services with
          event links and iOS/Android deep links.
          Live access is automatic for supported direct API accounts. Use your existing API key; no approval is required.
          Your current plan determines which features and dates you can use.

          Free: a shared sample of up to 25 events, including their viewing options.
          Startup: events from the past 7 days through the next 7 days in all supported countries.
          Business and Enterprise: all available event dates, event downloads, and the US TV guide.
          Check `/live-coverage` to see what your account can access. It costs no credits.
          Plan changes apply automatically. Shared RapidAPI accounts are not supported.

          A channel is a specific station or channel version, such as an East Coast channel or a local ABC station.
          A network is the brand that may have multiple channels. An airing is one scheduled showing of a program.
          A source is a where-to-watch option, such as a streaming service, TV channel app, or event page.
          A package is a service's subscription bundle or add-on.
          Live `network_id` values belong to the Live dataset; do not join them to the catalog `/networks` directory.
          Use the included network name, and use `channel_id` to join a broadcast to a guide channel when available.
          Some event-only channels have no guide listings and therefore do not appear in `/live-channels`.

          Event links open a provider's page for a specific event. Mobile deep links target the corresponding
          destination in the provider's iOS or Android app. Channel links open a channel page or live channel;
          they do not necessarily select the requested program or start playback.
          Link availability varies by event, provider, country and platform; use the URLs returned in each response.

          Request event links through `/live-event/{id}/sources`, event lists with `include_sources=true`,
          or `/live-schedule`. Each source and event destination has a `links` array. Each guide `watch_links`
          entry represents one URL and includes its provider context. Links use `platform`, `type`, `url`,
          `affiliate`, nullable `requires_subscription`, and an optional `refresh_after`. Choose a platform link and offer a web link as fallback.
          Missing platform links are omitted. Types distinguish event, channel, sports, service, signup, and player
          destinations. Event destinations and viewing options are independent; read both collections.

          Each link entry holds one URL; several entries can share a platform or provider. Array order is not a
          preference ranking. Subscription requirements belong to individual links and can be unknown (null).
          A public information page does not establish free event playback. Select a suitable platform and type.
          Region codes identify countries. US DMA codes identify TV markets, not states or team rights boundaries.
          Null means unknown unless a field says otherwise; empty arrays mean no matching known records.

          Refresh a link before reusing it at or after `refresh_after`, including from saved downloads.
          Use a fresh event-source request or start a new download; another page of the same saved download
          contains the original links. Guide links always include a refresh deadline.
          This is a refresh deadline, not a provider URL expiration or playback guarantee. Source `freshness`
          describes the observation when the response was generated. Event status says whether the event has ended.
          Subscription and location requirements apply at the provider. HTTP checks and device-test diagnostics
          remain internal. The response does not verify that a viewer can watch.

          OpenAPI 1.8.0: Live access no longer requires account enrollment. Existing plan limits, credit prices,
          request limits and the shared RapidAPI exclusion are unchanged. Downloads started before this access
          update must be restarted if they return LIVE_SNAPSHOT_SCOPE_CHANGED. Keep previously saved data until
          the replacement download completes. Guide safe_to_replace remains false.

          October 6, 2026 beta schema update (spec 1.3.0): unified link arrays replace the previous URL fields.
          Internal source/broadcast row IDs, HTTP health, route verification, matching diagnostics, redundant
          package/channel ID arrays, and constant unverified fields are removed. Existing saved-download cursors
          must be restarted after deployment. Download-level cursor_expires_at still tells you when the page token expires.
          Source fields use availability_scope and location_restriction. Guide is_live_broadcast describes the
          program's broadcast format, not whether it is airing now. `requires_subscription` is a per-link fact.

          Live errors include `success: false`, `statusCode`, a machine-readable `code`, and a readable `statusMessage`.
          Common codes include `LIVE_QUERY_INVALID`, `LIVE_REGION_UNSUPPORTED`, `LIVE_UNAUTHORIZED`,
          `LIVE_NOT_FOUND`, and `LIVE_PLAN_REQUIRED`. Errors may also include more specific access or quota codes.
          Handle the HTTP status and code; do not parse the wording of the message. Older catalog errors keep their existing format.

          September 9, 2026 documentation update (spec 1.1.10): worked Live response examples and clearer
          subscription wording. Response behavior and plan access are unchanged. Example records and IDs are
          illustrative, not current schedules or service-lineup claims. Discover real IDs from the API; use only
          cursors returned by your own authenticated requests.

          September 9, 2026 update (spec 1.1.9): channel directories include an upcoming-schedule summary for the
          next 48 hours, events include their observation time, and endpoint prices and error codes are documented below.

          Earlier September 9, 2026 (UTC) beta update (spec 1.1.8): event search now includes league and team names; league totals,
          clearer validation errors, and corrected viewing-option labels are available. The earlier prelaunch change
          renamed channel/streaming fields to the names in this reference. Build against this published contract.
          New fields and data may be added; tolerate unknown response fields.

          Listings and viewing options may be incomplete or outdated. An empty result does not prove that nothing
          is airing or that an event cannot be watched. Viewing links may open a service homepage rather than a
          player. Check the link type; location and subscription restrictions may apply.

          ## Live error codes

          Live failures return `success`, `statusCode`, `code`, and `statusMessage`. Handle the HTTP status and code,
          show the readable message, and tolerate additional codes. Do not match exact message wording.

          | Code | Action |
          | --- | --- |
          | `LIVE_QUERY_INVALID`, `LIVE_GUIDE_QUERY_INVALID` | Correct the parameters named in the message. |
          | `LIVE_REGION_REQUIRED`, `LIVE_REGION_UNSUPPORTED` | Choose a documented viewing country. |
          | `LIVE_UNAUTHORIZED`, `LIVE_AUTH_FAILED` | Check your API key and account status. |
          | `LIVE_PLAN_REQUIRED`, `LIVE_GUIDE_PLAN_REQUIRED`, `LIVE_PLAN_UNSUPPORTED` | Use a plan that supports the requested feature. |
          | `LIVE_SUBSCRIBER_IDENTITY_REQUIRED` | Use your own account key; shared RapidAPI identities are not supported. |
          | `LIVE_REGION_NOT_ENTITLED`, `LIVE_LEAGUE_NOT_ENTITLED`, `LIVE_SOURCES_NOT_RELEASED` | Check /live-coverage and choose accessible data. |
          | `LIVE_MARKET_INVALID`, `LIVE_MARKET_NOT_RELEASED` | Use a valid US market code and a supported US request. |
          | `LIVE_NOT_FOUND` | The event is unknown or outside your available data. |
          | `LIVE_WINDOW_INVALID`, `LIVE_GUIDE_WINDOW_NOT_ENTITLED` | Choose an allowed date window. Guide windows are at most 48 hours; event downloads at most 7 days. |
          | `LIVE_GUIDE_FEED_NOT_ENTITLED` | Refresh /live-channels and use its channel IDs. |
          | `LIVE_CURSOR_INVALID`, `LIVE_SNAPSHOT_EXPIRED`, `LIVE_SNAPSHOT_SCOPE_CHANGED` | Start a new download. Keep your previous complete data until the replacement succeeds. |
          | `LIVE_GUIDE_RESULT_TOO_LARGE`, `LIVE_EVENT_TOO_LARGE`, `LIVE_SNAPSHOT_TOO_LARGE` | Select fewer channels/leagues or a shorter date window. |
          | `LIVE_SNAPSHOT_LIMIT` | Finish existing downloads or wait for them to expire before creating more. |
          | `RATE_LIMIT_EXCEEDED`, `LIVE_CONCURRENCY_LIMIT` | Wait for Retry-After and reduce request frequency or parallel requests. |
          | `MONTHLY_QUOTA_EXCEEDED` | Wait for quota renewal or increase your account allowance; repeated immediate retries will not help. |
          | `ACCOUNT_PERIOD_CHANGED` | Retry against the current account after a plan or billing-period change. |
          | `LIVE_RELEASE_UNAVAILABLE`, `LIVE_RELEASE_TOO_LARGE`, `LIVE_GUIDE_UNAVAILABLE`, `LIVE_GUIDE_TOO_LARGE`, `LIVE_INTERNAL_ERROR` | Data or service is temporarily unavailable. Retry later; contact support if it persists. |
    - name: Configuration
      x-displayName: Sources & reference data
      description: |
          Reference data for streaming sources, regions, networks, and genres. Use the returned IDs and region codes when filtering titles and availability.
    - name: Person
      x-displayName: People
      description: |
          Get information about actors, directors, and other people.

          For person wins and nominations, see [Awards & nominations](#tag/Awards).
    - name: Awards
      x-displayName: Awards & nominations
      description: |
          Award programs, annual editions, categories, and title/person wins and nominations. Awards can be presented by academies, guilds, publishers or other organizations; a televised ceremony is not required.

          Read title/person award histories, append awards to details, browse results by award edition and category, or filter List Titles by awards and outcome.
          Free accounts and active demos share a fixed sample of 25 titles and 10 people, discoverable via `/awards/sample`.
          All eligible paid plans include full available history. Available years do not imply complete historical coverage.
          The directory lists Oscars, BAFTA Film/Television/TV Craft, Primetime Emmys, Golden Globes, SAG, DGA, WGA and PGA award programs.
          Standalone history, results and directory pages cost 1 credit. An awards append adds 1 credit; List Titles keeps its per-region price.
          Standalone title-awards requests include IMDb/TMDB resolution in that single credit. Title-details aliases keep the usual extra lookup credit.
          Awards responses expose `X-Watchmode-Request-Cost`. Access/validation failures consume no credits; request limits still apply.
          Handle `AWARDS_SAMPLE_ONLY` (403) by choosing a sample subject or upgrading. Unknown plans, expired demos and shared RapidAPI identities are denied.
    - name: Releases
      description: Track new and upcoming streaming releases and known streaming departures
    - name: Changes
      description: Monitor changes to titles, sources, and metadata
    - name: Account
      x-displayName: Account & usage
      description: |
          Account quota status, credit prices, and request limits. Catalog and Live requests share your monthly credit allowance.

          ## Credits and endpoint prices

          Your monthly allowance is measured in credits, not HTTP requests. Catalog and Live calls share that allowance.
          A single call can cost zero, one, or several credits. Retrieving another page is another request with its own charge.

          | Catalog operation | Credits per successful request/page |
          | --- | --- |
          | `/status` | 0 |
          | `/sources`, `/regions`, `/networks`, `/genres` | 1 |
          | `/search`, `/autocomplete-search`, `/person/{id}`, `/releases`, `/title-release-dates`, `/title-leaving-dates`, `/changes/*` | 1 |
          | `/list-titles` | 1 per requested region; 1 when regions are omitted |
          | `/title/{id}/details` | 1, plus 1 for each `append_to_response` item |
          | Other title reads (sources, seasons, episodes, cast/crew) | 1 |
          | `/title/{id}/incorrect-data` using a Watchmode ID | 0 |

          Title requests using an IMDb or TMDB ID also cost 1 credit for ID resolution, except standalone title-awards requests, which include resolution in their 1-credit price. Use Watchmode IDs to avoid that extra cost.
          Catalog operations keep their existing charging points; completed suboperations may be charged even if a later step fails.
          Live endpoint descriptions list their own prices. Live validation and access failures cost zero credits.
          Catalog requests other than awards do not return request-cost headers. `/status` reports the account's shared usage at no credit cost.

          ## Rate limiting

          API requests are limited based on your plan. Check response headers for current limits:
          - `X-RateLimit-Limit`: Maximum requests per minute
          - `X-RateLimit-Remaining`: Remaining requests in current window
          - `X-Account-Quota`: Monthly quota limit
          - `X-Account-Quota-Used`: Quota used this month
          `X-Watchmode-Request-Cost` is also returned for awards requests, including appends and award-filtered List Titles.
          The following additional headers apply to the Live endpoints:
          - `X-Account-Quota-Remaining`: Remaining credits at settlement
          - `X-Watchmode-Request-Cost`: Credits charged for this response (0 for rejected requests)
          - `X-Watchmode-Request-Id`: Identifier for reconciling a Live request

          The older catalog endpoints, including `/sources` and `/networks`, keep their existing credit charges and
          do not return the Live request-cost or request-ID headers. Both families use the same monthly credit balance.
          If several apps share an account, its balance includes all of their requests. Track your own Live spending
          by summing request-cost headers, including retries. Do not treat another app's usage as your own.
          Default enforcement is 120 requests/minute on the free plan and 240 on paid plans, including Live; account overrides may apply.
          Live headers report the current request limit. Some older catalog responses retain a legacy 1,000-value header;
          that value does not increase your plan's enforced limit.

          Authenticated requests count toward the request limit even if validation fails or the response costs
          zero credits. Live responses commit their full cost atomically. For Live, monthly exhaustion
          returns `MONTHLY_QUOTA_EXCEEDED` without a one-minute Retry-After; zero-credit operations remain
          available. A plan or billing-period change during a request returns `ACCOUNT_PERIOD_CHANGED` so
          the request can be retried against the current account state.
    - name: Integration reference
      description: |
          Identifier mappings and guidance for using third-party image URLs.

          ## ID mapping

          Watchmode IDs are universally unique across titles and people. Download ID mapping files:
          - [Title ID Map](https://api.watchmode.com/datasets/title_id_map.csv)
          - [Person ID Map](https://api.watchmode.com/datasets/person_id_map.csv)

          ## Third-party image URLs

          Some image-related fields may contain URLs hosted by third parties or publicly accessible sources. These URLs are provided as references only. Watchmode does not grant any license to the underlying images and does not guarantee ownership, copyright status, availability, or permitted use. You are responsible for verifying rights and complying with applicable source terms, attribution obligations, and caching rules. See the Terms & Conditions at [https://api.watchmode.com/tc](https://api.watchmode.com/tc).

paths:
    /status:
        get:
            operationId: getStatus
            summary: Get API quota status
            description: Returns your current API quota and usage for the month. Costs 0 credits.
            tags:
                - Account
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/status/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const status = unwrap(await client.account.getStatus());
                      console.log(`Quota: ${status.quota}, Used: ${status.quotaUsed}`);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = 'https://api.watchmode.com/v1/status/';

                      const response = await fetch(url, {
                        headers: { 'X-API-Key': apiKey }
                      });
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      url = 'https://api.watchmode.com/v1/status/'
                      request = urllib.request.Request(url, headers={'X-API-Key': api_key})

                      with urllib.request.urlopen(request) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/status/')
                      request = Net::HTTP::Get.new(uri)
                      request['X-API-Key'] = 'YOUR_API_KEY'

                      response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
                      json = response.body
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $url = "https://api.watchmode.com/v1/status/";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: {$apiKey}"]);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            responses:
                '200':
                    description: Quota status retrieved successfully
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StatusResponse'
                            example:
                                quota: 1000
                                quotaUsed: 150
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /sources:
        get:
            operationId: getSources
            summary: List streaming sources
            description: |
                Costs 1 credit.

                Returns a list of all streaming sources (streaming services, networks, etc.) supported by Watchmode.
                This includes subscription services (like Netflix), rental/purchase services (like iTunes), and free services.
                Each source includes details about supported regions, logos, and app store links.
            tags:
                - Configuration
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/sources/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const { data: sources } = await client.sources.list();
                      console.log(sources);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/sources/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      url = f'https://api.watchmode.com/v1/sources/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/sources/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $url = "https://api.watchmode.com/v1/sources/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - name: regions
                  in: query
                  description: Filter sources by region. Pass one or multiple 2-letter country codes comma-separated (e.g., `US,GB,CA`).
                  schema:
                      type: string
                      example: 'US,GB'
                - name: types
                  in: query
                  description: |
                      Filter sources by type. Pass one or multiple types comma-separated.
                      - `sub` - Subscription services (Netflix, Hulu, etc.)
                      - `purchase` - Rental/purchase services (iTunes, Vudu, etc.)
                      - `free` - Free ad-supported services (Tubi, Pluto TV, etc.)
                      - `tve` - TV Channel App (cable login required)
                  schema:
                      type: string
                      example: 'sub,free'
            responses:
                '200':
                    description: List of streaming sources
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/Source'
                            example:
                                - id: 203
                                  name: Netflix
                                  type: sub
                                  logo_100px: https://cdn.watchmode.com/logos/203_logo_100px.jpg
                                  ios_appstore_url: https://apps.apple.com/app/id363590051
                                  android_playstore_url: https://play.google.com/store/apps/details?id=com.netflix.mediaclient
                                  regions:
                                      - US
                                      - GB
                                      - AU
                                  host_source_id: null
                                  host_source: null
                                  ios_scheme: null
                                  android_scheme: null
                                - id: 26
                                  name: Amazon Prime
                                  type: sub
                                  logo_100px: https://cdn.watchmode.com/logos/26_logo_100px.jpg
                                  ios_appstore_url: https://apps.apple.com/app/id545519333
                                  android_playstore_url: https://play.google.com/store/apps/details?id=com.amazon.avod.thirdpartyclient
                                  regions:
                                      - US
                                      - GB
                                      - AU
                                      - CA
                                  host_source_id: null
                                  host_source: null
                                  ios_scheme: null
                                  android_scheme: null
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /regions:
        get:
            operationId: getRegions
            summary: List supported regions
            description: Returns a list of all countries/regions that Watchmode supports, including data quality tier and plan availability. Costs 1 credit.
            tags:
                - Configuration
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/regions/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const { data: regions } = await client.reference.getRegions();
                      console.log(regions);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/regions/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      url = f'https://api.watchmode.com/v1/regions/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/regions/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $url = "https://api.watchmode.com/v1/regions/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            responses:
                '200':
                    description: List of supported regions
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/Region'
                            example:
                                - country: 'US'
                                  name: 'USA'
                                  flag: 'https://cdn.watchmode.com/misc_images/icons/usFlag2.png'
                                  data_tier: 1
                                  plan_enabled: true
                                - country: 'CA'
                                  name: 'Canada'
                                  flag: 'https://cdn.watchmode.com/misc_images/icons/flagCA.png'
                                  data_tier: 1
                                  plan_enabled: true
                                - country: 'GB'
                                  name: 'Great Britain'
                                  flag: 'https://cdn.watchmode.com/misc_images/icons/flagGB.png'
                                  data_tier: 1
                                  plan_enabled: true
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /networks:
        get:
            operationId: getNetworks
            summary: List TV networks
            description: Returns a list of all TV networks that may be associated with titles. Costs 1 credit.
            tags:
                - Configuration
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/networks/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const { data: networks } = await client.reference.getNetworks();
                      console.log(networks);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/networks/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      url = f'https://api.watchmode.com/v1/networks/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/networks/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $url = "https://api.watchmode.com/v1/networks/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            responses:
                '200':
                    description: List of TV networks
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/Network'
                            example:
                                - id: 1
                                  name: 'HBO'
                                  origin_country: 'US'
                                  tmdb_id: 49
                                - id: 2
                                  name: 'National Geographic'
                                  origin_country: 'US'
                                  tmdb_id: 43
                                - id: 7
                                  name: 'ABC'
                                  origin_country: 'US'
                                  tmdb_id: 2
                                - id: 8
                                  name: 'AMC'
                                  origin_country: 'US'
                                  tmdb_id: 174
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /genres:
        get:
            operationId: getGenres
            summary: List genres
            description: Returns a mapping of genre names and IDs. Some genres include corresponding TMDB IDs. Costs 1 credit.
            tags:
                - Configuration
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/genres/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const { data: genres } = await client.reference.getGenres();
                      console.log(genres);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/genres/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      url = f'https://api.watchmode.com/v1/genres/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/genres/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $url = "https://api.watchmode.com/v1/genres/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            responses:
                '200':
                    description: List of genres
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/Genre'
                            example:
                                - id: 4
                                  name: 'Comedy'
                                  tmdb_id: 35
                                - id: 6
                                  name: 'Documentary'
                                  tmdb_id: 99
                                - id: 33
                                  name: 'Anime'
                                  tmdb_id: 0
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /search:
        get:
            operationId: search
            summary: Search for titles and people
            description: |
                Costs 1 credit.

                Search for titles or people using an external ID (IMDB, TMDB) or by name.
                Returns matching titles and people with their Watchmode IDs.
                Useful for getting Watchmode IDs to use with other endpoints.
            tags:
                - Search
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/search/?search_field=name&search_value=Ed%20Wood'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Search by name
                      const { data: results } = await client.search.byName('Ed Wood');
                      console.log(results);

                      // Or search by IMDB ID
                      const { data: imdbResults } = await client.search.byImdbId('tt0109707');
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const searchField = 'name';
                      const searchValue = 'Ed Wood';
                      const url = `https://api.watchmode.com/v1/search/?apiKey=${apiKey}&search_field=${searchField}&search_value=${encodeURIComponent(searchValue)}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json
                      from urllib.parse import urlencode

                      api_key = 'YOUR_API_KEY'
                      search_field = 'name'
                      search_value = 'Ed Wood'

                      params = {
                          'apiKey': api_key,
                          'search_field': search_field,
                          'search_value': search_value
                      }

                      url = f'https://api.watchmode.com/v1/search/?{urlencode(params)}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/search/?apiKey=YOUR_API_KEY&search_field=name&search_value=Ed%20Wood')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $searchField = 'name';
                      $searchValue = 'Ed Wood';
                      $url = "https://api.watchmode.com/v1/search/?apiKey={$apiKey}&search_field={$searchField}&search_value=" . urlencode($searchValue);

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - name: search_field
                  in: query
                  required: true
                  description: |
                      The field to search in:
                      - `name` - Search by title or person name
                      - `imdb_id` - Search by IMDB ID (e.g., tt0944947)
                      - `tmdb_movie_id` - Search by TMDB movie ID
                      - `tmdb_tv_id` - Search by TMDB TV show ID
                      - `tmdb_person_id` - Search by TMDB person ID
                  schema:
                      type: string
                      enum:
                          - name
                          - imdb_id
                          - tmdb_movie_id
                          - tmdb_tv_id
                          - tmdb_person_id
                - name: search_value
                  in: query
                  required: true
                  description: The value to search for (e.g., "Breaking Bad", "tt0944947")
                  schema:
                      type: string
                      example: 'Breaking Bad'
                - name: types
                  in: query
                  description: Filter results by type. Pass comma-separated values (e.g., `tv,movie,person`)
                  schema:
                      type: string
                      example: 'tv,movie'
            responses:
                '200':
                    description: Search results
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchResponse'
                            example:
                                title_results:
                                    - id: 3173903
                                      name: Breaking Bad
                                      type: tv_series
                                      year: 2008
                                      imdb_id: tt0903747
                                      tmdb_id: 1396
                                      tmdb_type: tv
                                      resultType: title
                                people_results:
                                    - id: 710125611
                                      name: Bryan Cranston
                                      main_profession: actor
                                      imdb_id: nm0186505
                                      tmdb_id: 17419
                                      resultType: person
                '400':
                    $ref: '#/components/responses/BadRequest'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /autocomplete-search:
        get:
            operationId: autocompleteSearch
            summary: Autocomplete search
            description: |
                Costs 1 credit.

                Search for titles and/or people by name or partial name.
                Optimized for building autocomplete/typeahead search interfaces.
                Results include relevance scores and thumbnail images.
            tags:
                - Search
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/autocomplete-search/?search_value=Breaking%20bad&search_type=1'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Autocomplete search (optimized for typeahead)
                      const { data } = await client.search.autocomplete('Breaking bad', {
                        searchType: 2  // 2 = titles only
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const searchValue = 'Breaking bad';
                      const searchType = 1; // 1 = titles and people
                      const url = `https://api.watchmode.com/v1/autocomplete-search/?apiKey=${apiKey}&search_value=${encodeURIComponent(searchValue)}&search_type=${searchType}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json
                      from urllib.parse import urlencode

                      api_key = 'YOUR_API_KEY'
                      search_value = 'Breaking bad'
                      search_type = 1  # 1 = titles and people

                      params = {
                          'apiKey': api_key,
                          'search_value': search_value,
                          'search_type': search_type
                      }

                      url = f'https://api.watchmode.com/v1/autocomplete-search/?{urlencode(params)}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/autocomplete-search/?apiKey=YOUR_API_KEY&search_value=Breaking%20bad&search_type=1')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $searchValue = 'Breaking bad';
                      $searchType = 1; // 1 = titles and people
                      $url = "https://api.watchmode.com/v1/autocomplete-search/?apiKey={$apiKey}&search_value=" . urlencode($searchValue) . "&search_type={$searchType}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - name: search_value
                  in: query
                  required: true
                  description: The search phrase (can be partial, e.g., "The Sha" will find "The Shawshank Redemption")
                  schema:
                      type: string
                      example: 'Breaking bad'
                - name: search_type
                  in: query
                  description: |
                      Filter result types:
                      - `1` - Titles and people (default)
                      - `2` - Titles only
                      - `3` - Movies only
                      - `4` - TV shows only
                      - `5` - People only
                  schema:
                      type: integer
                      enum: [1, 2, 3, 4, 5]
                      default: 1
            responses:
                '200':
                    description: Autocomplete results
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AutocompleteResponse'
                            example:
                                results:
                                    - name: 'Breaking Bad'
                                      relevance: 445.23
                                      type: 'tv_series'
                                      id: 3173903
                                      year: 2008
                                      result_type: 'title'
                                      imdb_id: 'tt0903747'
                                      tmdb_id: 1396
                                      tmdb_type: 'tv'
                                      image_url: 'http://www.some-poster-site.com/image.jpg'
                                    - name: 'El Camino: A Breaking Bad Movie'
                                      relevance: 169.83
                                      type: 'movie'
                                      id: 1586594
                                      year: 2019
                                      result_type: 'title'
                                      imdb_id: 'tt9243946'
                                      tmdb_id: 559969
                                      tmdb_type: 'movie'
                                      image_url: 'http://www.some-poster-site.com/image.jpg'
                '400':
                    $ref: '#/components/responses/BadRequest'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/details:
        get:
            operationId: getTitleDetails
            summary: Get title details
            description: |
                **Credits:** 1 with a Watchmode ID or 2 with an IMDb/TMDB ID, plus 1 per distinct appended dataset.

                Get a movie or TV show's metadata, ratings, artwork, and related titles. Use `append_to_response` to include streaming sources, seasons, episodes, cast, or awards in the same request.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/details/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get title details
                      const { data: title } = await client.title.getDetails(345534);
                      console.log(title);

                      // With additional data appended
                      const { data: fullTitle } = await client.title.getDetails(345534, {
                        appendToResponse: ['sources', 'cast-crew'],
                        regions: ['US']
                      });
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const titleId = '345534';
                      const url = `https://api.watchmode.com/v1/title/${titleId}/details/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      title_id = '345534'
                      url = f'https://api.watchmode.com/v1/title/{title_id}/details/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title/345534/details/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $titleId = '345534';
                      $url = "https://api.watchmode.com/v1/title/{$titleId}/details/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: append_to_response
                  in: query
                  description: |
                      Include additional datasets as comma-separated values. Each distinct value adds 1 credit.
                      - `sources`: streaming availability.
                      - `seasons`: season list (TV only).
                      - `episodes`: episodes with sources (TV only).
                      - `cast-crew`: cast and crew.
                      - `awards`: award history.

                      Awards include the first 50 filtered records. Use the standalone awards endpoint for later pages; awards_page and awards_limit are rejected.

                      Free accounts and active demos are limited to the fixed sample at /awards/sample; eligible paid plans get full available history. The sample is shared across keys and does not rotate.

                      Duplicate append values are charged once. A denied awards append returns 403 for the whole request, rather than silently omitting awards; awards access and validation failures cost zero credits.
                  schema:
                      type: string
                      example: sources,cast-crew
                - name: language
                  in: query
                  description: ISO 639-1 language code for localized title/overview (default `en`)
                  schema:
                      type: string
                      default: en
                      example: es
                - name: regions
                  in: query
                  description: Filter sources by region when using `append_to_response=sources` or `append_to_response=episodes`. Comma-separated. Requested regions must be enabled for your plan. If omitted, returns sources from regions enabled for your plan.
                  schema:
                      type: string
                      example: US,CA
                - name: awards_id
                  in: query
                  description: Award ID from /awards.
                  required: false
                  schema:
                      type: integer
                      minimum: 1
                - name: awards_result
                  in: query
                  description: With append_to_response=awards only. Defaults to any, which includes winners and non-winning nominations. winner returns wins only; nominee returns non-winning nominations only.
                  schema:
                      $ref: '#/components/schemas/AwardResultFilter'
                - name: awards_edition_id
                  in: query
                  description: With append_to_response=awards only. Stable edition ID from the editions directory.
                  schema:
                      type: integer
                      minimum: 1
                - name: awards_category_id
                  in: query
                  description: With append_to_response=awards only. Stable category ID from the categories directory.
                  schema:
                      type: integer
                      minimum: 1
            responses:
                '200':
                    description: 'Title metadata with any requested appended datasets. Appended awards use the same record format and access rules as the standalone title awards endpoint. Ordinary account quotas and request limits apply.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TitleDetails'
                            example:
                                id: 3173903
                                title: Breaking Bad
                                original_title: Breaking Bad
                                plot_overview: When Walter White, a New Mexico chemistry teacher, is diagnosed with Stage III cancer...
                                will_you_like_this: If you like intense character dramas with high stakes, you’ll probably enjoy this.
                                review_summary: Critics praise the writing and performances; viewers highlight the show’s tense pacing and standout finale.
                                type: tv_series
                                runtime_minutes: 45
                                year: 2008
                                end_year: 2013
                                release_date: 2008-01-20
                                imdb_id: tt0903747
                                tmdb_id: 1396
                                tmdb_type: tv
                                genres:
                                    - 7
                                genre_names:
                                    - Drama
                                user_rating: 9.2
                                critic_score: 85
                                us_rating: TV-MA
                                content_ratings:
                                    AU: MA 15+
                                    US: TV-MA
                                poster: http://www.some-poster-site.com/image.jpg
                                posterMedium: http://www.some-poster-site.com/image.jpg
                                posterLarge: http://www.some-poster-site.com/image.jpg
                                backdrop: http://www.some-poster-site.com/image.jpg
                                original_language: en
                                similar_titles:
                                    - 330884
                                    - 343611
                                networks:
                                    - 8
                                network_names:
                                    - AMC
                                relevance_percentile: 98.92
                                popularity_percentile: 99.99
                                trailer: https://www.youtube.com/watch?v=5PSNL1qE6VY
                                trailer_thumbnail: http://www.some-poster-site.com/image.jpg
                    headers:
                        X-Watchmode-Request-Cost: &a2
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers:
                        X-Watchmode-Request-Cost: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '404':
                    $ref: '#/components/responses/NotFound'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/sources:
        get:
            operationId: getTitleSources
            summary: Get title streaming sources
            description: |
                Get all streaming sources where a title is currently available.
                Returns subscription services, rental options, purchase options, and free streaming.
                For TV shows, includes information about available seasons and episodes per source.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/sources/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get streaming sources for a title
                      const { data: sources } = await client.title.getSources(345534, {
                        regions: ['US']
                      });
                      console.log(sources);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const titleId = '345534';
                      const url = `https://api.watchmode.com/v1/title/${titleId}/sources/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      title_id = '345534'
                      url = f'https://api.watchmode.com/v1/title/{title_id}/sources/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title/345534/sources/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $titleId = '345534';
                      $url = "https://api.watchmode.com/v1/title/{$titleId}/sources/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: regions
                  in: query
                  description: Filter by region (2-letter country code). Comma-separated for multiple. Requested regions must be enabled for your plan. If omitted, returns sources from regions enabled for your plan.
                  schema:
                      type: string
                      example: 'US,CA'
            responses:
                '200':
                    description: List of streaming sources
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/TitleSource'
                            example:
                                - source_id: 203
                                  name: Netflix
                                  type: sub
                                  region: US
                                  ios_url: https://www.netflix.com/title/123456
                                  android_url: https://www.netflix.com/title/123456
                                  web_url: https://www.netflix.com/title/123456
                                  format: HD
                                  price: null
                                  seasons: 5
                                  episodes: 62
                                  tvos_url: null
                                  android_tv_url: null
                                  roku_url: null
                '404':
                    $ref: '#/components/responses/NotFound'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /list-titles:
        get:
            operationId: listTitles
            summary: List and filter titles
            description: |
                **Credits:** 1 per requested region per page; 1 when regions are omitted.

                Find movies and TV shows by streaming service, country, genre, release date, ratings, people, or awards. Combine filters to build lists such as horror movies streaming on Netflix in the US.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/list-titles/?source_ids=203,57'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // List titles with filtering
                      const { data } = await client.title.list({
                        types: ['movie'],
                        genres: [12],           // Horror genre ID
                        sourceIds: [203],       // Netflix
                        regions: ['US'],
                        sortBy: 'popularity_desc',
                        page: 1,
                        limit: 50
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const sourceIds = '203,57';
                      const url = `https://api.watchmode.com/v1/list-titles/?apiKey=${apiKey}&source_ids=${sourceIds}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      source_ids = '203,57'
                      url = f'https://api.watchmode.com/v1/list-titles/?apiKey={api_key}&source_ids={source_ids}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/list-titles/?apiKey=YOUR_API_KEY&source_ids=203,57')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $sourceIds = '203,57';
                      $url = "https://api.watchmode.com/v1/list-titles/?apiKey={$apiKey}&source_ids={$sourceIds}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
                - lang: Shell
                  source: |
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/list-titles/?award_ids=1&award_result=winner&limit=10'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';
                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });
                      const { data } = await client.title.list({ awardIds: [1], awardResult: 'winner', limit: 10 });
            parameters:
                - name: types
                  in: query
                  description: |
                      Filter by title type. Comma-separated for multiple values.
                      Valid types: `movie`, `tv_series`, `tv_movie`, `tv_special`, `tv_miniseries`, `short_film`
                  schema:
                      type: string
                      example: movie,tv_series
                - name: regions
                  in: query
                  description: 'Filter by two-letter country codes, comma-separated. Each requested country costs 1 credit per page; omitting regions costs 1. When source_ids or source_types is supplied, only one region is allowed.'
                  schema:
                      type: string
                      example: US
                - name: source_types
                  in: query
                  description: |
                      Filter by source type. Comma-separated values.
                      - `sub` - Subscription
                      - `rent` - Rental
                      - `buy` - Purchase
                      - `free` - Free
                      - `tve` - TV Channel App (Cable Plan Required)
                  schema:
                      type: string
                      example: sub,free
                - name: source_ids
                  in: query
                  description: Filter by specific source IDs (from `/sources` endpoint). Comma-separated.
                  schema:
                      type: string
                      example: 203,26
                - name: genres
                  in: query
                  description: Filter by genre IDs (from `/genres` endpoint). Comma-separated.
                  schema:
                      type: string
                      example: 4,7
                - name: network_ids
                  in: query
                  description: Filter by network IDs (from `/networks` endpoint). Comma-separated.
                  schema:
                      type: string
                      example: 1,8
                - name: languages
                  in: query
                  description: Filter by primary language (2-letter ISO 639 code). Comma-separated.
                  schema:
                      type: string
                      example: en,es
                - name: release_date_start
                  in: query
                  description: Filter by release date start (format YYYYMMDD)
                  schema:
                      type: integer
                      example: 20200101
                - name: release_date_end
                  in: query
                  description: Filter by release date end (format YYYYMMDD)
                  schema:
                      type: integer
                      example: 20231231
                - name: user_rating_low
                  in: query
                  description: Minimum user rating (0-10)
                  schema:
                      type: number
                      minimum: 0
                      maximum: 10
                - name: user_rating_high
                  in: query
                  description: Maximum user rating (0-10)
                  schema:
                      type: number
                      minimum: 0
                      maximum: 10
                - name: critic_score_low
                  in: query
                  description: Minimum critic score (0-100)
                  schema:
                      type: integer
                      minimum: 0
                      maximum: 100
                - name: critic_score_high
                  in: query
                  description: Maximum critic score (0-100)
                  schema:
                      type: integer
                      minimum: 0
                      maximum: 100
                - name: person_id
                  in: query
                  description: Filter by person ID (actor, director, etc.)
                  schema:
                      type: integer
                      example: 7110004
                - name: sort_by
                  in: query
                  description: Sort order for results. Popularity options use Watchmode's normalized popularity percentile.
                  schema:
                      type: string
                      enum:
                          - relevance_desc
                          - relevance_asc
                          - popularity_desc
                          - popularity_asc
                          - release_date_desc
                          - release_date_asc
                          - title_desc
                          - title_asc
                      default: relevance_desc
                - $ref: '#/components/parameters/page'
                - name: limit
                  in: query
                  description: Results per page (1-250)
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 250
                      default: 250
                - name: award_ids
                  in: query
                  description: |
                      Comma-separated award IDs from /awards. Match any listed award and all other catalog filters. All awards filters must match the same award record; unsupported award filters are rejected. Only directly credited films and series qualify, excluding episode-specific credits.

                      Free accounts and active demos are restricted to the fixed sample titles at /awards/sample before totals and pagination; eligible paid plans get full available history. The sample is shared across keys and does not rotate. Some awards recognize people only and may have no matching titles. Ordinary account quotas and request limits apply.
                  required: false
                  schema:
                      type: string
                      example: 1,2
                - name: award_result
                  in: query
                  description: Requires award_ids. Defaults to winner; any includes winners and nominees, nominee excludes winners.
                  schema:
                      $ref: '#/components/schemas/AwardResultFilter'
                - name: award_edition_id
                  in: query
                  description: Requires award_ids. edition ID from the award editions directory. Must match the same record as the other awards filters.
                  schema:
                      type: integer
                      minimum: 1
                - name: award_category_id
                  in: query
                  description: Requires award_ids. category ID from the award categories directory. Must match the same record as the other awards filters.
                  schema:
                      type: integer
                      minimum: 1
            responses:
                '200':
                    description: 'A paginated list of lightweight title records. Use title/person awards or award results endpoints for detailed award records. Award-filtered responses include access and, for sample access, sample_version. X-Watchmode-Request-Cost reports the existing per-region cost.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTitlesResponse'
                            example:
                                titles:
                                    - id: 1337513
                                      title: Secret in Their Eyes
                                      year: 2015
                                      imdb_id: tt1741273
                                      tmdb_id: 290751
                                      tmdb_type: movie
                                      type: movie
                                      popularity_percentile: 99.421
                                    - id: 1247225
                                      title: Spy Cat
                                      year: 2018
                                      imdb_id: tt5746054
                                      tmdb_id: 509733
                                      tmdb_type: movie
                                      type: movie
                                      popularity_percentile: 97.618
                                page: 1
                                total_results: 4592
                                total_pages: 19
                    headers:
                        X-Watchmode-Request-Cost: &a1
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                '400':
                    $ref: '#/components/responses/BadRequest'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers:
                        X-Watchmode-Request-Cost: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/seasons:
        get:
            operationId: getTitleSeasons
            summary: Get title seasons
            description: Get all seasons for a TV series or mini-series.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/seasons/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get seasons for a TV series
                      const { data: seasons } = await client.title.getSeasons(345534);
                      console.log(seasons);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const titleId = '345534';
                      const url = `https://api.watchmode.com/v1/title/${titleId}/seasons/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      title_id = '345534'
                      url = f'https://api.watchmode.com/v1/title/{title_id}/seasons/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title/345534/seasons/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $titleId = '345534';
                      $url = "https://api.watchmode.com/v1/title/{$titleId}/seasons/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/titleId'
            responses:
                '200':
                    description: List of seasons
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/Season'
                            example:
                                - id: 12345
                                  poster_url: 'http://www.some-poster-site.com/image.jpg'
                                  name: 'Season 1'
                                  overview: 'The first season introduces Walter White...'
                                  number: 1
                                  air_date: '2008-01-20'
                                  episode_count: 7
                '404':
                    $ref: '#/components/responses/NotFound'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/episodes:
        get:
            operationId: getTitleEpisodes
            summary: Get title episodes
            description: |
                Get episodes for a TV series or mini-series, including streaming sources for each episode.
                For paid plans, includes deep links to watch each episode on streaming services.
                Use `season` and `episode` for granular retrieval, or `limit` and `offset` to page through large series.
                Episode localization is opt-in with `episode_language`; unavailable fields fall back to English.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/episodes/?regions=US'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get one season with localized metadata and US streaming sources
                      const { data: episodes } = await client.title.getEpisodes(345534, {
                        season: 2,
                        episodeLanguage: 'nl',
                        regions: ['US']
                      });
                      console.log(episodes);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const titleId = '345534';
                      const regions = 'US';
                      const url = `https://api.watchmode.com/v1/title/${titleId}/episodes/?apiKey=${apiKey}&regions=${regions}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      title_id = '345534'
                      regions = 'US'
                      url = f'https://api.watchmode.com/v1/title/{title_id}/episodes/?apiKey={api_key}&regions={regions}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title/345534/episodes/?apiKey=YOUR_API_KEY&regions=US')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $titleId = '345534';
                      $regions = 'US';
                      $url = "https://api.watchmode.com/v1/title/{$titleId}/episodes/?apiKey={$apiKey}&regions={$regions}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: regions
                  in: query
                  description: Filter episode sources by region (2-letter country code). Comma-separated for multiple. Requested regions must be enabled for your plan. If omitted, returns sources from regions enabled for your plan.
                  schema:
                      type: string
                      example: 'US,CA'
                - name: season
                  in: query
                  description: Return episodes from this displayed season number only.
                  schema:
                      type: integer
                      minimum: 1
                - name: episode
                  in: query
                  description: Return this episode number within `season`. Requires `season`.
                  schema:
                      type: integer
                      minimum: 1
                - name: episode_id
                  in: query
                  description: Return the episode with this Watchmode episode ID. For a single-object response, use `/title/{title_id}/episodes/{episode_id}`.
                  schema:
                      type: integer
                      minimum: 1
                - name: episode_language
                  in: query
                  description: Preferred BCP-47 language for episode names and overviews. Localized fields fall back to English when unavailable. Existing requests remain English by default.
                  schema:
                      type: string
                      maxLength: 35
                      pattern: '^[a-zA-Z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$'
                      example: nl
                - name: include_sources
                  in: query
                  description: Set to false when streaming sources are not needed. This reduces response size and retrieval time.
                  schema:
                      type: boolean
                      default: true
                - name: limit
                  in: query
                  description: Maximum number of episode rows to return.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 500
                - name: offset
                  in: query
                  description: Number of episode rows to skip. Requires `limit`.
                  schema:
                      type: integer
                      minimum: 0
            responses:
                '200':
                    description: List of episodes with sources
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/Episode'
                            example:
                                - id: 1234567
                                  name: Pilot
                                  episode_number: 1
                                  season_number: 1
                                  season_id: 12345
                                  tmdb_id: 54321
                                  imdb_id: tt0959621
                                  thumbnail_url: http://www.some-poster-site.com/image.jpg
                                  release_date: 2008-01-20
                                  runtime_minutes: 58
                                  overview: Walter White, a high school chemistry teacher...
                                  sources:
                                      - source_id: 203
                                        name: Netflix
                                        type: sub
                                        region: US
                                        web_url: https://www.netflix.com/watch/123456
                                        ios_url: null
                                        android_url: null
                                        tvos_url: null
                                        android_tv_url: null
                                        roku_url: null
                                        format: null
                                        price: null
                '404':
                    $ref: '#/components/responses/NotFound'
                '400':
                    $ref: '#/components/responses/BadRequest'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/episodes/{episode_id}:
        get:
            operationId: getTitleEpisode
            summary: Get a single episode
            description: |
                Get one episode by its Watchmode episode ID. Streaming sources are included by default.
                Use `episode_language` for localized episode metadata and `include_sources=false` for a smaller response.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/episodes/1234567?episode_language=nl&regions=US'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });
                      const { data: episode } = await client.title.getEpisode(345534, 1234567, {
                        episodeLanguage: 'nl',
                        regions: ['US']
                      });
                      console.log(episode);
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: episode_id
                  in: path
                  required: true
                  description: Watchmode episode ID.
                  schema:
                      type: integer
                      minimum: 1
                - name: regions
                  in: query
                  description: Filter episode sources by region (2-letter country code). Comma-separated for multiple.
                  schema:
                      type: string
                      example: 'US,CA'
                - name: episode_language
                  in: query
                  description: Preferred BCP-47 language for the episode name and overview. Localized fields fall back to English when unavailable.
                  schema:
                      type: string
                      maxLength: 35
                      pattern: '^[a-zA-Z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$'
                      example: nl
                - name: include_sources
                  in: query
                  description: Set to false when streaming sources are not needed.
                  schema:
                      type: boolean
                      default: true
            responses:
                '200':
                    description: Episode details with sources
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Episode'
                '404':
                    $ref: '#/components/responses/NotFound'
                '400':
                    $ref: '#/components/responses/BadRequest'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/cast-crew:
        get:
            operationId: getTitleCastCrew
            summary: Get title cast and crew
            description: Get all cast (actors) and crew (directors, writers, etc.) associated with a title.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/cast-crew/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get cast and crew for a title
                      const { data: credits } = await client.title.getCastCrew(345534);
                      console.log(credits);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const titleId = '345534';
                      const url = `https://api.watchmode.com/v1/title/${titleId}/cast-crew/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      title_id = '345534'
                      url = f'https://api.watchmode.com/v1/title/{title_id}/cast-crew/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title/345534/cast-crew/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $titleId = '345534';
                      $url = "https://api.watchmode.com/v1/title/{$titleId}/cast-crew/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: language
                  in: query
                  description: ISO 639-1 language code for localized names (default `en`)
                  schema:
                      type: string
                      default: en
            responses:
                '200':
                    description: Cast and crew list
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/CastCrew'
                            example:
                                - person_id: 7110004
                                  type: 'Cast'
                                  full_name: 'Bryan Cranston'
                                  role: 'Walter White'
                                  episode_count: 62
                                  order: 1
                                - person_id: 7110005
                                  type: 'Crew'
                                  full_name: 'Vince Gilligan'
                                  role: 'Creator'
                                  episode_count: 62
                                  order: null
                '404':
                    $ref: '#/components/responses/NotFound'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title/{title_id}/incorrect-data:
        get:
            operationId: reportIncorrectData
            summary: Report incorrect title data
            description: |
                Report incorrect or missing data for a title. This endpoint helps improve data quality
                by allowing users to flag issues with title information.

                **Note:** This endpoint does not count against your quota as users are helping improve data quality.
            tags:
                - Title
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/345534/incorrect-data/?sourceMissing=1&somethingWrongDetails=Missing%20Netflix'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Report incorrect data for a title
                      const { data } = await client.title.reportIncorrectData(345534, {
                        sourceMissing: 1,
                        somethingWrongDetails: 'Missing Netflix availability'
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const titleId = '345534';
                      const params = new URLSearchParams({
                        apiKey,
                        sourceMissing: '1',
                        somethingWrongDetails: 'Missing Netflix availability'
                      });
                      const url = `https://api.watchmode.com/v1/title/${titleId}/incorrect-data/?${params}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json
                      from urllib.parse import urlencode

                      api_key = 'YOUR_API_KEY'
                      title_id = '345534'
                      params = urlencode({
                          'apiKey': api_key,
                          'sourceMissing': 1,
                          'somethingWrongDetails': 'Missing Netflix availability'
                      })
                      url = f'https://api.watchmode.com/v1/title/{title_id}/incorrect-data/?{params}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title/345534/incorrect-data/?apiKey=YOUR_API_KEY&sourceMissing=1')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $titleId = '345534';
                      $params = http_build_query([
                          'apiKey' => $apiKey,
                          'sourceMissing' => 1,
                          'somethingWrongDetails' => 'Missing Netflix availability'
                      ]);
                      $url = "https://api.watchmode.com/v1/title/{$titleId}/incorrect-data/?{$params}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: somethingWrongDescription
                  in: query
                  description: Flag indicating description/overview is incorrect (1 = yes)
                  schema:
                      type: integer
                      enum: [0, 1]
                - name: serviceIncorrect
                  in: query
                  description: Flag indicating streaming service info is incorrect (1 = yes)
                  schema:
                      type: integer
                      enum: [0, 1]
                - name: sourceMissing
                  in: query
                  description: Flag indicating a streaming source is missing (1 = yes)
                  schema:
                      type: integer
                      enum: [0, 1]
                - name: somethingElseWrong
                  in: query
                  description: Flag indicating other issue (1 = yes)
                  schema:
                      type: integer
                      enum: [0, 1]
                - name: somethingWrongDetails
                  in: query
                  description: Free-text description of the issue
                  schema:
                      type: string
            responses:
                '200':
                    description: Report received successfully
                    content:
                        application/json:
                            schema:
                                type: object
                                properties:
                                    success:
                                        type: boolean
                                        example: true
                                    statusMessage:
                                        type: string
                                        example: 'Request to correct title information received. Please wait 2 minutes while we attempt to auto-correct the issue.'
                '404':
                    $ref: '#/components/responses/NotFound'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /person/{person_id}:
        get:
            operationId: getPerson
            summary: Get person details
            description: |
                **Credits:** 1 per request, plus 1 when appending awards.

                Get a person's biography, professions, and known titles. Use `append_to_response=awards` to include their award history.
            tags:
                - Person
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/person/7110004'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get person details
                      const { data: person } = await client.person.getDetails(7110004, { language: 'en' });
                      console.log(person?.biography); // Localized biography or null
                      console.log(person?.full_name);  // "Brad Pitt"
                      console.log(person?.known_for);  // Array of title IDs
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const personId = '7110004';
                      const url = `https://api.watchmode.com/v1/person/${personId}?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      person_id = '7110004'
                      url = f'https://api.watchmode.com/v1/person/{person_id}?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/person/7110004?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $personId = '7110004';
                      $url = "https://api.watchmode.com/v1/person/{$personId}?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - name: language
                  in: query
                  description: Preferred biography language (for example, en or es). Available fallback text is used when a translation is unavailable.
                  schema:
                      type: string
                      example: es
                - name: person_id
                  in: path
                  required: true
                  description: Watchmode person ID (starts with 7, e.g., `7110004`)
                  schema:
                      type: integer
                      example: 7110004
                - name: append_to_response
                  in: query
                  description: |
                      Include award history for 1 additional credit. Awards include the first 50 filtered records. Use the standalone awards endpoint for later pages; awards_page and awards_limit are rejected.

                      Free accounts and active demos are limited to the fixed sample at /awards/sample; eligible paid plans get full available history. The sample is shared across keys and does not rotate.

                      Duplicate append values are charged once. A denied awards append returns 403 for the whole request, rather than silently omitting awards; awards access and validation failures cost zero credits.
                  schema:
                      type: string
                      enum:
                          - awards
                - name: awards_id
                  in: query
                  description: Award ID from /awards.
                  required: false
                  schema:
                      type: integer
                      minimum: 1
                - name: awards_result
                  in: query
                  description: With append_to_response=awards only. Defaults to any, which includes winners and non-winning nominations. winner returns wins only; nominee returns non-winning nominations only.
                  schema:
                      $ref: '#/components/schemas/AwardResultFilter'
                - name: awards_edition_id
                  in: query
                  description: With append_to_response=awards only. Stable edition ID from the editions directory.
                  schema:
                      type: integer
                      minimum: 1
                - name: awards_category_id
                  in: query
                  description: With append_to_response=awards only. Stable category ID from the categories directory.
                  schema:
                      type: integer
                      minimum: 1
            responses:
                '200':
                    description: 'Person metadata with any requested award history. Appended awards use the same record format and access rules as the standalone person awards endpoint. Ordinary account quotas and request limits apply.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Person'
                            example:
                                id: 7110004
                                full_name: Brad Pitt
                                first_name: Brad
                                last_name: Pitt
                                tmdb_id: 287
                                imdb_id: nm0000093
                                main_profession: actor
                                secondary_profession: producer
                                tertiary_profession: soundtrack
                                date_of_birth: 1963-12-18
                                date_of_death: null
                                place_of_birth: Shawnee, Oklahoma, USA
                                gender: m
                                known_for:
                                    - 1132806
                                    - 1336708
                                    - 1183315
                                    - 1387087
                                relevance_percentile: 100
                                biography: null
                    headers:
                        X-Watchmode-Request-Cost: &a2
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers:
                        X-Watchmode-Request-Cost: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '404':
                    $ref: '#/components/responses/NotFound'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /releases:
        get:
            operationId: getReleases
            summary: Get Title Release Dates - Simple
            description: |
                Costs 1 credit per page.

                Get recently released or upcoming releases on major streaming services.
                Includes original content flags to identify platform exclusives.
                Primarily US release dates, though most major services release globally on the same day.
            tags:
                - Releases
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/releases/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get recent/upcoming releases
                      const { data } = await client.releases.getRecent({
                        startDate: 20240101,
                        endDate: 20240131,
                        limit: 100
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/releases/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      api_key = 'YOUR_API_KEY'
                      url = f'https://api.watchmode.com/v1/releases/?apiKey={api_key}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/releases/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $url = "https://api.watchmode.com/v1/releases/?apiKey={$apiKey}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - name: start_date
                  in: query
                  description: |
                      Get releases after this date (PST timezone).
                      Format: `YYYYMMDD` or `YYYYMMDDHHMMSS`
                      Default: 30 days ago
                  schema:
                      type: integer
                      example: 20240101
                - name: end_date
                  in: query
                  description: |
                      Get releases before this date (PST timezone).
                      Format: `YYYYMMDD` or `YYYYMMDDHHMMSS`
                      Default: 30 days from now
                  schema:
                      type: integer
                      example: 20240131
                - name: limit
                  in: query
                  description: Number of results (1-250)
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 250
                      default: 250
            responses:
                '200':
                    description: List of releases
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReleasesResponse'
                            example:
                                releases:
                                    - id: 3165490
                                      title: 'Slow Horses'
                                      type: 'tv_series'
                                      tmdb_id: 95480
                                      tmdb_type: 'tv'
                                      imdb_id: 'tt5875444'
                                      season_number: 1
                                      poster_url: 'http://www.some-poster-site.com/image.jpg'
                                      source_release_date: '2022-04-01'
                                      source_id: 371
                                      source_name: 'AppleTV+'
                                      is_original: 1
                '400':
                    $ref: '#/components/responses/BadRequest'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title-release-dates:
        get:
            operationId: getTitleReleaseDatesAdvanced
            summary: Get Title Release Dates - Advanced
            x-badges:
                - name: Paid plan
                  color: purple
                  position: after
            description: |
                **Credits:** 1 per request; release-time fields add no credits.

                Find historical and upcoming streaming premieres and theatrical releases by date and country. Results include normalized calendar dates, a release time when known, and verification status for regional streaming releases. Coverage varies by country and source.

            tags:
                - Releases
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title-release-dates/?start_date=20240101&end_date=20240331&regions=US,GB'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get advanced release dates (paid plans only)
                      const { data } = await client.releases.getReleaseDates({
                        startDate: 20240101,
                        endDate: 20240331,
                        regions: ['US', 'GB']
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const startDate = 20240101;
                      const endDate = 20240331;
                      const regions = 'US,GB';
                      const url = `https://api.watchmode.com/v1/title-release-dates/?apiKey=${apiKey}&start_date=${startDate}&end_date=${endDate}&regions=${regions}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json
                      from urllib.parse import urlencode

                      api_key = 'YOUR_API_KEY'
                      params = urlencode({
                          'apiKey': api_key,
                          'start_date': 20240101,
                          'end_date': 20240331,
                          'regions': 'US,GB'
                      })
                      url = f'https://api.watchmode.com/v1/title-release-dates/?{params}'

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/title-release-dates/?apiKey=YOUR_API_KEY&start_date=20240101&end_date=20240331&regions=US,GB')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $apiKey = 'YOUR_API_KEY';
                      $params = http_build_query([
                          'apiKey' => $apiKey,
                          'start_date' => 20240101,
                          'end_date' => 20240331,
                          'regions' => 'US,GB'
                      ]);
                      $url = "https://api.watchmode.com/v1/title-release-dates/?{$params}";

                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $url);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
            parameters:
                - name: start_date
                  in: query
                  description: 'Include releases on or after this normalized calendar date. Format: YYYYMMDD or YYYYMMDDHHMMSS. Dates are filtered after normalization to the intended release calendar day.'
                  schema:
                      type: integer
                      example: 20240101
                - name: end_date
                  in: query
                  description: 'Include releases on or before this normalized calendar date. Format: YYYYMMDD or YYYYMMDDHHMMSS. Dates are filtered after normalization to the intended release calendar day.'
                  schema:
                      type: integer
                      example: 20240131
                - name: regions
                  in: query
                  description: 'Filter by two-letter country codes from /regions, comma-separated; omit for all available region-specific rows. Legacy US-only streaming sources return region US. Non-US theatrical coverage is limited to data_tier 1 regions.'
                  schema:
                      type: string
                      example: US,GB
            responses:
                '200':
                    description: |
                        Historical and upcoming releases within the requested date and country scope. To find upcoming streaming markets, group streaming rows by title id and collect their distinct region values, excluding theatrical_release rows. Scheduled releases can appear before playback links exist; no per-title follow-up requests are needed. An absent country means no known release in this scope, not that the title will never be licensed there.

                        Check the truncation headers before treating the result as complete: X-Watchmode-Truncated: 1 marks a truncated result, and X-Watchmode-Result-Limit reports the cap.
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: '#/components/schemas/TitleReleaseDate'
                            example:
                                - id: 1234567
                                  title: 'Dune: Part Two'
                                  title_type: movie
                                  original_language: en
                                  region: US
                                  type: theatrical_release
                                  release_date: 2024-03-01
                                  provider_id: null
                                  season: null
                                  release_at: null
                                  release_timezone: null
                                  time_precision: date
                                  verification_status: null
                                  last_verified: null
                                - id: 3173903
                                  title: Stranger Things
                                  title_type: tv_series
                                  original_language: en
                                  region: US
                                  type: streaming_tv_season_release
                                  release_date: 2024-07-01
                                  provider_id: 203
                                  season: 5
                                  release_at: null
                                  release_timezone: null
                                  time_precision: date
                                  verification_status: null
                                  last_verified: null
                '401':
                    description: Unauthorized or free plan
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                            example:
                                success: false
                                statusCode: 401
                                statusMessage: 'The release dates endpoint is only available with paid plans.'

                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /title-leaving-dates:
        get:
            operationId: getTitleLeavingDates
            summary: Titles leaving streaming sources
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            tags:
                - Releases
            description: |
                **Credits:** 1 per successful page.

                Find known dates when movies and TV seasons leave streaming services. Filter by country and date,
                then retrieve every page of results. Defaults to today through the next 90 days.
                Coverage varies by service and country, and departure dates can change.

                **Free preview:** Free accounts receive the next 10 departures starting today in their Free plan
                countries. Free requests can set `regions` and a `limit` of up to 10; date filters and later pages
                return `403 LEAVING_PREVIEW_LIMIT`. `total_results` counts every matching departure in the next
                90 days, and `total_pages` is at most 1. Paid plans can choose dates, request up to 250 listings per
                page and retrieve every page.
            x-codeSamples:
                - lang: Shell
                  label: Free preview
                  source: |
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title-leaving-dates/?regions=US'
                - lang: TypeScript
                  label: SDK Free preview
                  source: |
                      // npm install @watchmode/api-client@^3.1.0
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';
                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });
                      const preview = unwrap(await client.releases.getLeavingDates({ regions: ['US'] }));
                      console.log(preview.leaving_dates, preview.total_results);
                - lang: Shell
                  source: |
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title-leaving-dates/?start_date=20261018&end_date=20261117&regions=US,GB&page=1&limit=250'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client@^3.1.0
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';
                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });
                      const filters = { startDate: 20261018, endDate: 20261117, regions: ['US', 'GB'], limit: 250 };
                      let page = 1;
                      let totalPages = 1;
                      do {
                        const data = unwrap(await client.releases.getLeavingDates({ ...filters, page }));
                        console.log(data.leaving_dates);
                        totalPages = data.total_pages;
                        page++;
                      } while (page <= totalPages);
            parameters:
                - name: start_date
                  in: query
                  description: Paid plans only. Inclusive start, YYYYMMDD or YYYYMMDDHHMMSS. Defaults to today's calendar date. Date-only values start at midnight.
                  schema:
                      type: integer
                      example: 20261018
                - name: end_date
                  in: query
                  description: Paid plans only. Inclusive end, YYYYMMDD or YYYYMMDDHHMMSS. Defaults to 90 days after the start date. Date-only values include the whole day. Maximum span is 90 days worldwide or 366 days with regions.
                  schema:
                      type: integer
                      example: 20261117
                - name: regions
                  in: query
                  description: Comma-separated country codes from /regions. Omit for all supported countries on paid plans, or for all of a Free account's Free plan countries. Coverage varies by country and service.
                  schema:
                      type: string
                      example: US,GB
                - name: page
                  in: query
                  description: Fetch every page through total_pages, keeping the same explicit date and country filters. Results can change between requests. The SDK does not paginate automatically. Free accounts can request only page 1.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 1000000
                      default: 1
                - name: limit
                  in: query
                  description: Maximum number of departure listings returned on this page. Free accounts default to 10 and can request at most 10.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 250
                      default: 250
            responses:
                '200':
                    description: A page of known departures, ordered by date, country, provider, title and season. Provider observations take priority over JustWatch, then Reelgood; the latest confirmation breaks ties. One observation is selected per listing before date filtering and pagination. Historical results contain retained observations only; an empty result does not establish that no titles are leaving.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TitleLeavingDatesResponse'
                            example:
                                leaving_dates:
                                    - id: 1234567
                                      title: Example film
                                      title_type: movie
                                      region: US
                                      type: streaming_movie_leaving
                                      leaving_date: '2026-10-31'
                                      provider_id: 387
                                      season: null
                                page: 1
                                total_pages: 1
                                total_results: 1
                '400':
                    description: Invalid dates, pagination, or country filter.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    description: Missing or invalid API key.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '403':
                    description: 'LEAVING_PREVIEW_LIMIT: a Free account requested dates, more than 10 listings or a later page; a paid plan is required. Also returned when account verification or access is required.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                            example:
                                success: false
                                statusCode: 403
                                code: LEAVING_PREVIEW_LIMIT
                                statusMessage: Free accounts get a preview of the next 10 departures starting today in their Free plan countries. Custom dates, more than 10 results and additional pages require a paid plan.
                                required_plan: startup
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /changes/titles_sources_changed:
        get:
            operationId: getTitlesSourcesChanged
            summary: Get titles with changed sources
            x-badges:
                - name: Paid plan
                  color: purple
                  position: after
            description: |
                **Credits:** 1 per page.

                Get IDs of titles whose streaming availability changed during a date range. Use these IDs to refresh sources in your catalog. A title matches when its sources changed in any requested country.

            tags:
                - Changes
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/changes/titles_sources_changed?regions=US,FR,ES'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get titles where streaming sources changed (paid plans only)
                      const { data } = await client.changes.getTitlesWithSourceChanges({
                        startDate: 20240101,
                        endDate: 20240107,
                        regions: ['US', 'FR', 'ES']
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/changes/titles_sources_changed?apiKey=${apiKey}&regions=US,FR,ES`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      url = "https://api.watchmode.com/v1/changes/titles_sources_changed?apiKey=YOUR_API_KEY&regions=US,FR,ES"

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/changes/titles_sources_changed?apiKey=YOUR_API_KEY&regions=US,FR,ES')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, 'https://api.watchmode.com/v1/changes/titles_sources_changed?apiKey=YOUR_API_KEY&regions=US,FR,ES');
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/startDate'
                - $ref: '#/components/parameters/endDate'
                - $ref: '#/components/parameters/titleTypes'
                - name: regions
                  in: query
                  description: 'Comma-separated two-letter country codes. Defaults to US; use regions=AU for Australian availability. A title matches if its sources changed in any requested region.'
                  schema:
                      type: string
                      default: US
                      example: 'US,FR,ES'
                - $ref: '#/components/parameters/page'
                - $ref: '#/components/parameters/changesLimit'
            responses:
                '200':
                    description: 'Title IDs with changed streaming sources. Fetch every page through total_pages, intersect with your catalog, and refresh matching titles. Keep a small overlap between polling windows and deduplicate IDs. Use the full /v1/changes/titles_sources_changed/ path; the bare /v1/changes/ path is invalid.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChangesResponse'
                            example:
                                titles:
                                    - 12490
                                    - 115801
                                    - 144030
                                page: 1
                                total_results: 488
                                total_pages: 2
                '401':
                    $ref: '#/components/responses/PaidPlanRequired'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /changes/titles_details_changed:
        get:
            operationId: getTitlesDetailsChanged
            summary: Get titles with changed details
            x-badges:
                - name: Paid plan
                  color: purple
                  position: after
            description: |
                **Credits:** 1 per page.

                Get IDs of titles whose metadata changed, including overviews, cast, genres, and ratings. Details changes are global; use `titles_sources_changed` for country-specific streaming changes.

            tags:
                - Changes
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/changes/titles_details_changed'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get titles where details changed (paid plans only)
                      const { data } = await client.changes.getTitlesWithDetailChanges({
                        startDate: 20240101,
                        endDate: 20240107
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/changes/titles_details_changed?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      url = "https://api.watchmode.com/v1/changes/titles_details_changed?apiKey=YOUR_API_KEY"

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/changes/titles_details_changed?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, 'https://api.watchmode.com/v1/changes/titles_details_changed?apiKey=YOUR_API_KEY');
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/startDate'
                - $ref: '#/components/parameters/endDate'
                - $ref: '#/components/parameters/titleTypes'
                - $ref: '#/components/parameters/page'
                - $ref: '#/components/parameters/changesLimit'
            responses:
                '200':
                    description: 'Title IDs with changed metadata. Fetch every page through total_pages, intersect with your catalog, and refresh matching titles. Keep a small overlap between polling windows and deduplicate IDs. Use the full /v1/changes/titles_details_changed/ path; the bare /v1/changes/ path is invalid.'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChangesResponse'
                            example:
                                titles:
                                    - 3171655
                                    - 3127447
                                    - 3146794
                                page: 1
                                total_results: 14
                                total_pages: 1
                '401':
                    $ref: '#/components/responses/PaidPlanRequired'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /changes/titles_episodes_changed:
        get:
            operationId: getTitlesEpisodesChanged
            summary: Get titles with changed episodes
            x-badges:
                - name: Paid plan
                  color: purple
                  position: after
            description: |
                **Credits:** 1 per successful page.

                Get title IDs where episode data has changed (new episodes, updated details) within a date range.

            tags:
                - Changes
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/changes/titles_episodes_changed'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get titles where episodes changed (paid plans only)
                      const { data } = await client.changes.getTitlesWithEpisodeChanges({
                        startDate: 20240101,
                        endDate: 20240107
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/changes/titles_episodes_changed?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      url = "https://api.watchmode.com/v1/changes/titles_episodes_changed?apiKey=YOUR_API_KEY"

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/changes/titles_episodes_changed?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, 'https://api.watchmode.com/v1/changes/titles_episodes_changed?apiKey=YOUR_API_KEY');
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/startDate'
                - $ref: '#/components/parameters/endDate'
                - $ref: '#/components/parameters/page'
                - $ref: '#/components/parameters/changesLimit'
            responses:
                '200':
                    description: List of title IDs with changed episodes
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChangesResponse'
                            example:
                                titles:
                                    - 3123402
                                    - 3165766
                                    - 3107530
                                page: 1
                                total_results: 130
                                total_pages: 1
                '401':
                    $ref: '#/components/responses/PaidPlanRequired'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /changes/new_titles:
        get:
            operationId: getNewTitles
            summary: Get newly added titles
            x-badges:
                - name: Paid plan
                  color: purple
                  position: after
            description: |
                **Credits:** 1 per successful page.

                Get title IDs of new movies and shows added to Watchmode within a date range.
                Useful for keeping your database in sync with Watchmode.

            tags:
                - Changes
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/changes/new_titles?types=movie,tv_series'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get newly added titles (paid plans only)
                      const { data } = await client.changes.getNewTitles({
                        startDate: 20240101,
                        endDate: 20240107,
                        types: ['movie', 'tv_series'],
                        page: 1,
                        limit: 250
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const types = 'movie,tv_series';
                      const url = `https://api.watchmode.com/v1/changes/new_titles?apiKey=${apiKey}&types=${types}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      url = "https://api.watchmode.com/v1/changes/new_titles?apiKey=YOUR_API_KEY&types=movie,tv_series"

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/changes/new_titles?apiKey=YOUR_API_KEY&types=movie,tv_series')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, 'https://api.watchmode.com/v1/changes/new_titles?apiKey=YOUR_API_KEY&types=movie,tv_series');
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/startDate'
                - $ref: '#/components/parameters/endDate'
                - $ref: '#/components/parameters/titleTypes'
                - $ref: '#/components/parameters/page'
                - $ref: '#/components/parameters/changesLimit'
            responses:
                '200':
                    description: List of new title IDs
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ChangesResponse'
                            example:
                                titles:
                                    - 1138
                                    - 1668
                                    - 1867
                                    - 11029
                                    - 11045
                                page: 1
                                total_results: 6513
                                total_pages: 27
                '401':
                    $ref: '#/components/responses/PaidPlanRequired'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /changes/new_people:
        get:
            operationId: getNewPeople
            summary: Get newly added people
            x-badges:
                - name: Paid plan
                  color: purple
                  position: after
            description: |
                **Credits:** 1 per successful page.

                Get IDs of new people (actors, directors, etc.) added to Watchmode within a date range.

            tags:
                - Changes
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/changes/new_people/'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Get newly added people (paid plans only)
                      const { data } = await client.changes.getNewPeople({
                        startDate: 20240101,
                        endDate: 20240107
                      });
                      console.log(data);
                - lang: JavaScript
                  source: |
                      const apiKey = 'YOUR_API_KEY';
                      const url = `https://api.watchmode.com/v1/changes/new_people/?apiKey=${apiKey}`;

                      const response = await fetch(url);
                      const json = await response.json();
                      console.log(json);
                - lang: Python
                  source: |
                      import urllib.request
                      import json

                      url = "https://api.watchmode.com/v1/changes/new_people/?apiKey=YOUR_API_KEY"

                      with urllib.request.urlopen(url) as response:
                          data = json.loads(response.read().decode())
                          print(data)
                - lang: Ruby
                  source: |
                      require 'net/http'
                      require 'uri'
                      require 'json'

                      uri = URI('https://api.watchmode.com/v1/changes/new_people/?apiKey=YOUR_API_KEY')
                      json = Net::HTTP.get(uri)
                      result = JSON(json)
                      print(result)
                - lang: PHP
                  source: |
                      <?php
                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, 'https://api.watchmode.com/v1/changes/new_people/?apiKey=YOUR_API_KEY');
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                      $response = curl_exec($ch);
                      curl_close($ch);

                      $json = json_decode($response);
                      print_r($json);
            parameters:
                - $ref: '#/components/parameters/startDate'
                - $ref: '#/components/parameters/endDate'
                - $ref: '#/components/parameters/page'
                - $ref: '#/components/parameters/changesLimit'
            responses:
                '200':
                    description: List of new person IDs
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PeopleChangesResponse'
                            example:
                                people:
                                    - 710203130
                                    - 73333445
                                    - 710203131
                                page: 1
                                total_results: 15113
                                total_pages: 61
                '401':
                    $ref: '#/components/responses/PaidPlanRequired'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /live-coverage:
        get:
            operationId: getLiveCoverage
            summary: Check your Live API access
            description: |
                **Credits:** 0, including after your monthly allowance is used; normal request-rate limits apply.

                Check which Live countries, leagues, event dates, and TV channels your account can access. Access is automatic for supported direct-account plans.
            tags:
                - Live TV, Sports & Events
            responses:
                '200':
                    description: 'Available data and plan limits, not a promise of current or complete listings. Business and Enterprise also receive channel date ranges. Enterprise uses the business access_level. Changes-only downloads are not available yet.'
                    content:
                        application/json:
                            examples:
                                business:
                                    summary: Business access to the illustrated data
                                    value:
                                        access_level: business
                                        available_event_ranges:
                                            - region: US
                                              league_id: 90001
                                              date_from: 2026-09-10T00:00:00Z
                                              date_to: 2026-09-10T02:00:00Z
                                              streaming_options_available: true
                                              location_filter_available: false
                                        sample_event_ids: null
                                        guide_available: true
                                        available_channel_ranges:
                                            - channel_id: 90004
                                              region: US
                                              date_from: 2026-09-10T00:00:00Z
                                              date_to: 2026-09-10T02:00:00Z
                            schema:
                                type: object
                                additionalProperties: false
                                required:
                                    - access_level
                                    - available_event_ranges
                                    - sample_event_ids
                                    - guide_available
                                    - available_channel_ranges
                                properties:
                                    access_level:
                                        type: string
                                        enum:
                                            - free
                                            - startup
                                            - business
                                        description: Live feature level. Enterprise uses business features; this field is not the name of your billing plan.
                                    available_event_ranges:
                                        type: array
                                        items:
                                            type: object
                                            additionalProperties: false
                                            required:
                                                - region
                                                - league_id
                                                - date_from
                                                - date_to
                                                - streaming_options_available
                                                - location_filter_available
                                            properties:
                                                region:
                                                    type: string
                                                    enum:
                                                        - US
                                                        - GB
                                                        - CA
                                                        - AU
                                                league_id:
                                                    type: integer
                                                date_from:
                                                    type: string
                                                    format: date-time
                                                    description: Beginning of the available or requested range. A range may contain missing listings.
                                                date_to:
                                                    type: string
                                                    format: date-time
                                                    description: End of the available or requested range, excluded from the interval. A range may contain missing listings.
                                                streaming_options_available:
                                                    type: boolean
                                                    description: Whether your account can request where-to-watch options for this country and league. Individual events may still have no known options.
                                                location_filter_available:
                                                    type: boolean
                                                    description: Whether your account can filter viewing options by US TV market for this country and league.
                                        description: Countries, leagues, and event start-time ranges available to your account. Dates may contain gaps.
                                    sample_event_ids:
                                        type: array
                                        nullable: true
                                        maxItems: 25
                                        items:
                                            type: integer
                                        description: Free sample event IDs. Null for paid plans; an empty array grants no sample events.
                                    guide_available:
                                        type: boolean
                                        description: Whether your account can use the TV guide and channels currently have listings.
                                    available_channel_ranges:
                                        type: array
                                        items:
                                            type: object
                                            additionalProperties: false
                                            required:
                                                - channel_id
                                                - region
                                                - date_from
                                                - date_to
                                            properties:
                                                channel_id:
                                                    type: integer
                                                    description: ID of this specific TV channel or local station. Use it with channel_ids on the guide endpoints.
                                                region:
                                                    type: string
                                                    enum:
                                                        - US
                                                date_from:
                                                    type: string
                                                    format: date-time
                                                    description: Beginning of the available or requested range. A range may contain missing listings.
                                                date_to:
                                                    type: string
                                                    format: date-time
                                                    description: End of the available or requested range, excluded from the interval. A range may contain missing listings.
                                        description: Channels and listing date ranges available to your account. Dates may contain gaps.
                '403':
                    description: Your account needs a supported plan or access to the requested data. The response explains the restriction.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '503':
                    description: Live data is temporarily unavailable.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const coverage = unwrap(await client.live.getCoverage());
                      console.log(coverage);
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-coverage/'"

    /live-events:
        get:
            operationId: getLiveEvents
            summary: Find sports and awards events
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            description: |
                **Credits:** 1/page; 2 with provider or availability filters. Including sources costs 1 + 1/event (1 for an empty page), with no extra filter charge.

                Find sports games and award ceremonies by date, league, team, or name. Optionally include viewing options. Use `/live-schedule` for a download whose pages stay unchanged.
            tags:
                - Live TV, Sports & Events
            parameters:
                - name: event_ids
                  in: query
                  description: 'Up to 100 comma-separated event IDs. Match any ID within this filter and every different filter supplied. Only events within your dates and account access are returned.'
                  schema:
                      type: string
                - name: provider_ids
                  in: query
                  description: 'Startup or higher. Up to 100 comma-separated provider IDs. Match an event with a known option on any listed provider in your country; returned viewing options are also limited to these providers. Combined with other filters using AND.'
                  schema:
                      type: string
                - name: search
                  in: query
                  description: 'Match text anywhere in event, league, or team names, including team short names, ignoring capitalization. At least 2 and at most 120 characters.'
                  schema:
                      type: string
                      minLength: 2
                      maxLength: 120
                - name: has_sources
                  in: query
                  description: 'Startup or higher. Set true to require known viewing options in the chosen country; false does not filter events. Unknown parameters and invalid values are rejected.'
                  schema:
                      type: boolean
                - name: include_sources
                  in: query
                  description: 'Include viewing options in sources and event-specific web/mobile links in event_destinations. Costs 1 credit plus 1 per returned event, or 1 for an empty page; no additional provider/availability filter charge applies. Free accounts may include options for their sample events. sources_state describes known viewing options.'
                  schema:
                      type: boolean
                - name: types
                  in: query
                  description: 'Comma-separated event types: sport, awards.'
                  schema:
                      type: string
                - name: league_ids
                  in: query
                  description: 'Up to 100 comma-separated IDs from /live-leagues. Match any listed league and all other supplied filters. Country and league selections apply per request; they are not saved to your account.'
                  schema:
                      type: string
                      example: 13279,13281
                - name: team_ids
                  in: query
                  description: 'Up to 100 comma-separated team IDs. Match any listed home or away team and all other supplied filters.'
                  schema:
                      type: string
                - name: sport
                  in: query
                  description: Filter by the sport value returned by /live-leagues.
                  schema:
                      type: string
                - name: region
                  in: query
                  description: Two-letter country code for viewing availability, such as US. Defaults to US. Must be available to your account.
                  schema:
                      type: string
                      default: US
                - name: date_from
                  in: query
                  description: 'Inclusive start as an ISO 8601 date/time with Z or a UTC offset. A date alone means midnight UTC; use the local UTC offset for a local calendar day. Defaults to now, or 7 days ago when status includes live. Startup can access the past 7 days through the next 7 days; a start beyond that future limit returns an error. Keep the same explicit dates on every page.'
                  schema:
                      type: string
                      example: '2026-09-01'
                - name: date_to
                  in: query
                  description: "Exclusive end as an ISO 8601 date/time with Z or a UTC offset. A date alone means midnight UTC, not the viewer's local midnight. Defaults to 7 days after the start. Startup ranges extending beyond the next 7 days are shortened and date_range_limited is true. Keep the same explicit dates on every page."
                  schema:
                      type: string
                - name: status
                  in: query
                  description: Comma-separated statuses — `scheduled`, `live`, `final`, `postponed`, `cancelled`, `unknown`. Unknown does not mean live.
                  schema:
                      type: string
                - name: page
                  in: query
                  schema:
                      type: integer
                      default: 1
                - name: limit
                  in: query
                  description: 'Results per page, default 25. Values outside 1–250 return 400; values above your plan cap are reduced to 25 Free / 100 Startup / 250 Business or Enterprise. Business/Enterprise clients can request 250 to reduce page costs.'
                  schema:
                      type: integer
                      default: 25
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const page = unwrap(await client.live.getEvents({
                        region: 'US', types: ['sport'], status: ['scheduled', 'live'], page: 1, limit: 10
                      }));
                      console.log(page.events); // Use returned event IDs with getEvent() and getEventSources().
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-events/?types=sport&region=US&date_from=2026-09-10&date_to=2026-09-14'
            responses:
                '200':
                    description: |
                        A page of event names, teams, start times, statuses, and TV broadcasts, with optional viewing options. Events remain included when their options are unknown.

                        Free accounts receive a shared sample of up to 25 events; Startup uses the past/next 7-day window; Business and Enterprise can access all available dates. Check /live-coverage for available ranges.

                        Results can change between requests as events are added or rescheduled; use /live-schedule for a frozen download.
                    content:
                        application/json:
                            examples:
                                oneEvent:
                                    summary: Completed search without viewing options
                                    value:
                                        events:
                                            - id: 90007
                                              name: Example Bears at Example Hawks
                                              event_type: sport
                                              league:
                                                  id: 90001
                                                  name: Example League
                                                  sport: football
                                              home_team:
                                                  id: 90002
                                                  name: Example Hawks
                                                  logo_url: null
                                              away_team:
                                                  id: 90003
                                                  name: Example Bears
                                                  logo_url: null
                                              start_time: 2026-09-10T00:00:00Z
                                              status: scheduled
                                              last_seen_at: 2026-09-09T16:00:00Z
                                              venue: Example Stadium
                                              season: '2026'
                                              round: null
                                              broadcasts:
                                                  - network_id: 90005
                                                    network_name: Example Sports
                                                    channel_id: 90004
                                                    channel_name: Example Sports
                                                    start_time: 2026-09-10T00:00:00Z
                                                    region: US
                                                    dma: null
                                                    language: en
                                              sources_state: not_requested
                                        region: US
                                        page: 1
                                        total_pages: 1
                                        total_results: 1
                                        date_range_limited: false
                                        effective_date_from: 2026-09-10T00:00:00Z
                                        effective_date_to: 2026-09-10T02:00:00Z
                                        latest_event_time: 2026-09-10T00:00:00Z
                            schema:
                                $ref: '#/components/schemas/LivePublicEventsResponse'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /live-event/{id}:
        get:
            operationId: getLiveEvent
            summary: Get event details
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            description: |
                **Credits:** 1 per successful request.

                Get an event's name, league, teams, start time, status, venue, and TV broadcasts. Use `/live-event/{id}/sources` for viewing options. The same account and date limits apply as on `/live-events`.
            tags:
                - Live TV, Sports & Events
            parameters:
                - name: region
                  in: query
                  description: Two-letter country code for viewing availability, such as US. Defaults to US. Must be available to your account.
                  schema:
                      type: string
                      default: US
                - name: id
                  in: path
                  required: true
                  description: Live event id (a distinct id namespace from title ids).
                  schema:
                      type: integer
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const eventId = 159786; // Replace with an ID from live.getEvents().
                      const event = unwrap(await client.live.getEvent(eventId, { region: 'US' }));
                      console.log(event);
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-event/69647/'
            responses:
                '200':
                    description: 'Event details and TV broadcasts. Viewing options are omitted and sources_state is not_requested.'
                    content:
                        application/json:
                            examples:
                                event:
                                    summary: Event details; viewing options requested separately
                                    value:
                                        id: 90007
                                        name: Example Bears at Example Hawks
                                        event_type: sport
                                        league:
                                            id: 90001
                                            name: Example League
                                            sport: football
                                        home_team:
                                            id: 90002
                                            name: Example Hawks
                                            logo_url: null
                                        away_team:
                                            id: 90003
                                            name: Example Bears
                                            logo_url: null
                                        start_time: 2026-09-10T00:00:00Z
                                        status: scheduled
                                        last_seen_at: 2026-09-09T16:00:00Z
                                        venue: Example Stadium
                                        season: '2026'
                                        round: null
                                        broadcasts:
                                            - network_id: 90005
                                              network_name: Example Sports
                                              channel_id: 90004
                                              channel_name: Example Sports
                                              start_time: 2026-09-10T00:00:00Z
                                              region: US
                                              dma: null
                                              language: en
                                        sources_state: not_requested
                            schema:
                                $ref: '#/components/schemas/LivePublicEvent'
                '404':
                    description: "Unknown event, or an event outside the account's accessible dates or Free sample."
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /live-event/{id}/sources:
        get:
            operationId: getLiveEventSources
            summary: Find where to watch an event
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            description: |
                **Credits:** 2 per requested country.

                Find services, event links, and mobile deep links for watching an event in one or more countries. Free accounts can request sample events. Viewing options describe known availability; subscription and location requirements still apply.
            tags:
                - Live TV, Sports & Events
            parameters:
                - name: id
                  in: path
                  required: true
                  schema:
                      type: integer
                - name: regions
                  in: query
                  description: 'Comma-separated country codes: US, GB, CA, AU. Defaults to US. Each distinct country costs 2 credits. If any requested country is unavailable to your account, the entire request is rejected without charging.'
                  schema:
                      type: string
                      example: US
                - name: dma
                  in: query
                  description: 'Optional three-digit US TV market code (Nielsen DMA), such as 803 for Los Angeles. Requires Business or Enterprise with location filtering enabled for the events. US requests only. Omitting it can return both local and national options. This narrows location matches without verifying subscription or location eligibility. ZIP-code lookup is not supported.'
                  schema:
                      type: string
                      example: '803'
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const eventId = 159786; // Replace with an ID from live.getEvents().
                      const options = unwrap(await client.live.getEventSources(eventId, { regions: ['US'] }));
                      console.log(options.sources, options.event_destinations);
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-event/69647/sources/?regions=US'
            responses:
                '200':
                    description: "Where-to-watch options and availability by country. Read both sources and event_destinations; the same source objects are used in event lists and downloads. Choose links by platform and destination type, with a web fallback when the viewer's platform is unavailable. Empty options mean availability is unknown. The response does not verify that a particular viewer can play the event."
                    content:
                        application/json:
                            examples:
                                publicPage:
                                    summary: Public information page; playback access unknown
                                    description: 'The DIRECTV lineup page is public. links[].requires_subscription: false describes opening that page, not free playback of this illustrative event. Safe button text: Open channel information; watching may require a subscription.'
                                    value:
                                        id: 90007
                                        name: Example Bears at Example Hawks
                                        event_type: sport
                                        start_time: 2026-09-10T00:00:00Z
                                        status: scheduled
                                        regions:
                                            - US
                                        market: null
                                        sources:
                                            - provider_id: 520
                                              provider_name: DIRECTV Stream
                                              provider_type: subscription
                                              is_live_tv_bundle: true
                                              network:
                                                  id: 90005
                                                  name: Example Sports
                                              region: US
                                              availability_scope: national
                                              territory_team_id: null
                                              location_restriction: location_rules_unknown
                                              channel_package_options: []
                                              last_seen_at: 2026-09-09T16:00:00Z
                                              links:
                                                  - platform: web
                                                    type: channel
                                                    url: https://www.directv.com/stream/channel-lineup/
                                                    affiliate: false
                                                    requires_subscription: false
                                              freshness: current
                                        sources_state: known_options
                                        coverage:
                                            - region: US
                                              state: known_options
                                        event_destinations: []
                            schema:
                                $ref: '#/components/schemas/LivePublicSourcesResponse'
                '403':
                    description: Your account needs a supported plan or access to the requested data. The response explains the restriction.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '404':
                    description: Unknown event id.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /live-channels:
        get:
            operationId: getLiveGuideChannels
            summary: List TV channels
            x-badges:
                - name: Business+
                  color: blue
                  position: after
            tags:
                - Live TV, Sports & Events
            description: |
                **Credits:** 1 per successful request.

                List US TV channels with stored guide listings, available dates, and a summary of the next 48 hours. Use their IDs with `/live-airings` to build a TV guide.
            parameters:
                - name: region
                  in: query
                  schema:
                      type: string
                      enum:
                          - US
                  description: Two-letter country code for viewing availability, such as US. Defaults to US. Must be available to your account.
                - name: channel_ids
                  in: query
                  description: Optional comma-separated channel IDs from /live-channels. Select up to 30 channels, or omit for all channels.
                  schema:
                      type: string
            responses:
                '200':
                    description: 'Channel identities and observed guide dates, including historical listings. Coverage is not guaranteed on every channel. Refresh the directory and start a new guide download when channel IDs change. This endpoint does not provide streaming-service lineups; event viewing options expose recorded channel/package pairs separately.'
                    content:
                        application/json:
                            examples:
                                partial:
                                    summary: One channel with partial upcoming coverage
                                    value:
                                        region: US
                                        channels:
                                            - channel_id: 90004
                                              name: Example Sports
                                              network_id: 90005
                                              timezone: America/New_York
                                              dma: null
                                              channel_type: national
                                              region: US
                                              date_from: 2026-09-10T00:00:00Z
                                              date_to: 2026-09-10T02:00:00Z
                                              upcoming_schedule:
                                                  date_from: 2026-09-09T16:00:00Z
                                                  date_to: 2026-09-11T16:00:00Z
                                                  listing_count: 1
                                                  coverage_status: partial
                                                  last_seen_at: 2026-09-09T16:00:00Z
                                        total_results: 1
                            schema:
                                $ref: '#/components/schemas/LivePublicGuideChannels'
                '400':
                    description: Invalid or unsupported filters.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '403':
                    description: Your account needs a supported plan or access to the requested data. The response explains the restriction.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Requires Business or Enterprise.
                      const directory = unwrap(await client.live.getChannels({ region: 'US' }));
                      console.log(directory.channels); // Use these channel IDs with getAirings().
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-channels/'"

    /live-airings:
        get:
            operationId: getLiveGuideAirings
            summary: Get TV listings
            x-badges:
                - name: Business+
                  color: blue
                  position: after
            tags:
                - Live TV, Sports & Events
            description: |
                **Credits:** 1 per successful page, including repeated and empty pages.

                Get scheduled US TV listings for up to 48 hours, including programs that started earlier and are still airing. Download every page before updating your saved guide, and check coverage for gaps.
            parameters:
                - name: region
                  in: query
                  schema:
                      type: string
                      enum:
                          - US
                  description: Two-letter country code for viewing availability, such as US. Defaults to US. Must be available to your account.
                - name: channel_ids
                  in: query
                  schema:
                      type: string
                  description: Optional comma-separated channel IDs from /live-channels. Select up to 30 channels, or omit for all channels.
                - name: date_from
                  in: query
                  description: Start of the requested time range. Use an ISO 8601 date/time including Z for UTC or a timezone offset. Required for the first page; choose a range of up to 48 hours.
                  schema:
                      type: string
                      format: date-time
                - name: date_to
                  in: query
                  description: End of the requested time range, not included in the results. Use an ISO 8601 date/time including Z for UTC or a timezone offset. Required for the first page; choose a range of up to 48 hours.
                  schema:
                      type: string
                      format: date-time
                - name: continuation
                  in: query
                  schema:
                      type: string
                      maxLength: 512
                  description: 'Copy next_cursor from the previous response. Send only continuation and your API key; stop when next_cursor is null. Pages share unchanged results. Finish within 10 minutes using the cursor_expires_at deadline.'
            responses:
                '200':
                    description: |
                        A page of up to 500 listings and 1 MiB, with channel coverage. A full download can contain up to 10,000 listings and 20 MiB; if too large, request fewer channels or a shorter range. Accounts share a limit of 16 saved downloads and 64 MiB across sports and TV, including all API keys.

                        Local-station coverage varies. Program images, episode descriptions, and channel numbers are not available.

                        Streaming-service, package, title, ZIP-code, and now/next filters are unsupported; build now/next from known start/end times while accounting for gaps.
                    content:
                        application/json:
                            examples:
                                partial:
                                    summary: Download complete; channel coverage still partial
                                    description: All pages were fetched, but the two reported gaps remain unknown coverage. Keep previously saved listings; safe_to_replace is false. The guide program ID is separate from the event ID and catalog title IDs.
                                    value:
                                        region: US
                                        channel_ids:
                                            - 90004
                                        date_from: 2026-09-09T16:00:00Z
                                        date_to: 2026-09-11T16:00:00Z
                                        coverage:
                                            - channel_id: 90004
                                              status: partial
                                              last_seen_at: 2026-09-09T16:00:00Z
                                              gaps:
                                                  - from: 2026-09-09T16:00:00Z
                                                    to: 2026-09-10T00:00:00Z
                                                  - from: 2026-09-10T02:00:00Z
                                                    to: 2026-09-11T16:00:00Z
                                        safe_to_replace: false
                                        snapshot_id: 00000000-0000-4000-8000-000000000002
                                        cursor_expires_at: 2026-09-09T16:10:00Z
                                        page: 1
                                        total_pages: 1
                                        total_results: 1
                                        airing_count: 1
                                        has_more: false
                                        next_cursor: null
                                        airings:
                                            - id: 90011
                                              channel_id: 90004
                                              program_id: 90012
                                              name: Example Bears at Example Hawks
                                              program_type: sport
                                              start_time: 2026-09-10T00:00:00Z
                                              end_time: 2026-09-10T02:00:00Z
                                              is_live_broadcast: true
                                              watch_links: []
                                              is_new: true
                                              is_repeat: false
                                              last_seen_at: 2026-09-09T16:00:00Z
                            schema:
                                $ref: '#/components/schemas/LivePublicGuidePage'
                '400':
                    description: Invalid filters, request interval longer than 48 hours or more than 10000 airings; narrow the query.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '403':
                    description: Your account needs a supported plan or access to the requested data. The response explains the restriction.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '409':
                    description: Your access changed or this page token belongs to another endpoint. Start a new download.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '410':
                    description: This download expired or is unavailable to your account. Start a new download.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '413':
                    description: The result is too large. Select fewer channels or leagues, or a shorter time range.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '429':
                    description: Monthly credits, request-rate limits, or saved-download limits were reached.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Requires Business or Enterprise; 1 credit per page.
                      const dateFrom = new Date();
                      const dateTo = new Date(dateFrom.getTime() + 24 * 60 * 60 * 1000);
                      const page = unwrap(await client.live.getAirings({
                        region: 'US', dateFrom: dateFrom.toISOString(), dateTo: dateTo.toISOString()
                      }));
                      console.log(page.airings, page.coverage, page.safe_to_replace);
                      // When needed, request another page with only the returned token:
                      // if (page.next_cursor) await client.live.getAirings({ continuation: page.next_cursor });
                      // A completed download does not imply complete channel coverage.
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-airings/?date_from=2026-09-10T00:00:00Z&date_to=2026-09-12T00:00:00Z'"

    /live-leagues:
        get:
            operationId: getLiveLeagues
            summary: List sports leagues and award programs
            description: |
                **Credits:** 1 per request.

                List sports leagues and award programs available to your account. Use their IDs to filter events; a league can represent a tour, tournament, or award program such as the Oscars.
            tags:
                - Live TV, Sports & Events
            parameters:
                - name: types
                  in: query
                  description: 'Comma-separated event types: sport, awards.'
                  schema:
                      type: string
                      example: sport
                - name: sport
                  in: query
                  description: Filter by the sport value returned by /live-leagues.
                  schema:
                      type: string
                - name: country
                  in: query
                  description: Filter by the league's known 2-letter country code. Leagues with unknown country are excluded.
                  schema:
                      type: string
                      example: US
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const leagues = unwrap(await client.live.getLeagues({ types: ['sport'] }));
                      console.log(leagues); // Use returned IDs in team, event and schedule filters.
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-leagues/?types=sport'
            responses:
                '200':
                    description: 'Up to 500 matching available leagues in one response; not paginated. If 500 are returned, narrow sport or country to check for more matches. Access is automatic for supported direct-account plans.'
                    content:
                        application/json:
                            examples:
                                oneLeague:
                                    summary: One matching league
                                    value:
                                        leagues:
                                            - id: 90001
                                              name: Example League
                                              sport: football
                                              abbreviation: EXL
                                              country: US
                                              level: unknown
                                              gender: unknown
                                              event_type: sport
                                        total_results: 1
                            schema:
                                type: object
                                additionalProperties: false
                                required: [leagues, total_results]
                                properties:
                                    total_results:
                                        description: 'Number of leagues returned in this response, capped at 500.'
                                        type: integer
                                    leagues:
                                        type: array
                                        items:
                                            type: object
                                            additionalProperties: false
                                            required: [id, name, abbreviation, sport, event_type, country, level, gender]
                                            properties:
                                                id:
                                                    description: 'League or award-program ID. Use it together with sport to distinguish similar names.'
                                                    type: integer
                                                name:
                                                    type: string
                                                abbreviation:
                                                    type: string
                                                    nullable: true
                                                sport:
                                                    type: string
                                                    nullable: true
                                                event_type:
                                                    description: 'sport for sports competitions; awards for award programs such as the Oscars.'
                                                    type: string
                                                    enum: [sport, awards]
                                                country:
                                                    description: "League's known country, not the country where an event can be watched. Null when unknown. Use region on event requests for the viewer's country."
                                                    type: string
                                                    nullable: true
                                                level:
                                                    description: 'Competition level, when known; otherwise null.'
                                                    type: string
                                                    nullable: true
                                                gender:
                                                    description: 'Competition gender classification, when known; otherwise null.'
                                                    type: string
                                                    nullable: true
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /live-teams:
        get:
            operationId: getLiveTeams
            summary: List sports teams
            description: |
                **Credits:** 1 per page.

                Find sports teams by league or name. Results are limited to leagues available to your account. Use the returned IDs to filter events.
            tags:
                - Live TV, Sports & Events
            parameters:
                - name: league_id
                  in: query
                  description: A league ID from /live-leagues. Do not combine with league_ids when both filters are offered.
                  schema:
                      type: integer
                - name: search
                  in: query
                  description: Match text anywhere in the name, ignoring capitalization. At least 2 characters.
                  schema:
                      type: string
                - name: page
                  in: query
                  schema:
                      type: integer
                      default: 1
                - name: limit
                  in: query
                  description: Results per page. Must be 1–250; values above 250 return 400. Values above your plan cap are reduced to 25 free / 100 Startup / 250 Business or Enterprise.
                  schema:
                      type: integer
                      default: 100
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const teams = unwrap(await client.live.getTeams({ search: 'Boston', page: 1, limit: 20 }));
                      console.log(teams);
                - lang: Shell
                  source: |
                      curl -i -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-teams/?search=lakers'
            responses:
                '200':
                    description: 'A page of teams with IDs, names, and available logos. Access is automatic for supported direct-account plans. A team may have separate records across competitions or data providers; do not merge records solely by name. Names, abbreviations, and logos may be incomplete.'
                    content:
                        application/json:
                            examples:
                                oneTeam:
                                    summary: Completed team search
                                    value:
                                        teams:
                                            - id: 90002
                                              league_id: 90001
                                              name: Example Hawks
                                              short_name: Hawks
                                              abbreviation: EXH
                                              city: null
                                              nickname: Hawks
                                              logo_url: null
                                        page: 1
                                        total_pages: 1
                                        total_results: 1
                            schema:
                                type: object
                                additionalProperties: false
                                required: [teams, total_results, page, total_pages]
                                properties:
                                    total_results:
                                        type: integer
                                    page:
                                        type: integer
                                    total_pages:
                                        type: integer
                                    teams:
                                        type: array
                                        items:
                                            type: object
                                            additionalProperties: false
                                            required: [id, league_id, name, short_name, abbreviation, city, nickname, logo_url]
                                            properties:
                                                id:
                                                    type: integer
                                                league_id:
                                                    type: integer
                                                    nullable: true
                                                name:
                                                    type: string
                                                short_name:
                                                    type: string
                                                    nullable: true
                                                abbreviation:
                                                    type: string
                                                    nullable: true
                                                city:
                                                    type: string
                                                    nullable: true
                                                nickname:
                                                    type: string
                                                    nullable: true
                                                logo_url:
                                                    description: 'Team logo URL, or null when no logo is available.'
                                                    type: string
                                                    nullable: true
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '429':
                    $ref: '#/components/responses/TooManyRequests'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /live-schedule:
        get:
            operationId: getLiveSchedule
            summary: Download events and where to watch them
            x-badges:
                - name: Business+
                  color: blue
                  position: after
            description: |
                **Credits:** 10 per successful page, including repeated and empty pages.

                Download events and viewing options for one country and up to seven days. Pages remain unchanged throughout the download. Fetch every page before updating your saved event collection.
            tags:
                - Live TV, Sports & Events
            parameters:
                - name: continuation
                  in: query
                  description: 'Copy next_cursor from the previous page and send only continuation and your API key. Results stay unchanged across pages even if events are updated. Stop when next_cursor is null and finish within 10 minutes. If the download expires or access changes, restart and keep previously saved data until the replacement completes.'
                  schema:
                      type: string
                      maxLength: 512
                - name: league_id
                  in: query
                  description: A league ID from /live-leagues. Do not combine with league_ids when both filters are offered.
                  schema:
                      type: integer
                      minimum: 1
                - name: league_ids
                  in: query
                  description: 'Up to 100 comma-separated IDs from /live-leagues. Omit both league filters for all available leagues. Do not combine with league_id.'
                  schema:
                      type: string
                - name: region
                  in: query
                  description: Two-letter country code for viewing availability, such as US. Defaults to US. Must be available to your account.
                  schema:
                      type: string
                      default: US
                - name: date_from
                  in: query
                  description: Start time for the download. ISO 8601 date or date/time with timezone. Defaults to now.
                  schema:
                      type: string
                - name: date_to
                  in: query
                  description: End time for the download, excluded from the results. Defaults to 7 days after date_from. Longer ranges are rejected.
                  schema:
                      type: string
                - name: dma
                  in: query
                  description: Optional three-digit US TV market code (Nielsen DMA), such as 803 for Los Angeles. Requires Business or Enterprise and location filtering enabled for the requested events. US requests only.
                  schema:
                      type: string
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      // Requires Business or Enterprise; 10 credits per page.
                      const dateFrom = new Date();
                      const dateTo = new Date(dateFrom.getTime() + 24 * 60 * 60 * 1000);
                      const page = unwrap(await client.live.getSchedule({
                        region: 'US', dateFrom: dateFrom.toISOString(), dateTo: dateTo.toISOString()
                      }));
                      console.log(page.events);
                      // Each additional page also costs 10 credits; request it explicitly when needed:
                      // if (page.next_cursor) await client.live.getSchedule({ continuation: page.next_cursor });
                      // Finish within 10 minutes and download all pages before replacing saved events.
                - lang: Shell
                  source: |
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-schedule/?region=US&date_from=2026-09-07&date_to=2026-09-14'
                      # Follow the returned next_cursor with authentication and no new filters.
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/live-schedule/?continuation=NEXT_CURSOR'
            responses:
                '200':
                    description: |
                        A page of up to 250 events and 1 MiB, including events with unknown viewing options. Counts describe this download, not every real event.

                        A full download can contain up to 10,000 events and 20 MiB. Larger downloads, or one event exceeding the page-size limit, return an error; try fewer leagues or a shorter date range. The account shares a limit of 16 saved downloads and 64 MiB across sports and TV and all API keys.
                    content:
                        application/json:
                            examples:
                                complete:
                                    summary: One-event download complete
                                    value:
                                        region: US
                                        league_ids: null
                                        market: null
                                        date_from: 2026-09-10T00:00:00Z
                                        date_to: 2026-09-10T02:00:00Z
                                        snapshot_id: 00000000-0000-4000-8000-000000000001
                                        cursor_expires_at: 2026-09-09T16:10:00Z
                                        page: 1
                                        total_pages: 1
                                        total_results: 1
                                        event_count: 1
                                        has_more: false
                                        next_cursor: null
                                        events:
                                            - id: 90007
                                              name: Example Bears at Example Hawks
                                              event_type: sport
                                              league:
                                                  id: 90001
                                                  name: Example League
                                                  sport: football
                                              home_team:
                                                  id: 90002
                                                  name: Example Hawks
                                                  logo_url: null
                                              away_team:
                                                  id: 90003
                                                  name: Example Bears
                                                  logo_url: null
                                              start_time: 2026-09-10T00:00:00Z
                                              status: scheduled
                                              last_seen_at: 2026-09-09T16:00:00Z
                                              venue: Example Stadium
                                              season: '2026'
                                              round: null
                                              broadcasts:
                                                  - network_id: 90005
                                                    network_name: Example Sports
                                                    channel_id: 90004
                                                    channel_name: Example Sports
                                                    start_time: 2026-09-10T00:00:00Z
                                                    region: US
                                                    dma: null
                                                    language: en
                                              sources_state: known_options
                                              sources:
                                                  - provider_id: 520
                                                    provider_name: DIRECTV Stream
                                                    provider_type: subscription
                                                    is_live_tv_bundle: true
                                                    network:
                                                        id: 90005
                                                        name: Example Sports
                                                    region: US
                                                    availability_scope: national
                                                    territory_team_id: null
                                                    location_restriction: location_rules_unknown
                                                    channel_package_options: []
                                                    last_seen_at: 2026-09-09T16:00:00Z
                                                    links:
                                                        - platform: web
                                                          type: channel
                                                          url: https://www.directv.com/stream/channel-lineup/
                                                          affiliate: false
                                                          requires_subscription: false
                                                    freshness: current
                                              event_destinations: []
                                firstPage:
                                    summary: 'Pagination walkthrough: first page'
                                    description: 'This teaching walkthrough uses one event per page to keep both pages readable. Actual pages hold up to 250 events or 1 MiB; page size is not configurable. The cursor is illustrative: use only the next_cursor returned by your own request.'
                                    value:
                                        region: US
                                        league_ids: null
                                        market: null
                                        date_from: 2026-09-10T00:00:00Z
                                        date_to: 2026-09-10T02:00:00Z
                                        snapshot_id: 00000000-0000-4000-8000-000000000003
                                        cursor_expires_at: 2026-09-09T16:10:00Z
                                        page: 1
                                        total_pages: 2
                                        total_results: 2
                                        event_count: 1
                                        has_more: true
                                        next_cursor: ILLUSTRATIVE_NEXT_CURSOR
                                        events:
                                            - id: 90007
                                              name: Example Bears at Example Hawks
                                              event_type: sport
                                              league:
                                                  id: 90001
                                                  name: Example League
                                                  sport: football
                                              home_team:
                                                  id: 90002
                                                  name: Example Hawks
                                                  logo_url: null
                                              away_team:
                                                  id: 90003
                                                  name: Example Bears
                                                  logo_url: null
                                              start_time: 2026-09-10T00:00:00Z
                                              status: scheduled
                                              last_seen_at: 2026-09-09T16:00:00Z
                                              venue: Example Stadium
                                              season: '2026'
                                              round: null
                                              broadcasts:
                                                  - network_id: 90005
                                                    network_name: Example Sports
                                                    channel_id: 90004
                                                    channel_name: Example Sports
                                                    start_time: 2026-09-10T00:00:00Z
                                                    region: US
                                                    dma: null
                                                    language: en
                                              sources_state: known_options
                                              sources:
                                                  - provider_id: 520
                                                    provider_name: DIRECTV Stream
                                                    provider_type: subscription
                                                    is_live_tv_bundle: true
                                                    network:
                                                        id: 90005
                                                        name: Example Sports
                                                    region: US
                                                    availability_scope: national
                                                    territory_team_id: null
                                                    location_restriction: location_rules_unknown
                                                    channel_package_options: []
                                                    last_seen_at: 2026-09-09T16:00:00Z
                                                    links:
                                                        - platform: web
                                                          type: channel
                                                          url: https://www.directv.com/stream/channel-lineup/
                                                          affiliate: false
                                                          requires_subscription: false
                                                    freshness: current
                                              event_destinations: []
                                lastPage:
                                    summary: 'Pagination walkthrough: last page, unknown viewing options'
                                    description: 'Continuation of the first-page walkthrough. Both pages share a snapshot ID and total_results of 2; their event_count values sum to 2. A null next_cursor ends the download. sources_state: unknown does not mean the event cannot be watched.'
                                    value:
                                        region: US
                                        league_ids: null
                                        market: null
                                        date_from: 2026-09-10T00:00:00Z
                                        date_to: 2026-09-10T02:00:00Z
                                        snapshot_id: 00000000-0000-4000-8000-000000000003
                                        cursor_expires_at: 2026-09-09T16:10:00Z
                                        page: 2
                                        total_pages: 2
                                        total_results: 2
                                        event_count: 1
                                        has_more: false
                                        next_cursor: null
                                        events:
                                            - id: 90010
                                              name: Example Awards
                                              event_type: awards
                                              league: null
                                              home_team: null
                                              away_team: null
                                              start_time: 2026-09-10T01:00:00Z
                                              status: scheduled
                                              last_seen_at: 2026-09-09T16:00:00Z
                                              venue: null
                                              season: '2026'
                                              round: null
                                              broadcasts: []
                                              sources_state: unknown
                                              sources: []
                                              event_destinations: []
                            schema:
                                type: object
                                required:
                                    - region
                                    - league_ids
                                    - market
                                    - date_from
                                    - date_to
                                    - snapshot_id
                                    - cursor_expires_at
                                    - page
                                    - total_pages
                                    - total_results
                                    - event_count
                                    - has_more
                                    - next_cursor
                                    - events
                                properties:
                                    region:
                                        type: string
                                    league_ids:
                                        type: array
                                        nullable: true
                                        items:
                                            type: integer
                                    market:
                                        type: object
                                        nullable: true
                                        properties:
                                            dma:
                                                type: string
                                                description: Three-digit US TV market code (Nielsen DMA), when known. Identifies a viewing area, not a country.
                                    date_from:
                                        type: string
                                        format: date-time
                                        description: Beginning of the available or requested range. A range may contain missing listings.
                                    date_to:
                                        type: string
                                        format: date-time
                                        description: End of the requested interval, excluded. Downloads use the requested range without shortening it; available data may contain gaps.
                                    snapshot_id:
                                        type: string
                                        format: uuid
                                        description: ID of this saved download. It stays the same across all pages; use it to check that pages belong together.
                                    cursor_expires_at:
                                        type: string
                                        format: date-time
                                        description: Deadline for fetching the remaining pages. Expiration of the page token does not expire the underlying event data.
                                    page:
                                        type: integer
                                        minimum: 1
                                    total_pages:
                                        type: integer
                                        minimum: 1
                                    total_results:
                                        type: integer
                                        minimum: 0
                                        description: Total matching records, across all pages.
                                    event_count:
                                        type: integer
                                        minimum: 0
                                        maximum: 250
                                        description: Number of events on this page.
                                    has_more:
                                        type: boolean
                                        description: True when another page remains in this download.
                                    next_cursor:
                                        type: string
                                        nullable: true
                                        description: Token for the next page. Send it as continuation with your API key and no other parameters. Null means the download is complete.
                                    events:
                                        type: array
                                        maxItems: 250
                                        items:
                                            $ref: '#/components/schemas/LivePublicEvent'
                '400':
                    description: Invalid dates, query window, cursor or conflicting filters.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '403':
                    description: Your account needs a supported plan or access to the requested data. The response explains the restriction.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '409':
                    description: Your access changed or this page token belongs to another endpoint. Start a new download.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '410':
                    description: This download expired or is unavailable to your account. Start a new download.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '413':
                    description: The result is too large. Select fewer channels or leagues, or a shorter time range.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '429':
                    description: Monthly credits, request-rate limits, or saved-download limits were reached.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '500':
                    $ref: '#/components/responses/InternalServerError'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /awards:
        get:
            operationId: getAwards
            summary: List awards
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful request.

                List award programs and their permanent IDs for use in award filters. Available to eligible Free, active demo, and paid direct accounts. Use `/awards/sample` to discover the fixed Free sample.
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const awards = unwrap(await client.awards.list());
                      console.log(awards); // Stable IDs and display names for the available awards.
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/awards/'"
            responses:
                '200':
                    description: 'A plain array of award programs, like the genres and networks directories. Programs may be presented by academies, guilds, publishers, or other organizations without televised ceremonies. No filters or pagination are accepted. Coverage and matching continue to expand; use the editions endpoint to discover available years. Responses are not stored by shared HTTP caches.'
                    headers:
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardDefinitionsResponse'
                            example:
                                - id: 1
                                  name: Academy Awards
                                - id: 2
                                  name: BAFTA Film Awards
                '400':
                    description: Invalid path, parameter or unsupported filter (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH).
                    headers: &a2
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

            parameters: []

    /awards/sample:
        get:
            operationId: getAwardsSample
            summary: Get Free awards sample
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful request.

                Discover the fixed 25 titles and 10 people whose award histories are available to all Free accounts and active demos. Eligible paid accounts can also retrieve the sample IDs.
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const sample = unwrap(await client.awards.getSample());
                      console.log(sample); // Fixed Free/demo title and person IDs, shared across API keys.
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/awards/sample/'"
            responses:
                '200':
                    description: 'The immutable sample shared across Free accounts and active demos. Creating keys or paginating cannot expand it. No filters or pagination are accepted. Responses are not stored by shared HTTP caches.'
                    headers:
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsSample'
                '400':
                    description: Invalid path, parameter or unsupported filter (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH).
                    headers: &a2
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

            parameters: []

    /title/{title_id}/awards:
        get:
            operationId: getTitleAwards
            summary: Get title awards and nominations
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful page, including IMDb/TMDB alias resolution.

                Get a movie or TV series' awards and nominations. Filter by award program, edition, category, or result. Free and active demo accounts can query the fixed sample; eligible paid plans get full available history.
            parameters:
                - $ref: '#/components/parameters/titleId'
                - name: award_id
                  in: query
                  description: Award ID from /awards.
                  required: false
                  schema:
                      type: integer
                      minimum: 1
                - name: result
                  in: query
                  description: 'Defaults to any, including winners and non-winning nominations. winner returns wins only; nominee returns non-winning nominations only.'
                  schema:
                      $ref: '#/components/schemas/AwardResultFilter'
                - name: edition_id
                  in: query
                  description: Stable edition ID from the editions directory.
                  schema:
                      type: integer
                      minimum: 1
                - name: category_id
                  in: query
                  description: Stable category ID from the categories directory.
                  schema:
                      type: integer
                      minimum: 1
                - name: page
                  in: query
                  description: 'Page number. Pages are individually consistent, but ingestion may change later pages; this is not a frozen download.'
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 10000
                      default: 1
                - name: limit
                  in: query
                  description: Records per page.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 100
                      default: 50
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/title/1643798/awards/?award_id=1'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';
                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });
                      const { data } = await client.title.getAwards(1643798, { awardId: 1 });
            responses:
                '200':
                    description: 'A page of verified film/series credits; episode-specific credits are not rolled up to the parent series. Winners appear first, then award/category display order, descending source year, and descending stable entry ID. Coverage and matching are ongoing. Source names remain for unmatched works and recipients, with null catalog IDs. Ordinary account quotas and request limits apply. Responses are not stored by shared HTTP caches.'
                    headers: &a1
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsPage'
                '400':
                    description: 'Invalid path, unsupported parameter/filter, or invalid pagination (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH). Access and validation failures cost zero credits.'
                    headers: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '404':
                    description: Catalog subject not found. Existing subjects with no known awards return 200 and an empty page.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /person/{person_id}/awards:
        get:
            operationId: getPersonAwards
            summary: Get person awards and nominations
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful page.

                Get a person's awards and nominations, including episode-specific credits. Filter by award program, edition, category, or result. Free and active demo accounts can query the fixed sample; eligible paid plans get full available history.
            parameters:
                - name: person_id
                  in: path
                  required: true
                  schema:
                      type: integer
                      example: 7165749
                  description: 'Public Watchmode person ID beginning with 7. IMDb and TMDB person IDs are not supported.'
                - name: award_id
                  in: query
                  description: Award ID from /awards.
                  required: false
                  schema:
                      type: integer
                      minimum: 1
                - name: result
                  in: query
                  description: 'Defaults to any, including winners and non-winning nominations. winner returns wins only; nominee returns non-winning nominations only.'
                  schema:
                      $ref: '#/components/schemas/AwardResultFilter'
                - name: edition_id
                  in: query
                  description: Stable edition ID from the editions directory.
                  schema:
                      type: integer
                      minimum: 1
                - name: category_id
                  in: query
                  description: Stable category ID from the categories directory.
                  schema:
                      type: integer
                      minimum: 1
                - name: page
                  in: query
                  description: 'Page number. Pages are individually consistent, but ingestion may change later pages; this is not a frozen download.'
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 10000
                      default: 1
                - name: limit
                  in: query
                  description: Records per page.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 100
                      default: 50
            x-codeSamples:
                - lang: Shell
                  source: |
                      curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/person/7165749/awards/?award_id=1'
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |
                      // npm install @watchmode/api-client
                      import { WatchmodeClient } from '@watchmode/api-client';
                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });
                      const { data } = await client.person.getAwards(7165749, { awardId: 1 });
            responses:
                '200':
                    description: 'A page of person credits, including episode-specific works with their source name, episode context, and null title_id. Winners appear first, then award display order, descending source year, and descending stable entry ID. Coverage and matching are ongoing. Source names remain for unmatched works and recipients, with null catalog IDs. Ordinary account quotas and request limits apply. Responses are not stored by shared HTTP caches.'
                    headers: &a1
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsPage'
                '400':
                    description: 'Invalid path, unsupported parameter/filter, or invalid pagination (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH). Access and validation failures cost zero credits.'
                    headers: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '404':
                    description: Catalog subject not found. Existing subjects with no known awards return 200 and an empty page.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /award/{award_id}/results:
        get:
            operationId: getAwardResults
            summary: List award results
            x-badges:
                - name: Free sample
                  color: grey
                  position: after
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful page.

                Browse an award program's winners and nominations without a title or person ID. Filter by edition, category, or result. Eligible paid accounts receive full available records; Free and active demo accounts receive records linked to the fixed sample.
            parameters:
                - name: award_id
                  in: path
                  required: true
                  description: Award ID from /awards.
                  schema:
                      $ref: '#/components/schemas/AwardId'
                - name: page
                  in: query
                  description: 'Page number. IDs are stable, but source corrections can change pages between requests.'
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 10000
                      default: 1
                - name: limit
                  in: query
                  description: Records per page.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 100
                      default: 50
                - name: edition_id
                  in: query
                  description: 'Edition ID from the award editions directory. Use ceremony_year to choose a verified presentation year. All supplied filters must match the same record; mismatched or unavailable edition/category IDs return an empty page.'
                  schema:
                      type: integer
                      minimum: 1
                - name: category_id
                  in: query
                  description: 'Category ID from the award categories directory. Must match the same record as edition_id and result.'
                  schema:
                      type: integer
                      minimum: 1
                - name: result
                  in: query
                  description: 'Defaults to any, including winners and non-winning nominations. winner returns wins only; nominee excludes winners. Must match the same record as the other filters.'
                  schema:
                      $ref: '#/components/schemas/AwardResultFilter'
            x-codeSamples:
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/award/1/results/?result=winner&limit=10'"
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const awardId = 1; // Use an ID from awards.list().
                      const page = unwrap(await client.awards.getResults(awardId, { result: 'winner', limit: 10 }));
                      console.log(page.results); // Free/demo results remain within the fixed awards sample.
            responses:
                '200':
                    description: 'Records ordered by wins first, newest source year, then descending record ID. Eligible paid accounts can browse all available active records, including unmatched source credits. Free/demo results must link to at least one fixed sample title or person from /awards/sample; this scope is applied before totals and pagination and cannot be widened by filters. Backfill and matching are ongoing; an empty page does not prove no award was given. Responses are not stored by shared HTTP caches.'
                    headers: &a1
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardResultsPage'
                '400':
                    description: Invalid path, parameter or unsupported filter (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH).
                    headers: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'Plan, demo or subscriber identity does not permit awards access.'
                    headers: *a1
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /award/{award_id}/editions:
        get:
            operationId: getAwardProgramEditions
            summary: List award editions
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful request.

                List an award program's annual editions, with stable IDs, names, and source year ranges. Available to eligible Free, active demo, and paid direct accounts.
            parameters:
                - name: award_id
                  in: path
                  required: true
                  description: Award ID from /awards.
                  schema:
                      $ref: '#/components/schemas/AwardId'
                - name: page
                  in: query
                  description: Page number.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 10000
                      default: 1
                - name: limit
                  in: query
                  description: Records per page.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 100
                      default: 50
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const awardId = 1; // Use an ID from awards.list().
                      const page = unwrap(await client.awards.getEditions(awardId, { page: 1, limit: 20 }));
                      console.log(page.editions);
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/award/1/editions/?limit=10'"
            responses:
                '200':
                    description: 'A page of available editions. year_basis distinguishes eligibility years, ceremony years, and source-specific labels. An edition does not imply complete categories or nominations. Responses are not stored by shared HTTP caches.'
                    headers: &a2
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardEditionsPage'
                '400':
                    description: Invalid path, parameter or unsupported filter (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH).
                    headers: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

    /award/{award_id}/categories:
        get:
            operationId: getAwardProgramCategories
            summary: List award categories
            tags:
                - Awards
            description: |
                **Credits:** 1 per successful request.

                List an award program's historical categories and stable IDs. Optionally filter by edition. Available to eligible Free, active demo, and paid direct accounts.
            parameters:
                - name: award_id
                  in: path
                  required: true
                  description: Award ID from /awards.
                  schema:
                      $ref: '#/components/schemas/AwardId'
                - name: page
                  in: query
                  description: Page number.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 10000
                      default: 1
                - name: limit
                  in: query
                  description: Records per page.
                  schema:
                      type: integer
                      minimum: 1
                      maximum: 100
                      default: 50
                - name: edition_id
                  in: query
                  description: Restrict to categories present in this edition.
                  schema:
                      type: integer
                      minimum: 1
            x-codeSamples:
                - lang: TypeScript
                  label: TypeScript SDK
                  source: |-
                      // npm install @watchmode/api-client
                      import { WatchmodeClient, unwrap } from '@watchmode/api-client';

                      const client = new WatchmodeClient({ apiKey: 'YOUR_API_KEY' });

                      const awardId = 1; // Use an ID from awards.list().
                      const page = unwrap(await client.awards.getCategories(awardId, { page: 1, limit: 20 }));
                      console.log(page.categories);
                - lang: Shell
                  source: "curl -H 'X-API-Key: YOUR_API_KEY' 'https://api.watchmode.com/v1/award/1/categories/?limit=10'"
            responses:
                '200':
                    description: 'A page of original historical categories. Renamed categories retain their historical identities. Responses are not stored by shared HTTP caches.'
                    headers: &a2
                        X-Watchmode-Request-Cost:
                            description: Credits charged for this response. Awards access/validation failures cost zero credits.
                            schema:
                                type: integer
                                minimum: 0
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardCategoriesResponse'
                '400':
                    description: Invalid path, parameter or unsupported filter (AWARDS_INVALID_QUERY / AWARDS_INVALID_PATH).
                    headers: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                '401':
                    $ref: '#/components/responses/Unauthorized'
                '403':
                    description: 'AWARDS_SAMPLE_ONLY: subject is outside the fixed Free/demo sample. AWARDS_PLAN_REQUIRED: plan is unsupported. AWARDS_DEMO_EXPIRED: demo expired. AWARDS_SUBSCRIBER_IDENTITY_REQUIRED: shared RapidAPI identity is unsupported.'
                    headers: *a2
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AwardsError'
                            example:
                                success: false
                                statusCode: 403
                                code: AWARDS_SAMPLE_ONLY
                                statusMessage: Free and demo accounts can access only the fixed awards sample. A paid plan is required for this subject.
                '429':
                    description: Account request/concurrency limit or monthly quota exceeded.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                '500':
                    description: Unable to retrieve awards; retry later.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Error'
                default:
                    $ref: '#/components/responses/UnexpectedError'

components:
    securitySchemes:
        apiKey:
            type: apiKey
            in: header
            name: X-API-Key
            description: Recommended authentication method. Send your Watchmode API key in the X-API-Key header.
        bearerAuth:
            type: http
            scheme: bearer
            description: 'Alternative header authentication using Authorization: Bearer YOUR_API_KEY.'
        apiKeyQuery:
            type: apiKey
            in: query
            name: apiKey
            description: Legacy query-parameter authentication. Supported for backwards compatibility; prefer X-API-Key for new integrations.

    parameters:
        titleId:
            name: title_id
            in: path
            required: true
            description: |
                Title identifier. Accepts:
                - Watchmode ID (e.g., `345534`) - 1 credit
                - IMDB ID (e.g., `tt0903747`) - 2 credits
                - TMDB format (e.g., `movie-278` or `tv-1396`) - 2 credits
            schema:
                type: string
                example: '3173903'

        page:
            name: page
            in: query
            description: Page number for pagination
            schema:
                type: integer
                minimum: 1
                default: 1

        changesLimit:
            name: limit
            in: query
            description: Results per page (1-250)
            schema:
                type: integer
                minimum: 1
                maximum: 250
                default: 250

        startDate:
            name: start_date
            in: query
            description: 'Get changes after this date using the documented Pacific-time (PST) convention. Format: YYYYMMDD or YYYYMMDDHHMMSS. Defaults to one day ago. For a daily window, pair an explicit start such as 20260907000000 with end_date=20260907235959.'
            schema:
                type: integer
                example: 20240101

        endDate:
            name: end_date
            in: query
            description: 'Get changes before this date using the documented Pacific-time (PST) convention. Format: YYYYMMDD or YYYYMMDDHHMMSS. Defaults to the current date. A date-only end stops at midnight; use an explicit timestamp such as 20260907235959 to include the full day.'
            schema:
                type: integer
                example: 20240131

        titleTypes:
            name: types
            in: query
            description: |
                Filter by title type. Comma-separated.
                Valid types: `movie`, `tv_series`, `tv_movie`, `tv_special`, `tv_miniseries`, `short_film`
            schema:
                type: string
                example: 'movie,tv_series'

    responses:
        Unauthorized:
            description: Invalid or missing API key
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'
                    examples:
                        catalogAuthentication:
                            summary: Catalog authentication failure (including awards)
                            value:
                                success: false
                                errorMessage: Please enter a valid API key.
                        structuredAuthentication:
                            summary: Structured authentication failure
                            value:
                                success: false
                                statusCode: 401
                                statusMessage: Unauthorized

        BadRequest:
            description: Invalid request parameters
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'
                    example:
                        success: false
                        statusCode: 400
                        statusMessage: 'Missing required parameter: search_field'

        NotFound:
            description: Resource not found
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'
                    example:
                        success: false
                        statusCode: 404
                        statusMessage: 'Title not found.'

        PaidPlanRequired:
            description: Endpoint requires paid plan
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'
                    example:
                        success: false
                        statusCode: 401
                        statusMessage: 'The changes endpoint is only available with paid plans.'

        TooManyRequests:
            description: Account quota, concurrency or request rate limit exceeded.
            headers:
                Retry-After:
                    description: Seconds to wait before retrying, when supplied.
                    schema:
                        type: string
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'

        InternalServerError:
            description: The request could not be completed.
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'

        UnexpectedError:
            description: Other API errors use the JSON error format. A proxy or gateway can instead return plain text or HTML; check the HTTP status and response body.
            content:
                application/json:
                    schema:
                        $ref: '#/components/schemas/Error'
                text/plain:
                    schema:
                        type: string
                text/html:
                    schema:
                        type: string

    schemas:
        LivePublicGuideChannels:
            type: object
            additionalProperties: false
            required:
                - region
                - channels
                - total_results
            properties:
                region:
                    type: string
                    enum:
                        - US
                total_results:
                    type: integer
                    description: Total matching records, across all pages.
                channels:
                    type: array
                    items:
                        type: object
                        additionalProperties: false
                        required:
                            - channel_id
                            - name
                            - network_id
                            - timezone
                            - dma
                            - channel_type
                            - region
                            - date_from
                            - date_to
                            - upcoming_schedule
                        properties:
                            upcoming_schedule:
                                description: 'Summary of the next 48 hours using the same listing filters as /live-airings. Counts, coverage, dates, and the latest observation describe stored listings; they do not confirm that the schedule is current. Use /live-airings coverage for other windows.'
                                type: object
                                additionalProperties: false
                                required: [date_from, date_to, listing_count, coverage_status, last_seen_at]
                                properties:
                                    date_from:
                                        type: string
                                        format: date-time
                                    date_to:
                                        type: string
                                        format: date-time
                                    listing_count:
                                        description: "Matching stored listings in this exact window. Zero means none were found, even when the channel's historical date range spans the window."
                                        type: integer
                                        minimum: 0
                                    coverage_status:
                                        type: string
                                        enum: [continuous, partial, unavailable]
                                        description: Coverage of this exact 48-hour window, using the same rules as /live-airings.
                                    last_seen_at:
                                        type: string
                                        format: date-time
                                        nullable: true
                                        description: Most recent observation of a listing in this window. Null when no listings match.
                            channel_id:
                                type: integer
                                description: 'ID of a specific TV channel or local station. Confirmed duplicates share an ID across guide listings, event broadcasts, and channel/package options. Uncertain local-station and East/West variants retain separate IDs. Use with channel_ids on guide requests.'
                            name:
                                type: string
                                nullable: true
                            network_id:
                                type: integer
                                nullable: true
                                description: ID of the TV network brand. Multiple channels or local stations can belong to one network.
                            timezone:
                                type: string
                                nullable: true
                                description: IANA timezone for this channel, such as America/New_York, when known. Response timestamps use UTC.
                            dma:
                                type: string
                                nullable: true
                                description: Three-digit US TV market code (Nielsen DMA), when known. Identifies a viewing area, not a country.
                            channel_type:
                                type: string
                                nullable: true
                                description: Recorded channel category. May be missing; use name, timezone, and location to distinguish channel versions.
                            region:
                                type: string
                                enum:
                                    - US
                            date_from:
                                type: string
                                format: date-time
                                description: Beginning of the available or requested range. A range may contain missing listings.
                            date_to:
                                type: string
                                format: date-time
                                description: End of the available or requested range, excluded from the interval. A range may contain missing listings.
        LivePublicGuideWatchLink:
            type: object
            additionalProperties: false
            required:
                - platform
                - type
                - url
                - affiliate
                - provider_id
                - requires_subscription
                - refresh_after
            properties:
                platform:
                    type: string
                    enum:
                        - web
                        - ios
                        - android
                type:
                    type: string
                    enum:
                        - channel
                        - service
                    description: channel opens a channel page or live channel; service opens a provider page. Regional broadcast service links may open a guide, station selector or sign-in page. The service selects stations using the viewer’s location/account; these links do not identify a specific affiliate or select the listed program.
                url:
                    type: string
                    format: uri
                    description: URL to open. Mobile URLs can be HTTPS app links or native app schemes. Some college conference mobile links open the same broadcast in Hudl rather than the conference's branded app. Network service links may open a TV-provider app, such as YouTube TV, rather than the network's own app. These are navigation destinations; location, login, subscription and rights may still restrict viewing.
                affiliate:
                    type: boolean
                    description: Whether this URL is known to contain an affiliate referral.
                refresh_after:
                    type: string
                    format: date-time
                    description: Fetch fresh links before reusing this destination at or after this time, including from a saved download. This deadline is always present on guide links. It does not represent provider URL expiration or a promise of playback. Start a new guide download to refresh saved links.
                provider_id:
                    type: integer
                    nullable: true
                requires_subscription:
                    type: boolean
                    nullable: true
                    description: Known subscription requirement for this URL. False can describe a public information page and does not establish free playback. Null means unknown; this does not verify the viewer has access.
        LivePublicGuideAiring:
            type: object
            additionalProperties: false
            required:
                - id
                - channel_id
                - program_id
                - name
                - program_type
                - start_time
                - end_time
                - is_live_broadcast
                - is_new
                - is_repeat
                - last_seen_at
                - watch_links
            properties:
                watch_links:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicGuideWatchLink'
                    description: One URL per entry for a channel or provider page, including on upcoming listings. Channel links open what is on now and do not select a future program. Multiple entries can share a platform and provider. Select by platform and type, and refresh before refresh_after, which may precede the listing start. Provider and subscription details may be unknown. Empty means no eligible destination is known.
                id:
                    type: integer
                channel_id:
                    type: integer
                    description: ID of this specific TV channel or local station. Use it with channel_ids on the guide endpoints.
                program_id:
                    type: integer
                    description: ID of the guide program. This is separate from Watchmode movie and TV title IDs.
                name:
                    type: string
                program_type:
                    type: string
                    description: Recorded program category, such as show or movie.
                start_time:
                    type: string
                    format: date-time
                end_time:
                    type: string
                    format: date-time
                    nullable: true
                    description: Scheduled end time. Null means unknown; do not assume the program is currently airing.
                is_live_broadcast:
                    type: boolean
                    description: Whether the program is a live broadcast. This does not mean it is airing at the time of your request.
                is_new:
                    type: boolean
                    nullable: true
                    description: Whether this showing is marked new; null means unknown.
                is_repeat:
                    type: boolean
                    nullable: true
                    description: Whether this showing is marked as a repeat; null means unknown.
                last_seen_at:
                    type: string
                    format: date-time
                    description: When Watchmode last saw this record in its data source. This does not guarantee it is still correct.
        LivePublicGuidePage:
            type: object
            additionalProperties: false
            required:
                - region
                - channel_ids
                - date_from
                - date_to
                - coverage
                - safe_to_replace
                - snapshot_id
                - cursor_expires_at
                - page
                - total_pages
                - total_results
                - airing_count
                - has_more
                - next_cursor
                - airings
            properties:
                region:
                    type: string
                    enum:
                        - US
                channel_ids:
                    type: array
                    items:
                        type: integer
                    description: Channel IDs. Returned lists can contain more than 30 IDs; the 30-ID limit applies only to explicit request filters.
                date_from:
                    type: string
                    format: date-time
                    description: Beginning of the available or requested range. A range may contain missing listings.
                date_to:
                    type: string
                    format: date-time
                    description: End of the available or requested range, excluded from the interval. A range may contain missing listings.
                safe_to_replace:
                    type: boolean
                    enum:
                        - false
                    description: 'Whether these results can safely replace your entire saved guide for this request. Currently false even after the final page: update or add returned listings, but do not delete saved listings solely because they are absent from this download.'
                snapshot_id:
                    type: string
                    format: uuid
                    description: ID of this saved download. It stays the same across all pages; use it to check that pages belong together.
                cursor_expires_at:
                    type: string
                    format: date-time
                    description: Deadline for fetching the remaining pages. Expiration of the page token does not expire the underlying listings.
                page:
                    type: integer
                    minimum: 1
                total_pages:
                    type: integer
                    minimum: 1
                total_results:
                    type: integer
                    minimum: 0
                    description: Total matching records, across all pages.
                airing_count:
                    type: integer
                    minimum: 0
                    maximum: 500
                    description: Number of TV listings on this page.
                has_more:
                    type: boolean
                    description: True when another page remains in this download.
                next_cursor:
                    type: string
                    nullable: true
                    description: Token for the next page. Send it as continuation with your API key and no other parameters. Null means the download is complete.
                airings:
                    type: array
                    maxItems: 500
                    items:
                        $ref: '#/components/schemas/LivePublicGuideAiring'
                    description: 'Scheduled showings of programs, which can air more than once. Includes listings overlapping the requested window. If end_time is unknown, a listing is returned only when it starts within the window and is not confirmed to be airing now. On a linear channel, the newest observation wins for duplicate start times.'
                coverage:
                    type: array
                    items:
                        type: object
                        additionalProperties: false
                        required:
                            - channel_id
                            - status
                            - last_seen_at
                            - gaps
                        properties:
                            channel_id:
                                type: integer
                                description: ID of this specific TV channel or local station. Use it with channel_ids on the guide endpoints.
                            status:
                                type: string
                                enum:
                                    - continuous
                                    - partial
                                    - unavailable
                                description: continuous means observed listings cover the requested time without known gaps, overlaps, unknown end times, or stale records. partial means at least one issue exists. unavailable means no listings were found. Even continuous does not verify a complete guide update.
                            last_seen_at:
                                type: string
                                format: date-time
                                nullable: true
                                description: When Watchmode last saw this record in its data source. This does not guarantee it is still correct.
                            gaps:
                                type: array
                                items:
                                    type: object
                                    required:
                                        - from
                                        - to
                                    properties:
                                        from:
                                            type: string
                                            format: date-time
                                        to:
                                            type: string
                                            format: date-time
                                description: Time periods with no known listing. A gap does not prove the channel was off air.
                    description: "Each channel's coverage status, last observation, and missing periods. Available date ranges may contain gaps. Recent observations can still have gaps or overlaps; freshness does not prove completeness. A complete guide update has not been verified."
        LivePublicLink:
            type: object
            additionalProperties: false
            required:
                - platform
                - type
                - url
                - affiliate
                - requires_subscription
            properties:
                platform:
                    type: string
                    enum:
                        - web
                        - ios
                        - android
                type:
                    type: string
                    enum:
                        - event
                        - channel
                        - sports
                        - service
                        - signup
                        - player
                    description: 'Destination intent: a specific event, TV channel, sports directory/game finder, service homepage, signup page, or player. A channel link for an upcoming event may show current channel content instead of that event. This does not certify playback or subscription access.'
                url:
                    type: string
                    format: uri
                    description: URL to open. Mobile URLs can be HTTPS app links, native app schemes or Android intent URLs. Open intent URLs from a user-tapped link in a supporting browser or parse them with Intent.parseUri in a native Android client. Keep the web link as fallback.
                affiliate:
                    type: boolean
                    description: 'True for a known affiliate referral. A separate non-affiliate URL is not currently provided.'
                requires_subscription:
                    type: boolean
                    nullable: true
                    description: 'Known subscription requirement for this URL: true means required, false means the destination can open without one, and null means unknown. A public channel, lineup, service, or signup page does not establish free event playback or verify viewer eligibility. A suitable label is "Open channel information; watching may require a subscription." Requirements are not copied between web and app destinations.'
                refresh_after:
                    type: string
                    format: date-time
                    description: Fetch fresh links before reusing this destination at or after this time, including from a saved download. This is a refresh deadline, not a provider URL expiration or a promise of playback. Omitted when no separate deadline is supplied.
        LivePublicSource:
            description: 'A recorded viewing option, also used in event lists and downloads. Equivalent options may be combined, while recorded channel/package pairs and market restrictions remain distinct. Check subscription and location requirements before presenting availability.'
            type: object
            additionalProperties: false
            required:
                - provider_id
                - provider_name
                - provider_type
                - is_live_tv_bundle
                - network
                - region
                - availability_scope
                - territory_team_id
                - location_restriction
                - channel_package_options
                - last_seen_at
                - links
                - freshness
            properties:
                provider_id:
                    type: integer
                    description: ID of the viewing provider. Use /sources to look up catalog providers; a provider may be a streaming service or TV channel app.
                provider_name:
                    type: string
                    nullable: true
                provider_type:
                    type: string
                    enum:
                        - free
                        - purchase
                        - subscription
                        - tv_everywhere
                    nullable: true
                    description: General provider category from the catalog, which may include a free tier or legacy classification. It is not the price of this viewing option. Use links[].requires_subscription for each destination; a provider categorized as free can still require a paid subscription for an event. tv_everywhere may require a TV-provider login.
                is_live_tv_bundle:
                    type: boolean
                    description: Whether this provider is an internet-delivered bundle of live TV channels, such as Fubo or Sling TV.
                network:
                    type: object
                    additionalProperties: false
                    required:
                        - id
                        - name
                    properties:
                        id:
                            type: integer
                        name:
                            type: string
                            nullable: true
                    nullable: true
                    description: The TV network associated with this viewing option, when known.
                region:
                    type: string
                    description: Two-letter viewer country code, such as US. This is not a local TV market.
                availability_scope:
                    type: string
                    enum:
                        - national
                        - local
                    description: Whether this option applies nationally or locally within region. National does not remove location restrictions; check location_restriction as well.
                location_restriction:
                    type: string
                    enum:
                        - in_market_only
                        - out_of_market_only
                        - location_rules_unknown
                    description: Known location restriction. in_market_only applies within the local area; out_of_market_only applies outside it; location_rules_unknown means the rules are unknown.
                territory_team_id:
                    type: integer
                    nullable: true
                    description: ID from /live-teams of the team whose local viewing area is relevant, when known. This identifies the team, not the geographic boundaries. A team's viewing area need not match a single TV market (DMA).
                channel_package_options:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicChannelPackageOption'
                    description: 'Known channel/package pairs. Keep the recorded pairs; do not combine unrelated entries. A network match does not identify a particular local station or East/West channel. Links are not necessarily specific to each listed package. Missing package/channel details are unknown, and this is not a complete service lineup. An empty array does not establish that no subscription is needed.'
                last_seen_at:
                    type: string
                    format: date-time
                    description: When this viewing option was last observed. This does not certify playback.
                links:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicLink'
                    description: 'Available destinations by platform and type; use a web fallback when available. An empty array means no suitable URL is known. Links may open a service homepage, channel page, event page, sports directory/game finder, player, or signup page; their presence does not guarantee playback.'
                freshness:
                    type: string
                    enum:
                        - current
                        - stale
                    description: Freshness of the recorded viewing option when the response or download was generated. Current does not mean the event is live or that the viewer can play it. Stale historical options may still describe who carried a completed event.
        LivePublicChannelPackageOption:
            type: object
            additionalProperties: false
            required:
                - package
                - channel
                - dma
                - postal_code
                - package_zip_restriction
            properties:
                package:
                    type: object
                    nullable: true
                    additionalProperties: false
                    required:
                        - id
                        - name
                        - type
                    properties:
                        id:
                            type: integer
                        name:
                            type: string
                        type:
                            type: string
                            enum:
                                - base
                                - addon
                                - sports
                                - unknown
                    description: Subscription bundle or add-on associated with this option, if known.
                channel:
                    type: object
                    nullable: true
                    additionalProperties: false
                    required:
                        - id
                        - name
                    properties:
                        id:
                            type: integer
                        name:
                            type: string
                    description: The specific channel or station associated with this package, if known.
                dma:
                    type: string
                    nullable: true
                    description: Three-digit US TV market code (Nielsen DMA), when known. Identifies a viewing area, not a country.
                postal_code:
                    type: string
                    nullable: true
                    description: Recorded ZIP or postal code, when known. This is not confirmation that ZIP-code lookup is supported.
                package_zip_restriction:
                    type: string
                    nullable: true
                    description: Recorded ZIP-code restriction text for this package. ZIP-code filtering is not supported yet.
        LivePublicBroadcast:
            description: 'A recorded TV broadcast identifies coverage; it does not prove a matching streaming-service option or establish subscription access.'
            type: object
            additionalProperties: false
            required:
                - network_id
                - network_name
                - channel_id
                - channel_name
                - start_time
                - region
                - dma
                - language
            properties:
                network_id:
                    type: integer
                    nullable: true
                    description: ID of the TV network brand in the Live dataset, separate from catalog /networks IDs. Multiple channels or local stations can belong to one network.
                network_name:
                    type: string
                    nullable: true
                    description: TV network brand, such as ABC or ESPN.
                channel_id:
                    type: integer
                    nullable: true
                    description: ID of this specific TV channel or local station. Use it with channel_ids on the guide endpoints.
                channel_name:
                    type: string
                    nullable: true
                    description: Name of the specific TV channel or local station, when known.
                start_time:
                    type: string
                    format: date-time
                    description: Start of the broadcast coverage block; it can precede the event start time.
                region:
                    type: string
                    nullable: true
                dma:
                    type: string
                    nullable: true
                    description: Three-digit US TV market code (Nielsen DMA), when known. Identifies a viewing area, not a country.
                language:
                    type: string
                    nullable: true
        LivePublicEventDestination:
            type: object
            description: Provider destination for a specific event, with a web link and mobile deep links when available.
            additionalProperties: false
            required:
                - provider_id
                - region
                - provider_content_id
                - title
                - broadcast_label
                - last_seen_at
                - links
            properties:
                provider_id:
                    type: integer
                region:
                    type: string
                provider_content_id:
                    type: string
                    description: Provider identity for this event or alternate broadcast. Use it with provider_id and region to distinguish destinations.
                title:
                    type: string
                    description: Provider's full broadcast title; alternate broadcasts remain separate.
                broadcast_label:
                    type: string
                    nullable: true
                last_seen_at:
                    type: string
                    format: date-time
                links:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicLink'
                    description: At least one known destination. Multiple entries can share a platform; select by platform and type. When no eligible links remain, the event-destination entry is omitted.
                    minItems: 1
        LivePublicEvent:
            type: object
            additionalProperties: false
            required:
                - id
                - name
                - event_type
                - league
                - home_team
                - away_team
                - start_time
                - status
                - last_seen_at
                - venue
                - season
                - round
                - broadcasts
                - sources_state
            properties:
                id:
                    type: integer
                name:
                    type: string
                event_type:
                    type: string
                    enum:
                        - sport
                        - awards
                league:
                    type: object
                    additionalProperties: false
                    required:
                        - id
                        - name
                        - sport
                    properties:
                        id:
                            type: integer
                        name:
                            type: string
                            nullable: true
                        sport:
                            type: string
                            nullable: true
                    nullable: true
                home_team:
                    type: object
                    additionalProperties: false
                    required:
                        - id
                        - name
                        - logo_url
                    properties:
                        id:
                            type: integer
                        name:
                            type: string
                            nullable: true
                        logo_url:
                            type: string
                            nullable: true
                    nullable: true
                away_team:
                    type: object
                    additionalProperties: false
                    required:
                        - id
                        - name
                        - logo_url
                    properties:
                        id:
                            type: integer
                        name:
                            type: string
                            nullable: true
                        logo_url:
                            type: string
                            nullable: true
                    nullable: true
                start_time:
                    type: string
                    format: date-time
                status:
                    description: Latest stored status. Updates are periodic and may lag; some statuses are estimated by maintenance. This API is not a real-time score feed. Neither a start time nor an old live status proves an event is airing now.
                    type: string
                    enum:
                        - scheduled
                        - live
                        - final
                        - postponed
                        - cancelled
                        - unknown
                last_seen_at:
                    type: string
                    format: date-time
                    nullable: true
                    description: When this event record was last observed by ingestion. This is not independent verification of its status.
                venue:
                    type: string
                    nullable: true
                season:
                    type: string
                    nullable: true
                    description: Human-readable season when known. Known opaque provider season identifiers are returned as null.
                round:
                    type: string
                    nullable: true
                broadcasts:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicBroadcast'
                sources_state:
                    type: string
                    enum:
                        - not_requested
                        - not_released
                        - known_options
                        - unknown
                        - stale
                    description: 'not_requested: options were not requested; not_released: options are unavailable for this account or event range; known_options: at least one current option was found; unknown: no options are known; stale: all returned options are outdated. This field summarizes sources only; event_destinations can still contain links when this state is unknown.'
                event_destinations:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicEventDestination'
                    description: Included with sources when viewing options are requested; otherwise omitted. Provider destinations for a specific event, independent of the viewing options in sources. Read both collections. Each destination supplies links with platform, type, url, affiliate, nullable requires_subscription, and an optional refresh_after deadline. Subscription and location requirements apply at the provider.
                sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicSource'
                    description: Included when viewing options are requested, even if empty; otherwise omitted. A service homepage or signup link does not establish playback access.
        LivePublicEventsResponse:
            type: object
            additionalProperties: false
            required:
                - events
                - region
                - page
                - total_pages
                - total_results
                - date_range_limited
                - effective_date_from
                - effective_date_to
                - latest_event_time
            properties:
                events:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicEvent'
                region:
                    type: string
                page:
                    type: integer
                total_pages:
                    type: integer
                total_results:
                    type: integer
                    description: Total matching records, across all pages.
                date_range_limited:
                    type: boolean
                    description: True when your plan shortened the requested future date range.
                effective_date_from:
                    type: string
                    format: date-time
                    description: Start time used for the query. Your account access may restrict the returned data further.
                effective_date_to:
                    type: string
                    format: date-time
                    description: End time used for the query, after any plan limit. Your account access may restrict the returned data further.
                latest_event_time:
                    type: string
                    format: date-time
                    nullable: true
                    description: Latest known event start time within your account access and selected leagues. Not a promise of continuous coverage or a refresh time.
        LivePublicSourcesResponse:
            type: object
            additionalProperties: false
            required:
                - id
                - name
                - event_type
                - start_time
                - status
                - regions
                - market
                - sources
                - event_destinations
                - sources_state
                - coverage
            properties:
                id:
                    type: integer
                name:
                    type: string
                event_type:
                    type: string
                    enum:
                        - sport
                        - awards
                start_time:
                    type: string
                    format: date-time
                status:
                    type: string
                    enum:
                        - scheduled
                        - live
                        - final
                        - postponed
                        - cancelled
                        - unknown
                regions:
                    type: array
                    items:
                        type: string
                market:
                    type: object
                    additionalProperties: false
                    required:
                        - dma
                    properties:
                        dma:
                            type: string
                            description: Three-digit US TV market code (Nielsen DMA), when known. Identifies a viewing area, not a country.
                    nullable: true
                event_destinations:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicEventDestination'
                    description: Provider destinations for a specific event, independent of the viewing options in sources. Read both collections. Each destination supplies links with platform, type, url, affiliate, nullable requires_subscription, and an optional refresh_after deadline. Subscription and location requirements apply at the provider.
                sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/LivePublicSource'
                    description: Where-to-watch options. A service homepage or signup link is not a verified player link.
                sources_state:
                    type: string
                    enum:
                        - not_requested
                        - not_released
                        - known_options
                        - unknown
                        - stale
                    description: 'not_requested: options were not requested; not_released: options are unavailable for this account or event range; known_options: at least one current option was found; unknown: no options are known; stale: all returned options are outdated. This field summarizes sources only; event_destinations can still contain links when this state is unknown.'
                coverage:
                    type: array
                    items:
                        type: object
                        additionalProperties: false
                        required:
                            - region
                            - state
                        properties:
                            region:
                                type: string
                            state:
                                type: string
                                enum:
                                    - not_requested
                                    - not_released
                                    - known_options
                                    - unknown
                                    - stale
                    description: Information about known availability and missing or outdated data for the requested countries or channels.
        Error:
            type: object
            description: >-
                JSON errors use either statusCode and statusMessage, or the legacy errorMessage field
                returned by catalog authentication and some request-limit failures. Always use the HTTP
                response status; statusCode is absent on legacy errors. Proxies may return non-JSON bodies.
            required:
                - success
            allOf:
                - anyOf:
                      - type: object
                        required: [statusCode, statusMessage]
                        properties:
                            statusCode:
                                type: integer
                            statusMessage:
                                type: string
                      - type: object
                        required: [errorMessage]
                        properties:
                            errorMessage:
                                type: string
            properties:
                success:
                    type: boolean
                    example: false
                    enum:
                        - false
                statusCode:
                    type: integer
                    example: 400
                statusMessage:
                    type: string
                    example: Invalid request parameters
                errorMessage:
                    type: string
                    description: Message returned by legacy catalog authentication and request-limit errors.
                    example: Please enter a valid API key.
                code:
                    type: string
                    description: Machine-readable error code when supplied. Handle unfamiliar codes as ordinary API errors.
                required_plan:
                    type: string
                    description: Minimum required plan when supplied by an access-denied response.

        StatusResponse:
            type: object
            properties:
                quota:
                    type: integer
                    description: Monthly API quota limit
                    example: 1000
                quotaUsed:
                    type: integer
                    description: API calls used this month
                    example: 150
            required:
                - quota
                - quotaUsed

        Source:
            type: object
            properties:
                id:
                    type: integer
                    description: Unique source ID
                    example: 203
                    nullable: true
                name:
                    type: string
                    description: Source name
                    example: Netflix
                    nullable: true
                host_source_id:
                    type: integer
                    nullable: true
                    description: The source ID of the platform carrying this offering. For example, Crunchyroll Premium (Via Amazon Prime) remains its own source but returns Amazon's source ID, `24`, here. Direct offerings return `null`.
                    example: 24
                host_source:
                    type: string
                    nullable: true
                    description: The name of the platform carrying this offering. For example, Crunchyroll Premium (Via Amazon Prime) returns `Amazon` here, while direct Crunchyroll Premium returns `null`.
                    example: Amazon
                type:
                    type: string
                    description: |
                        Source type:
                        - `sub` - Subscription service (Netflix, Hulu, etc.)
                        - `purchase` - Rental/purchase service (iTunes, Vudu, etc.)
                        - `free` - Free ad-supported service (Tubi, Pluto TV, etc.)
                        - `tve` - TV Channel App (cable login required)
                    enum:
                        - sub
                        - purchase
                        - free
                        - tve
                    example: sub
                    nullable: true
                logo_100px:
                    type: string
                    format: uri
                    description: URL to 100px logo
                    example: https://cdn.watchmode.com/logos/203_logo_100px.jpg
                    nullable: true
                ios_appstore_url:
                    type: string
                    format: uri
                    nullable: true
                    description: iOS App Store URL
                android_playstore_url:
                    type: string
                    format: uri
                    nullable: true
                    description: Google Play Store URL
                regions:
                    type: array
                    items:
                        type: string
                    description: Supported 2-letter country codes
                    example:
                        - US
                        - GB
                        - CA
                    nullable: true
                ios_scheme:
                    type: string
                    nullable: true
                    description: iOS app URL scheme, when available. This is app metadata, not a complete playback link.
                android_scheme:
                    type: string
                    nullable: true
                    description: Android app URL scheme, when available. This is app metadata, not a complete playback link.
            required:
                - id
                - name
                - host_source_id
                - host_source
                - logo_100px
                - ios_appstore_url
                - android_playstore_url
                - regions
                - ios_scheme
                - android_scheme

        Region:
            type: object
            properties:
                country:
                    type: string
                    description: 2-letter country code
                    example: US
                name:
                    type: string
                    description: Country name
                    example: USA
                flag:
                    type: string
                    format: uri
                    description: URL to flag image
                    example: https://cdn.watchmode.com/misc_images/icons/usFlag2.png
                data_tier:
                    type: integer
                    description: Data quality tier (1 = highest)
                    enum:
                        - 1
                        - 2
                    example: 1
                plan_enabled:
                    type: boolean
                    description: Whether region is enabled for your plan
                    example: true
            required:
                - country
                - name
                - flag
                - data_tier
                - plan_enabled

        Network:
            type: object
            properties:
                id:
                    type: integer
                    description: Watchmode network ID
                    example: 1
                name:
                    type: string
                    description: Network name
                    example: HBO
                origin_country:
                    type: string
                    description: 2-letter country code
                    example: US
                tmdb_id:
                    type: integer
                    description: TMDB network ID (0 if not available)
                    default: 0
                    example: 49
            required:
                - id
                - name
                - origin_country
                - tmdb_id

        Genre:
            type: object
            properties:
                id:
                    type: integer
                    description: Watchmode genre ID
                    example: 4
                name:
                    type: string
                    description: Genre name
                    example: Comedy
                tmdb_id:
                    type: integer
                    description: TMDB genre ID (0 if not available)
                    default: 0
                    example: 35
            required:
                - id
                - name
                - tmdb_id

        SearchResponse:
            type: object
            properties:
                title_results:
                    type: array
                    items:
                        $ref: '#/components/schemas/TitleSearchResult'
                people_results:
                    type: array
                    items:
                        $ref: '#/components/schemas/PersonSearchResult'
            required:
                - title_results
                - people_results

        TitleSearchResult:
            type: object
            properties:
                id:
                    type: integer
                    description: Watchmode title ID
                    example: 3173903
                name:
                    type: string
                    description: Title name
                    example: Breaking Bad
                type:
                    type: string
                    enum:
                        - movie
                        - tv_series
                        - tv_special
                        - tv_miniseries
                        - short_film
                        - tv_movie
                    example: tv_series
                year:
                    type: integer
                    description: Release year
                    example: 2008
                    nullable: true
                imdb_id:
                    type: string
                    nullable: true
                    description: IMDB ID
                    example: tt0903747
                tmdb_id:
                    type: integer
                    nullable: true
                    description: TMDB ID
                    example: 1396
                tmdb_type:
                    type: string
                    nullable: true
                    enum:
                        - movie
                        - tv
                    description: TMDB type
                    example: tv
                resultType:
                    type: string
                    description: Legacy search-result discriminator supplied by the search service.
            required:
                - id
                - name
                - type
                - year
                - imdb_id
                - tmdb_id
                - tmdb_type
                - resultType

        PersonSearchResult:
            type: object
            properties:
                id:
                    type: integer
                    description: Watchmode person ID
                    example: 710125611
                name:
                    type: string
                    description: Person name
                    example: Bryan Cranston
                main_profession:
                    type: string
                    nullable: true
                    description: Primary profession
                    example: actor
                imdb_id:
                    type: string
                    nullable: true
                    description: IMDB person ID
                    example: nm0186505
                tmdb_id:
                    type: integer
                    nullable: true
                    description: TMDB person ID
                    example: 17419
                resultType:
                    type: string
                    description: Legacy search-result discriminator supplied by the search service.
            required:
                - id
                - name
                - resultType

        AutocompleteResponse:
            type: object
            properties:
                results:
                    type: array
                    items:
                        $ref: '#/components/schemas/AutocompleteResult'
            required:
                - results

        AutocompleteResult:
            type: object
            properties:
                name:
                    type: string
                    description: Title or person name
                    example: Breaking Bad
                relevance:
                    type: number
                    description: Relevance score
                    example: 445.23
                type:
                    type: string
                    description: Title type (for titles)
                    example: tv_series
                id:
                    type: integer
                    description: Watchmode ID
                    example: 3173903
                year:
                    type: integer
                    nullable: true
                    description: Release year (for titles)
                    example: 2008
                result_type:
                    type: string
                    enum:
                        - title
                        - person
                    description: Whether result is a title or person
                    example: title
                imdb_id:
                    type: string
                    nullable: true
                    example: tt0903747
                tmdb_id:
                    type: integer
                    nullable: true
                    example: 1396
                tmdb_type:
                    type: string
                    nullable: true
                    enum:
                        - movie
                        - tv
                    example: tv
                image_url:
                    type: string
                    format: uri
                    nullable: true
                    description: Poster (titles) or headshot (people). May point to a third-party host. Watchmode does not grant any license to the underlying image.
                    example: http://www.some-poster-site.com/image.jpg
            required:
                - name
                - relevance
                - type
                - id
                - result_type
                - imdb_id
                - tmdb_id
                - tmdb_type
                - image_url

        ListTitlesResponse:
            type: object
            properties:
                titles:
                    type: array
                    items:
                        $ref: '#/components/schemas/TitleListItem'
                page:
                    type: integer
                    description: Current page number
                    example: 1
                total_results:
                    type: integer
                    description: Total matching titles
                    example: 4592
                total_pages:
                    type: integer
                    description: Total pages available
                    example: 19
                access:
                    $ref: '#/components/schemas/AwardsAccess'
                sample_version:
                    type: string
                    description: Present only for Free/demo sample access.
                    example: 2026-10-12
            required:
                - titles
                - page
                - total_results
                - total_pages

        TitleListItem:
            type: object
            properties:
                id:
                    type: integer
                    example: 1337513
                title:
                    type: string
                    example: Secret in Their Eyes
                year:
                    type: integer
                    example: 2015
                imdb_id:
                    type: string
                    nullable: true
                    example: tt1741273
                tmdb_id:
                    type: integer
                    nullable: true
                    example: 290751
                tmdb_type:
                    type: string
                    nullable: true
                    enum:
                        - movie
                        - tv
                    example: movie
                type:
                    type: string
                    enum:
                        - movie
                        - tv_series
                        - tv_special
                        - tv_miniseries
                        - short_film
                        - tv_movie
                    example: movie
                popularity_percentile:
                    type: number
                    nullable: true
                    description: Popularity percentile (0-100) used by popularity sorting across the global catalog, with separate movie and show comparison groups. This is not region-specific audience size or critical reception. Equal underlying values can share a percentile.
                    example: 99.421
            required:
                - id
                - title
                - year
                - imdb_id
                - tmdb_id
                - tmdb_type
                - type
                - popularity_percentile

        TitleDetails:
            type: object
            properties:
                id:
                    type: integer
                    example: 3173903
                title:
                    type: string
                    example: Breaking Bad
                original_title:
                    type: string
                    nullable: true
                    example: Breaking Bad
                plot_overview:
                    type: string
                    nullable: true
                    description: Plot overview (AI-enhanced when available)
                    example: When Walter White, a New Mexico chemistry teacher...
                will_you_like_this:
                    type: string
                    nullable: true
                    description: AI-generated "Will you like this?" snippet
                review_summary:
                    type: string
                    nullable: true
                    description: AI-generated summary of reviews
                type:
                    type: string
                    enum:
                        - movie
                        - tv_series
                        - tv_special
                        - tv_miniseries
                        - short_film
                        - tv_movie
                    example: tv_series
                runtime_minutes:
                    type: integer
                    nullable: true
                    example: 45
                year:
                    type: integer
                    example: 2008
                end_year:
                    type: integer
                    nullable: true
                    description: For TV series, the year the show ended
                    example: 2013
                release_date:
                    type: string
                    format: date
                    nullable: true
                    example: 2008-01-20
                imdb_id:
                    type: string
                    nullable: true
                    example: tt0903747
                tmdb_id:
                    type: integer
                    nullable: true
                    example: 1396
                tmdb_type:
                    type: string
                    nullable: true
                    enum:
                        - movie
                        - tv
                    example: tv
                genres:
                    type: array
                    items:
                        type: integer
                    nullable: true
                    description: Array of genre IDs
                    example:
                        - 7
                genre_names:
                    type: array
                    items:
                        type: string
                    nullable: true
                    description: Array of genre names
                    example:
                        - Drama
                user_rating:
                    type: number
                    nullable: true
                    description: Watchmode audience score (0-10). This field does not specify a vote count or guarantee a minimum audience size. Null when no score is available.
                    example: 9.2
                critic_score:
                    type: integer
                    nullable: true
                    description: Critic score (0-100)
                    example: 85
                us_rating:
                    type: string
                    nullable: true
                    description: US content rating
                    example: TV-MA
                content_ratings:
                    type: object
                    additionalProperties:
                        type: string
                    description: Content ratings keyed by ISO 3166-1 alpha-2 country code
                    example:
                        AU: MA 15+
                        US: TV-MA
                poster:
                    type: string
                    format: uri
                    nullable: true
                    description: Poster image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                    example: http://www.some-poster-site.com/image.jpg
                posterMedium:
                    type: string
                    format: uri
                    nullable: true
                    description: Medium poster image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                    example: http://www.some-poster-site.com/image.jpg
                posterLarge:
                    type: string
                    format: uri
                    nullable: true
                    description: Large poster image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                    example: http://www.some-poster-site.com/image.jpg
                backdrop:
                    type: string
                    format: uri
                    nullable: true
                    description: Backdrop image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                    example: http://www.some-poster-site.com/image.jpg
                original_language:
                    type: string
                    nullable: true
                    description: ISO 639-1 language code
                    example: en
                similar_titles:
                    type: array
                    items:
                        type: integer
                    nullable: true
                    description: Array of similar title IDs
                    example:
                        - 330884
                        - 343611
                networks:
                    type: array
                    items:
                        type: integer
                    nullable: true
                    description: Network IDs (for TV)
                    example:
                        - 8
                network_names:
                    type: array
                    items:
                        type: string
                    nullable: true
                    description: Network names (for TV)
                    example:
                        - AMC
                relevance_percentile:
                    type: number
                    nullable: true
                    description: Relevance percentile (0-100)
                    example: 98.92
                popularity_percentile:
                    type: number
                    nullable: true
                    description: Popularity percentile (0-100) derived from popularity signals across the global catalog, with separate movie and show comparison groups. Movies include TV movies and short films; shows include series, miniseries and TV specials. This is not region-specific audience size or critical reception. Equal underlying values can share a percentile.
                    example: 99.99
                trailer:
                    type: string
                    format: uri
                    nullable: true
                    description: YouTube trailer URL
                    example: https://www.youtube.com/watch?v=5PSNL1qE6VY
                trailer_thumbnail:
                    type: string
                    format: uri
                    nullable: true
                    description: Trailer thumbnail URL
                    example: http://www.some-poster-site.com/image.jpg
                english_title:
                    type: string
                    description: English title (when language param is not EN)
                sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/TitleSource'
                    description: Streaming sources (when append_to_response=sources)
                seasons:
                    type: array
                    items:
                        $ref: '#/components/schemas/Season'
                    description: Seasons (when append_to_response=seasons)
                episodes:
                    type: array
                    items:
                        $ref: '#/components/schemas/Episode'
                    description: Episodes (when append_to_response=episodes)
                cast:
                    type: array
                    items:
                        $ref: '#/components/schemas/CastCrew'
                    description: Cast/crew (when append_to_response=cast-crew)
                awards:
                    $ref: '#/components/schemas/AwardsPage'
            required:
                - id
                - title
                - original_title
                - plot_overview
                - will_you_like_this
                - review_summary
                - type
                - runtime_minutes
                - year
                - end_year
                - release_date
                - imdb_id
                - tmdb_id
                - tmdb_type
                - genres
                - genre_names
                - user_rating
                - critic_score
                - us_rating
                - content_ratings
                - poster
                - posterMedium
                - posterLarge
                - backdrop
                - original_language
                - similar_titles
                - networks
                - network_names
                - relevance_percentile
                - popularity_percentile
                - trailer
                - trailer_thumbnail

        TitleSource:
            type: object
            description: |
                Streaming source availability for a title.

                **Plan-dependent fields:**
                - `ios_url` and `android_url`: For free plans, returns the string "Deeplinks available for paid plans only." instead of a URL
                - `tvos_url`, `android_tv_url`, `roku_url`: Included on every plan. Free plans return "TV links available for paid plans only." Paid plans receive the available link or null when unavailable; coverage varies by service, country, and title.
            properties:
                source_id:
                    type: integer
                    example: 203
                name:
                    type: string
                    example: Netflix
                type:
                    type: string
                    description: |
                        Availability type for this title on this source:
                        - `sub` - Available with subscription
                        - `rent` - Available for rental
                        - `buy` - Available for purchase
                        - `free` - Available for free (ad-supported)
                        - `tve` - Available with TV Channel App (cable login)
                    enum:
                        - sub
                        - rent
                        - buy
                        - free
                        - tve
                    example: sub
                region:
                    type: string
                    nullable: true
                    example: US
                ios_url:
                    type: string
                    nullable: true
                    description: |
                        iOS deep link URL. For free plans, returns "Deeplinks available for paid plans only."
                android_url:
                    type: string
                    nullable: true
                    description: |
                        Android deep link URL. For free plans, returns "Deeplinks available for paid plans only."
                web_url:
                    type: string
                    format: uri
                    nullable: true
                    description: Web URL to watch the title
                tvos_url:
                    type: string
                    nullable: true
                    description: |
                        Apple TV/tvOS link. For free plans, returns "TV links available for paid plans only." All paid plans receive the available link or null when unavailable.
                android_tv_url:
                    type: string
                    nullable: true
                    description: |
                        Android TV link or intent. For free plans, returns "TV links available for paid plans only." All paid plans receive the available link or null when unavailable.
                roku_url:
                    type: string
                    nullable: true
                    description: |
                        Roku launch data. For free plans, returns "TV links available for paid plans only." All paid plans receive the available link or null when unavailable.
                        Values may be relative launch instructions, such as `launch/12?contentID=123&MediaType=movie`, rather than clickable URLs.
                        Roku restricts deep linking into third-party apps and third-party use of its External Control Protocol (ECP).
                        See [Roku deep linking](https://developer.roku.com/dev/docs/implementing-deep-linking) and [Roku ECP](https://developer.roku.com/dev/docs/external-control-api).
                format:
                    type: string
                    nullable: true
                    description: Video quality (HD, 4K, etc.)
                    example: HD
                price:
                    type: number
                    nullable: true
                    description: Price for rent/buy sources
                    example: 3.99
                seasons:
                    type: integer
                    nullable: true
                    description: Number of seasons available (for TV)
                    example: 5
                episodes:
                    type: integer
                    nullable: true
                    description: Number of episodes available (for TV)
                    example: 62
            required:
                - source_id
                - name
                - type
                - ios_url
                - android_url
                - web_url
                - tvos_url
                - android_tv_url
                - roku_url
                - format
                - price
                - seasons
                - episodes

        Season:
            type: object
            properties:
                id:
                    type: integer
                    example: 12345
                poster_url:
                    type: string
                    format: uri
                    nullable: true
                    description: Season poster image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                name:
                    type: string
                    nullable: true
                    example: Season 1
                overview:
                    type: string
                    nullable: true
                number:
                    type: integer
                    nullable: true
                    description: Season number
                    example: 1
                air_date:
                    type: string
                    format: date
                    nullable: true
                    example: 2008-01-20
                episode_count:
                    type: integer
                    nullable: true
                    example: 7
            required:
                - id
                - poster_url
                - name
                - overview
                - number
                - air_date
                - episode_count

        Episode:
            type: object
            properties:
                id:
                    type: integer
                    example: 1234567
                name:
                    type: string
                    example: Pilot
                episode_number:
                    type: integer
                    example: 1
                season_number:
                    type: integer
                    example: 1
                season_id:
                    type: integer
                    nullable: true
                    example: 12345
                tmdb_id:
                    type: integer
                    nullable: true
                    example: 54321
                imdb_id:
                    type: string
                    nullable: true
                    example: tt0959621
                thumbnail_url:
                    type: string
                    format: uri
                    nullable: true
                    description: Episode thumbnail image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                release_date:
                    type: string
                    format: date
                    nullable: true
                    example: 2008-01-20
                runtime_minutes:
                    type: integer
                    nullable: true
                    example: 58
                overview:
                    type: string
                    nullable: true
                sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/EpisodeSource'
            required:
                - id
                - name
                - episode_number
                - season_number
                - season_id
                - tmdb_id
                - imdb_id
                - thumbnail_url
                - release_date
                - runtime_minutes
                - sources

        EpisodeSource:
            type: object
            description: |
                Streaming source for an episode.

                **Plan-dependent fields:**
                - `ios_url` and `android_url`: For free plans, returns "Deeplinks available for paid plans only."
                - `web_url`: For free plans, returns "Episode links available for paid plans only."
                - `tvos_url`, `android_tv_url`, `roku_url`: Included on every plan. Free plans return "TV links available for paid plans only." Paid plans receive the available link or null when unavailable; coverage varies by service, country, title, and episode.
            properties:
                source_id:
                    type: integer
                    example: 203
                name:
                    type: string
                    example: Netflix
                type:
                    type: string
                    nullable: true
                    description: |
                        Availability type for this episode on this source:
                        - `sub` - Available with subscription
                        - `rent` - Available for rental
                        - `buy` - Available for purchase
                        - `free` - Available for free (ad-supported)
                        - `tve` - Available with TV Channel App (cable login)
                    enum:
                        - sub
                        - rent
                        - buy
                        - free
                        - tve
                    example: sub
                region:
                    type: string
                    example: US
                ios_url:
                    type: string
                    nullable: true
                    description: iOS deep link. For free plans, returns message string.
                android_url:
                    type: string
                    nullable: true
                    description: Android deep link. For free plans, returns message string.
                web_url:
                    type: string
                    nullable: true
                    description: Web URL. For free plans, returns message string.
                tvos_url:
                    type: string
                    nullable: true
                    description: Apple TV/tvOS link. For free plans, returns "TV links available for paid plans only." All paid plans receive the available link or null when unavailable.
                android_tv_url:
                    type: string
                    nullable: true
                    description: Android TV link or intent. For free plans, returns "TV links available for paid plans only." All paid plans receive the available link or null when unavailable.
                roku_url:
                    type: string
                    nullable: true
                    description: |
                        Roku launch data. For free plans, returns "TV links available for paid plans only." All paid plans receive the available link or null when unavailable.
                        Values may be relative launch instructions, such as `launch/12?contentID=123&MediaType=episode`, rather than clickable URLs.
                        Roku restricts deep linking into third-party apps and third-party use of its External Control Protocol (ECP).
                        See [Roku deep linking](https://developer.roku.com/dev/docs/implementing-deep-linking) and [Roku ECP](https://developer.roku.com/dev/docs/external-control-api).
                format:
                    type: string
                    nullable: true
                    description: Video quality
                price:
                    type: number
                    nullable: true
                    description: Price for rent/buy
            required:
                - source_id
                - name
                - type
                - region
                - ios_url
                - android_url
                - web_url
                - tvos_url
                - android_tv_url
                - roku_url
                - format
                - price

        CastCrew:
            type: object
            properties:
                person_id:
                    type: integer
                    description: Watchmode person ID
                    example: 7110004
                type:
                    type: string
                    enum:
                        - Cast
                        - Crew
                    example: Cast
                full_name:
                    type: string
                    example: Bryan Cranston
                role:
                    type: string
                    description: Character name (cast) or job title (crew)
                    example: Walter White
                episode_count:
                    type: integer
                    description: Number of episodes (for TV)
                    example: 62
                order:
                    type: integer
                    nullable: true
                    description: Billing order
                    example: 1
                headshot_url:
                    type: string
                    nullable: true
                    deprecated: true
                    description: Present only for accounts with legacy headshot access; omitted for other accounts.
            required:
                - person_id
                - type
                - full_name
                - role
                - episode_count
                - order

        Person:
            type: object
            properties:
                id:
                    type: integer
                    example: 7110004
                full_name:
                    type: string
                    example: Brad Pitt
                first_name:
                    type: string
                    nullable: true
                    example: Brad
                last_name:
                    type: string
                    nullable: true
                    example: Pitt
                tmdb_id:
                    type: integer
                    nullable: true
                    example: 287
                imdb_id:
                    type: string
                    nullable: true
                    example: nm0000093
                main_profession:
                    type: string
                    nullable: true
                    example: actor
                secondary_profession:
                    type: string
                    nullable: true
                    example: producer
                tertiary_profession:
                    type: string
                    nullable: true
                    example: soundtrack
                date_of_birth:
                    type: string
                    format: date
                    nullable: true
                    example: 1963-12-18
                date_of_death:
                    type: string
                    format: date
                    nullable: true
                place_of_birth:
                    type: string
                    nullable: true
                    example: Shawnee, Oklahoma, USA
                gender:
                    type: string
                    nullable: true
                    example: m
                known_for:
                    type: array
                    items:
                        type: integer
                    nullable: true
                    description: Array of title IDs person is known for
                    example:
                        - 1132806
                        - 1336708
                        - 1183315
                relevance_percentile:
                    type: number
                    description: Popularity percentile (0-100)
                    example: 100
                awards:
                    $ref: '#/components/schemas/AwardsPage'
                biography:
                    type: string
                    nullable: true
                    description: Biography in the requested language when available; otherwise the available fallback text.
                headshot_url:
                    type: string
                    nullable: true
                    deprecated: true
                    description: Present only for accounts with legacy headshot access; omitted for other accounts.
            required:
                - id
                - full_name
                - first_name
                - last_name
                - tmdb_id
                - imdb_id
                - main_profession
                - secondary_profession
                - tertiary_profession
                - date_of_birth
                - date_of_death
                - place_of_birth
                - gender
                - known_for
                - relevance_percentile
                - biography

        ReleasesResponse:
            type: object
            properties:
                releases:
                    type: array
                    items:
                        $ref: '#/components/schemas/Release'
            required:
                - releases

        Release:
            type: object
            properties:
                id:
                    type: integer
                    example: 3165490
                title:
                    type: string
                    example: Slow Horses
                type:
                    type: string
                    enum:
                        - movie
                        - tv_series
                        - tv_special
                        - tv_miniseries
                        - short_film
                        - tv_movie
                    example: tv_series
                tmdb_id:
                    type: integer
                    nullable: true
                    example: 95480
                tmdb_type:
                    type: string
                    nullable: true
                    enum:
                        - movie
                        - tv
                    example: tv
                imdb_id:
                    type: string
                    nullable: true
                    example: tt5875444
                season_number:
                    type: integer
                    nullable: true
                    description: Season number (for TV)
                    example: 1
                poster_url:
                    type: string
                    format: uri
                    nullable: true
                    description: Poster image URL. May point to a third-party host. Watchmode does not grant any license to the underlying image.
                source_release_date:
                    type: string
                    format: date
                    example: 2022-04-01
                source_id:
                    type: integer
                    example: 371
                source_name:
                    type: string
                    example: AppleTV+
                is_original:
                    type: integer
                    enum:
                        - 0
                        - 1
                    description: Whether this is an original release on this service
                    example: 1
            required:
                - id
                - title
                - type
                - tmdb_id
                - tmdb_type
                - imdb_id
                - season_number
                - poster_url
                - source_release_date
                - source_id
                - source_name
                - is_original

        TitleLeavingDate:
            type: object
            required: [id, title, title_type, region, type, leaving_date, provider_id, season]
            properties:
                id:
                    type: integer
                    description: Watchmode title ID.
                title:
                    type: string
                title_type:
                    type: string
                    enum: [movie, short_film, tv_series, tv_miniseries, tv_movie, tv_special]
                region:
                    type: string
                    description: Viewing country code.
                type:
                    type: string
                    description: TV observations without a known season use streaming_tv_leaving; this does not establish that every season leaves.
                    enum: [streaming_movie_leaving, streaming_tv_season_leaving, streaming_tv_leaving]
                leaving_date:
                    type: string
                    format: date
                    description: Source-reported calendar date in the viewing country. Sources may announce the last available day or the removal day. No exact cutoff or last-watch guarantee is implied; do not treat this as midnight UTC.
                provider_id:
                    type: integer
                    description: Streaming source ID from /sources.
                season:
                    type: integer
                    nullable: true
                    description: Departing season when known; null does not imply all seasons.

        TitleLeavingDatesResponse:
            type: object
            required: [leaving_dates, page, total_pages, total_results]
            properties:
                leaving_dates:
                    type: array
                    description: One listing per title, service, country and season. Empty for a page beyond the end; pagination totals are still returned.
                    items:
                        $ref: '#/components/schemas/TitleLeavingDate'
                page:
                    type: integer
                    minimum: 1
                total_pages:
                    type: integer
                    description: Zero when no departures match the filters. At most 1 for the Free preview.
                    minimum: 0
                total_results:
                    type: integer
                    minimum: 0
                    description: Total reconciled listings matching the filters at request time, including listings beyond the Free preview.

        TitleReleaseDate:
            type: object
            required:
                - id
                - title
                - title_type
                - original_language
                - region
                - type
                - release_date
                - release_at
                - release_timezone
                - time_precision
                - provider_id
                - season
                - verification_status
                - last_verified
            properties:
                id:
                    type: integer
                    example: 1234567
                title:
                    type: string
                    example: 'Dune: Part Two'
                title_type:
                    type: string
                    enum:
                        - movie
                        - tv_series
                        - tv_special
                        - tv_miniseries
                        - short_film
                        - tv_movie
                    example: movie
                original_language:
                    type: string
                    nullable: true
                    description: Original language code for the matched Watchmode title when available.
                    example: en
                region:
                    type: string
                    example: US
                type:
                    description: 'Streaming movie/season premiere or theatrical release. Outside the US, theatrical rows come only from source events classified as limited theatrical or theatrical; digital, physical-media, television, festival, and premiere-only events are excluded. US theatrical rows use the legacy theatrical calendar.'
                    type: string
                    enum:
                        - streaming_movie_release
                        - streaming_tv_season_release
                        - theatrical_release
                    example: theatrical_release
                release_date:
                    description: "Normalized calendar date in YYYY-MM-DD format. Midnight UTC availability timestamps stored in a US time zone are restored to their intended UTC calendar day before filtering.\n\nApple TV (provider 371) lists one worldwide date, but since January 2025 its launches start at 9 p.m. ET the evening before. Rows in the Americas use that earlier local date; other countries keep Apple's listed date. Services launching worldwide in the evening can similarly have release_at on the evening before release_date in the Americas."
                    type: string
                    format: date
                    example: 2024-03-01
                release_at:
                    type: string
                    format: date-time
                    nullable: true
                    description: "Best available ISO 8601 UTC release timestamp. A title-specific published time takes priority; otherwise Watchmode may use a matching broadcast schedule or the service's usual launch time. Apple TV launches use 9 p.m. ET the evening before its listed date. Service launch times can vary by title. Null when no supported time is known, including theatrical releases without a published time. A timestamp does not guarantee that a playback link is already available."
                release_timezone:
                    type: string
                    nullable: true
                    description: IANA time zone used to determine release_at; null when the release time is unknown.
                    example: America/New_York
                time_precision:
                    type: string
                    enum:
                        - date
                        - time
                    description: '`time` when release_at is populated; otherwise `date`, with both release_at and release_timezone null. Do not interpret date-only values as midnight UTC notification times.'
                provider_id:
                    type: integer
                    nullable: true
                    description: Streaming provider ID (null for theatrical)
                    example: null
                season:
                    type: integer
                    nullable: true
                    description: Season number (for TV releases)
                    example: null
                verification_status:
                    type: string
                    nullable: true
                    enum:
                        - scheduled
                        - confirmed_available
                        - unverified
                    description: |
                        Verification state for regional streaming rows matched to an exact digital release for the named provider. Upcoming rows are scheduled; a post-release regional availability check can mark them confirmed_available. Rows awaiting that check are unverified. Contradicted rows and rows without exact digital provider provenance are withheld. Null for theatrical and legacy rows.

                        Fresh, mapped web-channel season premieres can fill gaps in other calendars with scheduled rows. Their calendar dates use the source's local time zone and release_at remains UTC. Existing known-season calendar dates retain priority when sources disagree.
                    example: scheduled
                last_verified:
                    type: string
                    format: date-time
                    nullable: true
                    description: When regional provider availability was last checked. Null until a post-release check runs.
                    example: null

        ChangesResponse:
            type: object
            properties:
                titles:
                    type: array
                    items:
                        type: integer
                    description: Array of title IDs
                    example:
                        - 1138
                        - 1668
                        - 1867
                        - 11029
                page:
                    type: integer
                    example: 1
                total_results:
                    type: integer
                    example: 6513
                total_pages:
                    type: integer
                    example: 27
            required:
                - titles
                - page
                - total_results
                - total_pages

        PeopleChangesResponse:
            type: object
            properties:
                people:
                    type: array
                    items:
                        type: integer
                    description: Array of person IDs
                    example:
                        - 710203130
                        - 73333445
                        - 710203131
                page:
                    type: integer
                    example: 1
                total_results:
                    type: integer
                    example: 15113
                total_pages:
                    type: integer
                    example: 61
            required:
                - people
                - page
                - total_results
                - total_pages

        AwardsAccess:
            type: string
            description: 'Free accounts and active demos receive sample access, shared across keys and fixed at the 25 titles and 10 people listed by /awards/sample. The sample does not rotate. Eligible paid plans receive full available history. Ordinary account quotas and request limits still apply.'
            enum:
                - sample
                - full

        AwardResultFilter:
            type: string
            description: any returns both winners and non-winning nominations. winner returns wins only. nominee returns non-winning nominations only. Histories and award results default to any; List Titles defaults to winner.
            enum:
                - any
                - winner
                - nominee

        AwardYearBasis:
            type: string
            description: eligibility = qualifying work year; ceremony = ceremony year; source = source-specific label. Do not assume the source year is a ceremony year.
            enum:
                - eligibility
                - ceremony
                - source

        AwardCategory:
            type: object
            additionalProperties: false
            required:
                - id
                - name
            properties:
                id:
                    type: integer
                    description: Stable category ID.
                name:
                    type: string
                    description: Original source category name. Historical category names are retained.

        AwardEdition:
            type: object
            additionalProperties: false
            required:
                - id
                - name
                - year_from
                - year_to
                - year_basis
                - ceremony_year
            properties:
                id:
                    type: integer
                    description: Stable edition ID.
                name:
                    type: string
                    description: Display name of the edition, retaining its original source year label.
                    example: 2023 (96th)
                year_from:
                    type: integer
                    description: First year of the edition, interpreted using year_basis.
                    example: 2023
                year_to:
                    type: integer
                    description: Last year of the edition; equal to year_from for a single-year edition.
                    example: 2023
                year_basis:
                    $ref: '#/components/schemas/AwardYearBasis'
                ceremony_year:
                    type: integer
                    nullable: true
                    description: Calendar year of the award presentation, when verified. Null when unverified; do not infer it by adding one to an eligibility year. For example, the 96th Oscars have ceremony_year 2024 and eligibility year 2023.
                    example: 2024

        AwardWork:
            type: object
            additionalProperties: false
            required:
                - name
                - title_id
                - scope
                - episode
                - source_url
            properties:
                name:
                    type: string
                    description: Name credited by the source.
                title_id:
                    type: integer
                    description: Watchmode ID for a verified film or series match. Null for unmatched works and episode-specific credits. An episode credit is not automatically an award for its parent series.
                    nullable: true
                scope:
                    type: string
                    description: Whether the award credits a film, an entire series, an individual episode, or a work whose scope is unknown. Title histories and List Titles only include verified film/series credits; person histories and award results can also include episode credits.
                    enum:
                        - film
                        - series
                        - episode
                        - unknown
                episode:
                    type: object
                    additionalProperties: false
                    required:
                        - series_title
                        - title
                        - season
                        - number
                    properties:
                        series_title:
                            type: string
                        title:
                            type: string
                            nullable: true
                        season:
                            type: integer
                            nullable: true
                        number:
                            type: integer
                            nullable: true
                    nullable: true
                    description: Source-provided episode context, or null. Names and episode numbers may be incomplete; no catalog episode link is implied.
                source_url:
                    type: string
                    nullable: true
                    description: Public page supporting this credited work, or null when unavailable.

        AwardRecipient:
            type: object
            additionalProperties: false
            required:
                - name
                - person_id
                - source_url
            properties:
                name:
                    type: string
                    description: Name credited by the source.
                person_id:
                    type: integer
                    description: Public Watchmode person ID (7 prefix), or null when unmatched.
                    nullable: true
                source_url:
                    type: string
                    nullable: true
                    description: Public page supporting this credited recipient, or null when unavailable.

        Award:
            type: object
            additionalProperties: false
            required:
                - id
                - award_id
                - award_name
                - edition
                - category
                - result
                - award_type
                - statement
                - citation
                - note
                - song
                - source_url
                - works
                - recipients
            properties:
                id:
                    type: integer
                    description: Stable award-entry ID. A winning nomination is counted once regardless of recipient count.
                award_id:
                    $ref: '#/components/schemas/AwardId'
                award_name:
                    type: string
                    description: Name of the award program.
                    example: Academy Awards
                edition:
                    $ref: '#/components/schemas/AwardEdition'
                category:
                    $ref: '#/components/schemas/AwardCategory'
                result:
                    type: string
                    enum:
                        - winner
                        - nominee
                award_type:
                    type: string
                    enum:
                        - competitive
                        - honorary
                        - scientific_technical
                statement:
                    type: string
                    description: Source credit describing the nomination or award, such as the credited role or contributors. Empty string when absent.
                citation:
                    type: string
                    description: The presenting body’s explanation or commendation for an award, commonly used for honorary awards. Empty string when absent.
                note:
                    type: string
                    description: Public historical clarification, correction or source limitation relevant to this record. Empty string when absent. Does not contain matching or ingestion diagnostics.
                song:
                    type: string
                    description: Song title credited for this award, when applicable; empty string otherwise.
                source_url:
                    type: string
                    description: Public source page supporting the award record; may be an archive or program page when no record-specific URL is available.
                works:
                    type: array
                    items:
                        $ref: '#/components/schemas/AwardWork'
                recipients:
                    type: array
                    items:
                        $ref: '#/components/schemas/AwardRecipient'

        AwardsSummary:
            type: object
            additionalProperties: false
            required:
                - total_results
                - total_wins
                - non_winning_nominations
                - awards
            properties:
                total_results: &a2
                    type: integer
                    description: All matching award records, including winning nominations.
                    minimum: 0
                total_wins: &a3
                    type: integer
                    minimum: 0
                non_winning_nominations: &a4
                    type: integer
                    description: Matching records that did not win; total_results minus total_wins.
                    minimum: 0
                awards:
                    type: array
                    items:
                        type: object
                        additionalProperties: false
                        required:
                            - award_id
                            - award_name
                            - total_results
                            - total_wins
                            - non_winning_nominations
                        properties:
                            award_id:
                                $ref: '#/components/schemas/AwardId'
                            award_name:
                                type: string
                            total_results:
                                type: integer
                                description: All matching award records, including winning nominations.
                                minimum: 0
                            total_wins:
                                type: integer
                                minimum: 0
                            non_winning_nominations:
                                type: integer
                                description: Matching records that did not win; total_results minus total_wins.
                                minimum: 0
            description: All-time subject totals across released award programs, independent of history filters. Top-level page counts describe only the filtered request.

        AwardsPage:
            type: object
            additionalProperties: false
            required:
                - access
                - page
                - limit
                - total_results
                - total_pages
                - has_more
                - total_wins
                - non_winning_nominations
                - summary
                - awards
            properties:
                access:
                    $ref: '#/components/schemas/AwardsAccess'
                sample_version:
                    type: string
                    description: Present only for Free/demo sample access.
                    example: 2026-10-12
                page:
                    type: integer
                    minimum: 1
                limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                total_results:
                    type: integer
                    description: 'Number of award records matching the filters: total_wins + non_winning_nominations. Winning nominations are counted once. Page totals follow filters; summary contains unfiltered all-time subject totals.'
                    minimum: 0
                total_pages:
                    type: integer
                    description: Zero when there are no matching records.
                    minimum: 0
                has_more:
                    type: boolean
                total_wins:
                    type: integer
                    minimum: 0
                non_winning_nominations:
                    type: integer
                    description: Matching records that did not win; total_results minus total_wins.
                    minimum: 0
                summary:
                    $ref: '#/components/schemas/AwardsSummary'
                awards:
                    description: 'Award records use award_id and award_name. edition has the same id, name, year_from, year_to, year_basis, and ceremony_year fields as the editions directory. Source years follow year_basis; Oscars use eligibility years. ceremony_year is the verified presentation year or null.'
                    type: array
                    items:
                        $ref: '#/components/schemas/Award'

        AwardCategoriesResponse:
            type: object
            additionalProperties: false
            required:
                - access
                - page
                - limit
                - total_results
                - total_pages
                - has_more
                - categories
            properties:
                access:
                    $ref: '#/components/schemas/AwardsAccess'
                page:
                    type: integer
                    minimum: 1
                limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                total_results:
                    type: integer
                    minimum: 0
                total_pages:
                    type: integer
                    description: Zero when there are no matching records.
                    minimum: 0
                has_more:
                    type: boolean
                categories:
                    type: array
                    items:
                        $ref: '#/components/schemas/AwardCategory'

        AwardsError:
            type: object
            additionalProperties: false
            required:
                - success
                - statusCode
                - code
                - statusMessage
            properties:
                success:
                    type: boolean
                    enum:
                        - false
                statusCode:
                    type: integer
                code:
                    type: string
                    description: Machine-readable error code. Tolerate additional codes.
                statusMessage:
                    type: string
        AwardId:
            type: integer
            minimum: 1
            description: Permanent Watchmode award-program ID from /awards. IDs are never recycled; they are separate from award-record, edition and category IDs.
            example: 1
        AwardDefinition:
            type: object
            additionalProperties: false
            required:
                - id
                - name
            properties:
                id:
                    $ref: '#/components/schemas/AwardId'
                name:
                    type: string
                    example: Academy Awards
        AwardDefinitionsResponse:
            type: array
            items:
                $ref: '#/components/schemas/AwardDefinition'
        AwardsSample:
            type: object
            additionalProperties: false
            required:
                - title_ids
                - person_ids
            properties:
                title_ids:
                    type: array
                    items:
                        type: integer
                    description: The fixed 25 public Watchmode title IDs available to Free accounts and active demos.
                person_ids:
                    type: array
                    items:
                        type: integer
                    description: The fixed 10 public Watchmode person IDs available to Free accounts and active demos.
        AwardEditionsPage:
            type: object
            additionalProperties: false
            required:
                - access
                - page
                - limit
                - total_results
                - total_pages
                - has_more
                - editions
            properties:
                access:
                    $ref: '#/components/schemas/AwardsAccess'
                page:
                    type: integer
                    minimum: 1
                limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                total_results:
                    type: integer
                    minimum: 0
                total_pages:
                    type: integer
                    description: Zero when there are no matching records.
                    minimum: 0
                has_more:
                    type: boolean
                editions:
                    type: array
                    items:
                        $ref: '#/components/schemas/AwardEditionDefinition'
        AwardEditionDefinition:
            type: object
            additionalProperties: false
            required:
                - id
                - name
                - year_from
                - year_to
                - year_basis
                - ceremony_year
            properties:
                id:
                    type: integer
                    description: Stable edition ID.
                name:
                    type: string
                    description: Display name of the edition, retaining its original source year label.
                    example: 2023 (96th)
                year_from:
                    type: integer
                    description: First year of the edition, interpreted using year_basis.
                    example: 2023
                year_to:
                    type: integer
                    description: Last year of the edition; equal to year_from for a single-year edition.
                    example: 2023
                year_basis:
                    $ref: '#/components/schemas/AwardYearBasis'
                ceremony_year:
                    type: integer
                    nullable: true
                    description: Calendar year of the award presentation, when verified. Null when unverified; do not infer it by adding one to an eligibility year. For example, the 96th Oscars have ceremony_year 2024 and eligibility year 2023.
                    example: 2024
        AwardResultsPage:
            type: object
            additionalProperties: false
            required:
                - access
                - page
                - limit
                - total_results
                - total_pages
                - has_more
                - total_wins
                - non_winning_nominations
                - results
            properties:
                access:
                    $ref: '#/components/schemas/AwardsAccess'
                sample_version:
                    type: string
                    description: Present only for Free/demo sample access.
                    example: 2026-10-12
                page:
                    type: integer
                    minimum: 1
                limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                total_results:
                    type: integer
                    description: All matching award records, including winning nominations.
                    minimum: 0
                total_pages:
                    type: integer
                    description: Zero when there are no matching records.
                    minimum: 0
                has_more:
                    type: boolean
                total_wins:
                    type: integer
                    minimum: 0
                non_winning_nominations:
                    type: integer
                    description: Matching records that did not win; total_results minus total_wins.
                    minimum: 0
                results:
                    type: array
                    items:
                        $ref: '#/components/schemas/Award'
            description: Matching award records, counted once per nomination regardless of the number of credited works or recipients. Totals respect all filters and the account’s data access.
