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

# Extract Data

> Fetch clean, parsed content for URLs you already have — from a search result, a sitemap, or a user.

Fetch clean, parsed content for URLs you already have — from a search result, a sitemap, or a user. `urls` is required and takes several at once. Returns `results[]` with `url`, `title`, `raw_content` and `images`, plus a `failed_results[]` array — **read that one**, because a page that could not be fetched is reported there rather than raising an error. Choose `format` (markdown or text) and `extract_depth`. Measured at about 1 second for one page. Use this instead of [`post_tavily_search`](https://aisa.one/docs/api-reference/search/post_tavily-search) whenever you can already name the pages; searching for pages you can name costs more and may not return them. For a long list that can wait, `post_firecrawl_batch_scrape` runs it as a background job. To discover the URLs of a whole site first, use [`post_tavily_map`](https://aisa.one/docs/api-reference/search/post_tavily-map).

> [!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-extract)

## Request contract

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

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_tavily_extract",
  "method": "POST",
  "path": "/apis/v1/tavily/extract",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "chunks_per_source": {
              "default": 3,
              "description": "Maximum number of relevant chunks returned per source. Available only when query is provided.",
              "maximum": 5,
              "minimum": 1,
              "type": "integer"
            },
            "extract_depth": {
              "default": "basic",
              "description": "Depth of the extraction process.",
              "enum": [
                "basic",
                "advanced"
              ],
              "type": "string"
            },
            "format": {
              "default": "markdown",
              "description": "Format of the extracted web page content.",
              "enum": [
                "markdown",
                "text"
              ],
              "type": "string"
            },
            "include_favicon": {
              "default": false,
              "description": "Include the favicon URL for each result.",
              "type": "boolean"
            },
            "include_images": {
              "default": false,
              "description": "Include a list of images extracted from the URLs.",
              "type": "boolean"
            },
            "include_usage": {
              "default": false,
              "description": "Include credit usage information in the response.",
              "type": "boolean"
            },
            "query": {
              "description": "User intent for reranking extracted content chunks.",
              "type": "string"
            },
            "timeout": {
              "description": "Maximum time in seconds to wait for URL extraction. If omitted, default timeouts depend on extract_depth: 10 seconds for basic and 30 seconds for advanced.",
              "format": "float",
              "maximum": 60,
              "minimum": 1,
              "type": "number"
            },
            "urls": {
              "description": "The URL or URLs to extract content from. A single URL string and an array of URL strings are both accepted.",
              "example": [
                "https://en.wikipedia.org/wiki/Artificial_intelligence"
              ],
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              ]
            }
          },
          "required": [
            "urls"
          ],
          "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.024 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/extract
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/extract:
    post:
      tags:
        - default
      summary: Extract Data
      description: >-
        Fetch clean, parsed content for URLs you already have — from a search
        result, a sitemap, or a user. `urls` is required and takes several at
        once. Returns `results[]` with `url`, `title`, `raw_content` and
        `images`, plus a `failed_results[]` array — **read that one**, because a
        page that could not be fetched is reported there rather than raising an
        error. Choose `format` (markdown or text) and `extract_depth`. Measured
        at about 1 second for one page. Use this instead of `post_tavily_search`
        whenever you can already name the pages; searching for pages you can
        name costs more and may not return them. For a long list that can wait,
        `post_firecrawl_batch_scrape` runs it as a background job. To discover
        the URLs of a whole site first, use `post_tavily_map`.
      operationId: post_tavily_extract
      requestBody:
        content:
          application/json:
            schema:
              properties:
                chunks_per_source:
                  default: 3
                  description: >-
                    Maximum number of relevant chunks returned per source.
                    Available only when query is provided.
                  maximum: 5
                  minimum: 1
                  type: integer
                extract_depth:
                  default: basic
                  description: Depth of the extraction process.
                  enum:
                    - basic
                    - advanced
                  type: string
                format:
                  default: markdown
                  description: Format of the extracted web page content.
                  enum:
                    - markdown
                    - text
                  type: string
                include_favicon:
                  default: false
                  description: Include the favicon URL for each result.
                  type: boolean
                include_images:
                  default: false
                  description: Include a list of images extracted from the URLs.
                  type: boolean
                include_usage:
                  default: false
                  description: Include credit usage information in the response.
                  type: boolean
                query:
                  description: User intent for reranking extracted content chunks.
                  type: string
                timeout:
                  description: >-
                    Maximum time in seconds to wait for URL extraction. If
                    omitted, default timeouts depend on extract_depth: 10
                    seconds for basic and 30 seconds for advanced.
                  format: float
                  maximum: 60
                  minimum: 1
                  type: number
                urls:
                  description: >-
                    The URL or URLs to extract content from. A single URL string
                    and an array of URL strings are both accepted.
                  example:
                    - https://en.wikipedia.org/wiki/Artificial_intelligence
                  oneOf:
                    - type: string
                    - items:
                        type: string
                      type: array
              required:
                - urls
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  failed_results:
                    description: List of URLs that could not be processed.
                    items:
                      type: string
                    type: array
                  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:
                        favicon:
                          description: Favicon URL of the extracted content.
                          type:
                            - string
                            - 'null'
                        images:
                          description: >-
                            Images extracted from the URL when include_images is
                            true.
                          items:
                            type: string
                          type: array
                        raw_content:
                          description: Extracted raw content from the URL.
                          type: string
                        title:
                          description: Title of the extracted page.
                          type: string
                        url:
                          description: URL of the extracted content.
                          type: string
                      type: object
                    type: array
                  usage:
                    properties:
                      credits:
                        description: Credit usage details for the request.
                        type: integer
                    type: object
                type: object
          description: Extraction 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/extract \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "urls": [
                "https://en.wikipedia.org/wiki/Artificial_intelligence"
              ]
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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