> ## 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 Tavily Data

> Search the web and get back ranked results with the page text already extracted, so there is no second call to fetch content.

Search the web and get back ranked results with the page text already extracted, so there is no second call to fetch content. `query` is required. Returns `results[]` with `url`, `title`, `content` (the extracted excerpt), `score` and optionally `raw_content`, alongside `query`, `images`, `response_time` and `request_id`; set `include_answer` to also get a one-paragraph `answer`. Filter with `topic` (general/news/finance), `time_range` or explicit `start_date`/`end_date`, and trade cost against depth with `search_depth`. Measured at roughly 6 seconds for 2 results. This is the default choice for open-web research, and the only search here that returns ranked results and page text in one call. Reach past it when: you already know the URLs — [`post_tavily_extract`](https://aisa.one/docs/api-reference/search/post_tavily-extract) is cheaper and exact; the query is a description rather than keywords — `post_exa_search` matches on meaning; you want a written answer rather than a list to iterate — [`post_perplexity_sonar`](https://aisa.one/docs/api-reference/perplexity/post_perplexity-sonar); you want peer-reviewed papers — [`post_scholar_search_scholar`](https://aisa.one/docs/api-reference/scholar/post_scholar-search-scholar).

> [!NOTE]
>
> **First time?** Point any MCP client at `https://mcp.aisa.one/mcp` — Claude
> Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
> opens a browser, you click Allow once, and there is no key to paste. Your
> agent then reaches every endpoint through a few meta tools: `search`,
> `list_categories`, `get_details` and `batch_quote` are free, `batch_use` is
> billed per call. Setup per client is in
> [Connect via MCP](https://aisa.one/docs/agent-quickstart.md); the live tool list and what each call
> costs are on [aisa.one/mcp](https://aisa.one/mcp#connect).

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/search/post_tavily-search)

## Request contract

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

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_tavily_search",
  "method": "POST",
  "path": "/apis/v1/tavily/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "auto_parameters": {
              "default": false,
              "description": "Automatically configure search parameters based on query content.",
              "type": "boolean"
            },
            "chunks_per_source": {
              "default": 3,
              "description": "Maximum number of relevant chunks returned per source.",
              "maximum": 3,
              "minimum": 1,
              "type": "integer"
            },
            "country": {
              "description": "Boost search results from a specific country. Available only when topic is general.",
              "enum": [
                "afghanistan",
                "albania",
                "algeria",
                "andorra",
                "angola",
                "argentina",
                "armenia",
                "australia",
                "austria",
                "azerbaijan",
                "bahamas",
                "bahrain",
                "bangladesh",
                "barbados",
                "belarus",
                "belgium",
                "belize",
                "benin",
                "bhutan",
                "bolivia",
                "bosnia and herzegovina",
                "botswana",
                "brazil",
                "brunei",
                "bulgaria",
                "burkina faso",
                "burundi",
                "cambodia",
                "cameroon",
                "canada",
                "cape verde",
                "central african republic",
                "chad",
                "chile",
                "china",
                "colombia",
                "comoros",
                "congo",
                "costa rica",
                "croatia",
                "cuba",
                "cyprus",
                "czech republic",
                "denmark",
                "djibouti",
                "dominican republic",
                "ecuador",
                "egypt",
                "el salvador",
                "equatorial guinea",
                "eritrea",
                "estonia",
                "ethiopia",
                "fiji",
                "finland",
                "france",
                "gabon",
                "gambia",
                "georgia",
                "germany",
                "ghana",
                "greece",
                "guatemala",
                "guinea",
                "haiti",
                "honduras",
                "hungary",
                "iceland",
                "india",
                "indonesia",
                "iran",
                "iraq",
                "ireland",
                "israel",
                "italy",
                "jamaica",
                "japan",
                "jordan",
                "kazakhstan",
                "kenya",
                "kuwait",
                "kyrgyzstan",
                "latvia",
                "lebanon",
                "lesotho",
                "liberia",
                "libya",
                "liechtenstein",
                "lithuania",
                "luxembourg",
                "madagascar",
                "malawi",
                "malaysia",
                "maldives",
                "mali",
                "malta",
                "mauritania",
                "mauritius",
                "mexico",
                "moldova",
                "monaco",
                "mongolia",
                "montenegro",
                "morocco",
                "mozambique",
                "myanmar",
                "namibia",
                "nepal",
                "netherlands",
                "new zealand",
                "nicaragua",
                "niger",
                "nigeria",
                "north korea",
                "north macedonia",
                "norway",
                "oman",
                "pakistan",
                "panama",
                "papua new guinea",
                "paraguay",
                "peru",
                "philippines",
                "poland",
                "portugal",
                "qatar",
                "romania",
                "russia",
                "rwanda",
                "saudi arabia",
                "senegal",
                "serbia",
                "singapore",
                "slovakia",
                "slovenia",
                "somalia",
                "south africa",
                "south korea",
                "south sudan",
                "spain",
                "sri lanka",
                "sudan",
                "sweden",
                "switzerland",
                "syria",
                "taiwan",
                "tajikistan",
                "tanzania",
                "thailand",
                "togo",
                "trinidad and tobago",
                "tunisia",
                "turkey",
                "turkmenistan",
                "uganda",
                "ukraine",
                "united arab emirates",
                "united kingdom",
                "united states",
                "uruguay",
                "uzbekistan",
                "venezuela",
                "vietnam",
                "yemen",
                "zambia",
                "zimbabwe"
              ],
              "type": "string"
            },
            "end_date": {
              "description": "Return results before the specified end date.",
              "example": "2025-12-29",
              "format": "date",
              "type": "string"
            },
            "exclude_domains": {
              "description": "List of domains to specifically exclude from the search results.",
              "items": {
                "type": "string"
              },
              "maxItems": 150,
              "type": "array"
            },
            "include_answer": {
              "default": false,
              "description": "Include an LLM-generated answer. true uses the default answer mode; basic or advanced selects the answer generation mode.",
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "enum": [
                    "basic",
                    "advanced"
                  ],
                  "type": "string"
                }
              ]
            },
            "include_domains": {
              "description": "List of domains to specifically include in the search results.",
              "items": {
                "type": "string"
              },
              "maxItems": 300,
              "type": "array"
            },
            "include_favicon": {
              "default": false,
              "description": "Include the favicon URL for each result.",
              "type": "boolean"
            },
            "include_image_descriptions": {
              "default": false,
              "description": "Add descriptive text for each image when include_images is true.",
              "type": "boolean"
            },
            "include_images": {
              "default": false,
              "description": "Perform an image search and include results.",
              "type": "boolean"
            },
            "include_raw_content": {
              "default": false,
              "description": "Include cleaned and parsed content for each search result. true or markdown returns markdown; text returns plain text and may increase latency.",
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "enum": [
                    "markdown",
                    "text"
                  ],
                  "type": "string"
                }
              ]
            },
            "include_usage": {
              "default": false,
              "description": "Include credit usage information in the response.",
              "type": "boolean"
            },
            "max_results": {
              "default": 5,
              "description": "Maximum number of search results to return.",
              "maximum": 20,
              "minimum": 0,
              "type": "integer"
            },
            "query": {
              "description": "The search query to execute with Tavily.",
              "example": "Who is Leo Messi?",
              "type": "string"
            },
            "safe_search": {
              "default": false,
              "description": "Filter out adult or unsafe content from search results. Enterprise only; not supported when search_depth is fast or ultra-fast.",
              "type": "boolean"
            },
            "search_depth": {
              "default": "basic",
              "description": "Controls the latency vs. relevance tradeoff. advanced gives the highest relevance with higher latency and cost; basic is balanced; fast and ultra-fast optimize for lower latency.",
              "enum": [
                "advanced",
                "basic",
                "fast",
                "ultra-fast"
              ],
              "type": "string"
            },
            "start_date": {
              "description": "Return results after the specified start date.",
              "example": "2025-02-09",
              "format": "date",
              "type": "string"
            },
            "time_range": {
              "description": "Time range to filter results based on publish date.",
              "enum": [
                "day",
                "week",
                "month",
                "year",
                "d",
                "w",
                "m",
                "y"
              ],
              "type": "string"
            },
            "topic": {
              "default": "general",
              "description": "Category of the search.",
              "enum": [
                "general",
                "news",
                "finance"
              ],
              "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.016 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/tavily.json POST /apis/v1/tavily/search
openapi: 3.1.0
info:
  description: ''
  title: Tavily
  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:
    tavily:
      description: ''
      title: Tavily
      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: ea2301436db90d0b30e55885326cd5057bea93ff7d26d9bced8e1ae7f1911ef4
        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/tavily/crawl
    - /apis/v1/tavily/extract
    - /apis/v1/tavily/map
    - /apis/v1/tavily/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:4bd4522d1b78a17cc2adcba4cad6fcff2461b0cb414f27db5e5a7cdcb93466cb
    facts_hash: ea2301436db90d0b30e55885326cd5057bea93ff7d26d9bced8e1ae7f1911ef4
    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: tavily
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/tavily/search:
    post:
      tags:
        - default
      summary: Search Tavily Data
      description: >-
        Search the web and get back ranked results with the page text already
        extracted, so there is no second call to fetch content. `query` is
        required. Returns `results[]` with `url`, `title`, `content` (the
        extracted excerpt), `score` and optionally `raw_content`, alongside
        `query`, `images`, `response_time` and `request_id`; set
        `include_answer` to also get a one-paragraph `answer`. Filter with
        `topic` (general/news/finance), `time_range` or explicit
        `start_date`/`end_date`, and trade cost against depth with
        `search_depth`. Measured at roughly 6 seconds for 2 results. This is the
        default choice for open-web research, and the only search here that
        returns ranked results and page text in one call. Reach past it when:
        you already know the URLs — `post_tavily_extract` is cheaper and exact;
        the query is a description rather than keywords — `post_exa_search`
        matches on meaning; you want a written answer rather than a list to
        iterate — `post_perplexity_sonar`; you want peer-reviewed papers —
        `post_scholar_search_scholar`.
      operationId: post_tavily_search
      requestBody:
        content:
          application/json:
            schema:
              properties:
                auto_parameters:
                  default: false
                  description: >-
                    Automatically configure search parameters based on query
                    content.
                  type: boolean
                chunks_per_source:
                  default: 3
                  description: Maximum number of relevant chunks returned per source.
                  maximum: 3
                  minimum: 1
                  type: integer
                country:
                  description: >-
                    Boost search results from a specific country. Available only
                    when topic is general.
                  enum:
                    - afghanistan
                    - albania
                    - algeria
                    - andorra
                    - angola
                    - argentina
                    - armenia
                    - australia
                    - austria
                    - azerbaijan
                    - bahamas
                    - bahrain
                    - bangladesh
                    - barbados
                    - belarus
                    - belgium
                    - belize
                    - benin
                    - bhutan
                    - bolivia
                    - bosnia and herzegovina
                    - botswana
                    - brazil
                    - brunei
                    - bulgaria
                    - burkina faso
                    - burundi
                    - cambodia
                    - cameroon
                    - canada
                    - cape verde
                    - central african republic
                    - chad
                    - chile
                    - china
                    - colombia
                    - comoros
                    - congo
                    - costa rica
                    - croatia
                    - cuba
                    - cyprus
                    - czech republic
                    - denmark
                    - djibouti
                    - dominican republic
                    - ecuador
                    - egypt
                    - el salvador
                    - equatorial guinea
                    - eritrea
                    - estonia
                    - ethiopia
                    - fiji
                    - finland
                    - france
                    - gabon
                    - gambia
                    - georgia
                    - germany
                    - ghana
                    - greece
                    - guatemala
                    - guinea
                    - haiti
                    - honduras
                    - hungary
                    - iceland
                    - india
                    - indonesia
                    - iran
                    - iraq
                    - ireland
                    - israel
                    - italy
                    - jamaica
                    - japan
                    - jordan
                    - kazakhstan
                    - kenya
                    - kuwait
                    - kyrgyzstan
                    - latvia
                    - lebanon
                    - lesotho
                    - liberia
                    - libya
                    - liechtenstein
                    - lithuania
                    - luxembourg
                    - madagascar
                    - malawi
                    - malaysia
                    - maldives
                    - mali
                    - malta
                    - mauritania
                    - mauritius
                    - mexico
                    - moldova
                    - monaco
                    - mongolia
                    - montenegro
                    - morocco
                    - mozambique
                    - myanmar
                    - namibia
                    - nepal
                    - netherlands
                    - new zealand
                    - nicaragua
                    - niger
                    - nigeria
                    - north korea
                    - north macedonia
                    - norway
                    - oman
                    - pakistan
                    - panama
                    - papua new guinea
                    - paraguay
                    - peru
                    - philippines
                    - poland
                    - portugal
                    - qatar
                    - romania
                    - russia
                    - rwanda
                    - saudi arabia
                    - senegal
                    - serbia
                    - singapore
                    - slovakia
                    - slovenia
                    - somalia
                    - south africa
                    - south korea
                    - south sudan
                    - spain
                    - sri lanka
                    - sudan
                    - sweden
                    - switzerland
                    - syria
                    - taiwan
                    - tajikistan
                    - tanzania
                    - thailand
                    - togo
                    - trinidad and tobago
                    - tunisia
                    - turkey
                    - turkmenistan
                    - uganda
                    - ukraine
                    - united arab emirates
                    - united kingdom
                    - united states
                    - uruguay
                    - uzbekistan
                    - venezuela
                    - vietnam
                    - yemen
                    - zambia
                    - zimbabwe
                  type: string
                end_date:
                  description: Return results before the specified end date.
                  example: '2025-12-29'
                  format: date
                  type: string
                exclude_domains:
                  description: >-
                    List of domains to specifically exclude from the search
                    results.
                  items:
                    type: string
                  maxItems: 150
                  type: array
                include_answer:
                  default: false
                  description: >-
                    Include an LLM-generated answer. true uses the default
                    answer mode; basic or advanced selects the answer generation
                    mode.
                  oneOf:
                    - type: boolean
                    - enum:
                        - basic
                        - advanced
                      type: string
                include_domains:
                  description: >-
                    List of domains to specifically include in the search
                    results.
                  items:
                    type: string
                  maxItems: 300
                  type: array
                include_favicon:
                  default: false
                  description: Include the favicon URL for each result.
                  type: boolean
                include_image_descriptions:
                  default: false
                  description: >-
                    Add descriptive text for each image when include_images is
                    true.
                  type: boolean
                include_images:
                  default: false
                  description: Perform an image search and include results.
                  type: boolean
                include_raw_content:
                  default: false
                  description: >-
                    Include cleaned and parsed content for each search result.
                    true or markdown returns markdown; text returns plain text
                    and may increase latency.
                  oneOf:
                    - type: boolean
                    - enum:
                        - markdown
                        - text
                      type: string
                include_usage:
                  default: false
                  description: Include credit usage information in the response.
                  type: boolean
                max_results:
                  default: 5
                  description: Maximum number of search results to return.
                  maximum: 20
                  minimum: 0
                  type: integer
                query:
                  description: The search query to execute with Tavily.
                  example: Who is Leo Messi?
                  type: string
                safe_search:
                  default: false
                  description: >-
                    Filter out adult or unsafe content from search results.
                    Enterprise only; not supported when search_depth is fast or
                    ultra-fast.
                  type: boolean
                search_depth:
                  default: basic
                  description: >-
                    Controls the latency vs. relevance tradeoff. advanced gives
                    the highest relevance with higher latency and cost; basic is
                    balanced; fast and ultra-fast optimize for lower latency.
                  enum:
                    - advanced
                    - basic
                    - fast
                    - ultra-fast
                  type: string
                start_date:
                  description: Return results after the specified start date.
                  example: '2025-02-09'
                  format: date
                  type: string
                time_range:
                  description: Time range to filter results based on publish date.
                  enum:
                    - day
                    - week
                    - month
                    - year
                    - d
                    - w
                    - m
                    - 'y'
                  type: string
                topic:
                  default: general
                  description: Category of the search.
                  enum:
                    - general
                    - news
                    - finance
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  answer:
                    description: >-
                      A short LLM-generated answer. Present as null when
                      include_answer is false or no answer is generated.
                    type:
                      - string
                      - 'null'
                  images:
                    items:
                      properties:
                        description:
                          description: Image description.
                          type: string
                        url:
                          description: Image URL.
                          type: string
                      type: object
                    type: array
                  query:
                    description: The search query that was executed.
                    type: string
                  request_id:
                    description: Unique request identifier.
                    type: string
                  response_time:
                    description: Time in seconds it took to complete the request.
                    format: float
                    type: number
                  results:
                    items:
                      properties:
                        content:
                          description: Content snippet of the search result.
                          type: string
                        favicon:
                          description: Favicon URL of the search result.
                          type:
                            - string
                            - 'null'
                        raw_content:
                          description: >-
                            Cleaned and parsed source content. Null unless
                            include_raw_content is requested or no raw content
                            is available.
                          type:
                            - string
                            - 'null'
                        score:
                          description: Relevance score of the search result.
                          format: float
                          type: number
                        title:
                          description: Title of the search result.
                          type: string
                        url:
                          description: URL of the search result.
                          type: string
                      type: object
                    type: array
                  usage:
                    properties:
                      credits:
                        description: Credit usage details for the request.
                        type: integer
                    type: object
                type: object
          description: Search results returned successfully.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request POST \
              --url https://api.aisa.one/apis/v1/tavily/search \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "query": "Who is Leo Messi?"
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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