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

# Contents

> 为你已经拿到的 URL 取回页面正文和元信息。

为你已经拿到的 URL 取回页面正文和元信息。`ids` 必填，接收 [`post_exa_search`](https://aisa.one/docs/zh/api-reference/search/post_exa-search) 返回的 `id` —— 那本身就是 URL，所以任何 URL 都能用。可开关 `text`、`highlights`、`summary`、`subpages`、`livecrawl`。返回 `results[]`（含 `id`、`title`、`url`、`author`、`text`），外加一个 **`statuses[]` 数组，逐个 URL 给出 `status` 和 `source`** —— 一定要读，取不到的 URL 记在那里而不是抛错。命中缓存时立即返回，未命中则回落到实时抓取。实测 1.2 秒。费用取决于实际请求和响应中的用量；调用前获取当前请求的报价，并核对最终费用。要的是整站而不是一份 URL 清单，用 [`post_firecrawl_crawl`](https://aisa.one/docs/zh/api-reference/search/post_firecrawl-crawl)。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/search/post_exa-contents)

## 请求规范

* **方法与路径:** POST /apis/v1/exa/contents
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/exa/contents`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/exa.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "post_exa_contents",
  "method": "POST",
  "path": "/apis/v1/exa/contents",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "highlights": {
              "description": "Return highlighted relevant snippets.",
              "type": "boolean"
            },
            "ids": {
              "description": "The URLs (or Exa result ids) to fetch contents for.",
              "example": [
                "https://example.com/article"
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "livecrawl": {
              "description": "Freshness policy: always live-crawl, fall back to live crawl on cache miss, or never live-crawl.",
              "enum": [
                "always",
                "fallback",
                "never"
              ],
              "type": "string"
            },
            "stream": {
              "default": false,
              "enum": [
                false
              ],
              "type": "boolean"
            },
            "subpages": {
              "description": "Number of linked subpages to also fetch.",
              "type": "integer"
            },
            "summary": {
              "description": "Return an AI-generated summary of the page.",
              "type": "boolean"
            },
            "text": {
              "description": "Return the full page text.",
              "type": "boolean"
            }
          },
          "required": [
            "ids"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.002 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/exa.json POST /apis/v1/exa/contents
openapi: 3.1.0
info:
  description: ''
  title: Exa
  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:
    exa:
      description: ''
      title: Exa
      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: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
        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/exa/agent/runs
    - /apis/v1/exa/answer
    - /apis/v1/exa/contents
    - /apis/v1/exa/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:ab46e78f199b7355eb8b0849ccc6b69f09ed9c898a6d7b83d8a86b70a43c863a
    facts_hash: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
    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: exa
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/exa/contents:
    post:
      tags:
        - default
      summary: Contents
      description: >-
        Fetch page text and metadata for URLs you already have. `ids` is
        required and takes the `id` values from `post_exa_search` — which are
        plain URLs, so any URL works. Toggle `text`, `highlights`, `summary`,
        `subpages` and `livecrawl`. Returns `results[]` with `id`, `title`,
        `url`, `author` and `text`, plus a **`statuses[]` array giving per-URL
        `status` and `source`** — read it, because a URL that could not be
        fetched is reported there rather than raising. Cached results are served
        instantly; a miss falls back to a live crawl. Measured at 1.2 seconds.
        Use current endpoint pricing and a fresh quote for this request. For a
        whole site rather than a URL list, `post_firecrawl_crawl`.
      operationId: post_exa_contents
      requestBody:
        content:
          application/json:
            schema:
              properties:
                highlights:
                  description: 返回高亮的相关片段。
                  type: boolean
                ids:
                  description: 要获取内容的 URL（或 Exa 结果 id）。
                  example:
                    - https://example.com/article
                  items:
                    type: string
                  type: array
                livecrawl:
                  description: 新鲜度策略：始终实时抓取、缓存未命中时退回实时抓取，或从不实时抓取。
                  enum:
                    - always
                    - fallback
                    - never
                  type: string
                stream:
                  default: false
                  enum:
                    - false
                  type: boolean
                subpages:
                  description: 同时抓取的关联子页面数量。
                  type: integer
                summary:
                  description: 返回该页面由 AI 生成的摘要。
                  type: boolean
                text:
                  description: 返回完整的页面文本。
                  type: boolean
              required:
                - ids
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  requestId:
                    type: string
                  results:
                    items:
                      properties:
                        author:
                          type: string
                        highlights:
                          items:
                            type: string
                          type: array
                        id:
                          type: string
                        publishedDate:
                          type: string
                        summary:
                          type: string
                        text:
                          type: string
                        title:
                          type: string
                        url:
                          type: string
                      type: object
                    type: array
                type: object
          description: 内容获取成功。
        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/exa/contents \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "ids": [
                "https://example.com/article"
              ]
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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