> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search

> Resolve a title or person name to a TMDB id and media type before calling get_title, get_credits, get_watch_providers, get_release_dates, get_person or get_season.

## Request contract

* **Method and path:** POST /apis/v1/themoviedb-org/films/search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/themoviedb-org/films/search`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/themoviedb-org.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "themoviedb-org.films.search",
  "method": "POST",
  "path": "/apis/v1/themoviedb-org/films/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "query": "East of Eden"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "media_type": {
              "description": "Keep only hits of this media type; default `multi` keeps every type.\n\nProvider reference: allowed values [\"multi\", \"movie\", \"tv\", \"person\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "multi",
                  "movie",
                  "tv",
                  "person"
                ]
              }
            },
            "query": {
              "description": "Title or person name to search for; must contain a non-whitespace character.",
              "type": "string"
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/themoviedb-org.json POST /apis/v1/themoviedb-org/films/search
openapi: 3.1.0
info:
  description: ''
  title: TMDB (The Movie Database)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    themoviedb-org:
      description: ''
      title: TMDB (The Movie Database)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 286be9949a4a71229d93fed44ff5772bfe46273d4afc6e5654354932ef2f7068
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/themoviedb-org/films/get-credits
    - /apis/v1/themoviedb-org/films/get-person
    - /apis/v1/themoviedb-org/films/get-release-dates
    - /apis/v1/themoviedb-org/films/get-season
    - /apis/v1/themoviedb-org/films/get-title
    - /apis/v1/themoviedb-org/films/get-watch-providers
    - /apis/v1/themoviedb-org/films/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:9f59f36b7012253567b2e32e621a2e298d8d0f6b36b191f320810849bdd51592
    facts_hash: 286be9949a4a71229d93fed44ff5772bfe46273d4afc6e5654354932ef2f7068
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: themoviedb-org
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/themoviedb-org/films/search:
    post:
      tags:
        - TMDB (The Movie Database)
      summary: Search
      description: >-
        Resolve a title or person name to a TMDB id and media type before
        calling get_title, get_credits, get_watch_providers, get_release_dates,
        get_person or get_season.
      operationId: themoviedb-org.films.search
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  query: East of Eden
            schema:
              additionalProperties: true
              properties:
                media_type:
                  description: >-
                    Keep only hits of this media type; default `multi` keeps
                    every type.


                    Provider reference: allowed values ["multi", "movie", "tv",
                    "person"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - multi
                      - movie
                      - tv
                      - person
                query:
                  description: >-
                    Title or person name to search for; must contain a
                    non-whitespace character.
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-13.
                  summary: Official provider example
                  value:
                    media_type: multi
                    observed_at_ms: 1791923448884
                    query: East of Eden
                    results:
                      - known_for: []
                        known_for_department: null
                        media_type: movie
                        original_title: East of Eden
                        overview: >-
                          In the Salinas Valley in and around World War I, Cal
                          Trask feels he must compete against overwhelming odds
                          with his brother for the love of their father. Cal is
                          frustrated at every turn, from his reaction to the
                          war, how to get ahead in business and in life, and how
                          to relate to his estranged mother.
                        popularity: 14.308
                        poster_url: >-
                          https://media.themoviedb.org/t/p/w500/xv1MZVIop0SQqwLUymgE5eb2LFl.jpg
                        release_date: '1955-04-10'
                        title: East of Eden
                        tmdb_id: 220
                        url: https://www.themoviedb.org/movie/220
                        vote_average: 7.527
                        vote_count: 842
                        year: 1955
                      - known_for: []
                        known_for_department: null
                        media_type: tv
                        original_title: East of Eden
                        overview: >-
                          In the early 1900s, a fiercely independent woman
                          drives a rift between two brothers, igniting a saga
                          that unfolds across two generations.
                        popularity: 79.0867
                        poster_url: >-
                          https://media.themoviedb.org/t/p/w500/axdUor6gLMTrrB1UF4Qfy0TTSyX.jpg
                        release_date: '2026-10-01'
                        title: East of Eden
                        tmdb_id: 258165
                        url: https://www.themoviedb.org/tv/258165
                        vote_average: 8
                        vote_count: 70
                        year: 2026
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search TMDB for movies, TV shows and people by name through the
            site's suggest endpoint (one page of up to about 10 hits, ranked as
            the site ranks them). Each hit carries the TMDB id and media type
            needed by the other functions, the title, year, overview, poster,
            vote average and count. People carry their known-for department and
            up to three known-for titles. An unknown name returns an empty list.


            The response contains the tool result directly.


            The provider identifies `results` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `known_for` | object[] | People only: the titles TMDB lists them
            as known for; empty for titles. |

            | `known_for_department` | string | People only (e.g. Acting,
            Directing); null for titles. |

            | `media_type` | string |  |

            | `original_title` | string |  |

            | `overview` | string |  |

            | `popularity` | number |  |

            | `poster_url` | string | w500 poster (or w500 profile image for
            people). |

            | `release_date` | string | ISO date: a movie's release date or a
            show's first air date; null for people and undated titles. |

            | `title` | string | Movie title, TV show name or person name. |

            | `tmdb_id` | number | TMDB id; with media_type it keys every other
            function. |

            | `url` | string | Canonical TMDB page URL. |

            | `vote_average` | number | TMDB user score on the 0-10 scale; null
            for people. |

            | `vote_count` | number |  |

            | `year` | number | Year of release_date; null for people and
            undated titles. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.