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

# Exa Search

> 按语义而不是关键词搜索网页。

按语义而不是关键词搜索网页。`query` 必填；可用 `category`、`includeDomains`、`excludeDomains`、`startPublishedDate`、`endPublishedDate` 收窄，用 `numResults` 控制条数。返回 `requestId`、`resolvedSearchType`、`searchTime`、`costDollars` 和 `results[]`（含 `id`、`title`、`url`）。**`id` 就是 URL**，也正是 [`post_exa_contents`](/docs/zh/api-reference/search/post_exa-contents) 要的东西。实测 1.4 秒，是这里最快的搜索。按次固定计费。⚠️ 结果**默认不带页面正文**：要么传 `contents`，要么再调一次 [`post_exa_contents`](/docs/zh/api-reference/search/post_exa-contents)。查询是一段描述而不是关键词时，选它而不是 [`post_tavily_search`](/docs/zh/api-reference/search/post_tavily-search)；想在同一次调用里拿到正文，选 Tavily；想要一段写好的答案而不是列表，用 [`post_exa_answer`](/docs/zh/api-reference/search/post_exa-answer)。

<Note>
  **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
  Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
  Allow，不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见
  [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。
</Note>

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


## OpenAPI

````yaml openapi/zh/exa.json POST /exa/search
openapi: 3.0.0
info:
  title: Exa API
  version: 1.0.0
  description: >-
    通过 AIsa 网关开放的 Exa 神经语义搜索 endpoint 的统一 API 文档：Search、Contents、Answer，以及异步的研究型
    Agent Runs。


    Search、Contents 和 Answer 为同步接口，每次成功请求按固定费率计费。Agent Runs
    为异步接口：调用方提交任务，然后轮询返回的任务资源以获取状态和结果，每次任务按固定费率计费。上游 4xx 响应（例如
    401/403/404）不计费。Exa 返回的 `costDollars` 字段是上游成本明细，仅供参考——客户计费以上述 AIsa 固定价格为准。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - bearerAuth: []
paths:
  /exa/search:
    post:
      tags:
        - https://docs.exa.ai/reference/search
      summary: 执行神经语义网页搜索。
      description: >-
        按语义而不是关键词搜索网页。`query` 必填；可用
        `category`、`includeDomains`、`excludeDomains`、`startPublishedDate`、`endPublishedDate`
        收窄，用 `numResults` 控制条数。返回
        `requestId`、`resolvedSearchType`、`searchTime`、`costDollars` 和
        `results[]`（含 `id`、`title`、`url`）。**`id` 就是 URL**，也正是
        `post_exa_contents` 要的东西。实测 1.4 秒，是这里最快的搜索。按次固定计费。⚠️ 结果**默认不带页面正文**：要么传
        `contents`，要么再调一次 `post_exa_contents`。查询是一段描述而不是关键词时，选它而不是
        `post_tavily_search`；想在同一次调用里拿到正文，选 Tavily；想要一段写好的答案而不是列表，用
        `post_exa_answer`。
      operationId: post_exa_search
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: 自然语言搜索查询。
                  example: latest evaluation frameworks for AI agents
                type:
                  type: string
                  enum:
                    - auto
                    - fast
                    - instant
                    - deep-lite
                    - deep
                    - deep-reasoning
                  default: auto
                  description: 搜索模式。auto 让 Exa 自行选择；deep 模式以更高延迟换取更高质量的检索。
                numResults:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 10
                  description: 返回的结果数量。
                category:
                  type: string
                  enum:
                    - company
                    - research paper
                    - news
                    - personal site
                    - financial report
                    - people
                  description: 关于优先抓取哪类页面的可选提示。
                includeDomains:
                  type: array
                  items:
                    type: string
                  description: 只返回来自这些域名的结果。
                excludeDomains:
                  type: array
                  items:
                    type: string
                  description: 排除来自这些域名的结果。
                startPublishedDate:
                  type: string
                  format: date-time
                  description: 仅返回在该 ISO 8601 日期当天或之后发布的结果。
                endPublishedDate:
                  type: string
                  format: date-time
                  description: 仅返回在该 ISO 8601 日期当天或之前发布的结果。
                contents:
                  type: object
                  description: 随每条结果一并返回的内容选项。
                  properties:
                    text:
                      type: boolean
                      description: 返回完整的页面文本。
                    highlights:
                      type: boolean
                      description: 返回高亮的相关片段。
                    summary:
                      type: boolean
                      description: 返回该页面由 AI 生成的摘要。
                outputSchema:
                  type: object
                  description: 用于从结果中合成结构化输出的 JSON Schema。
                systemPrompt:
                  type: string
                  description: 用于引导结构化输出如何生成的指令。
              required:
                - query
      responses:
        '200':
          description: 搜索成功完成。
          content:
            application/json:
              schema:
                type: object
                properties:
                  requestId:
                    type: string
                    description: Exa 请求标识符。
                  results:
                    type: array
                    description: 排序后的搜索结果。
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                        url:
                          type: string
                        publishedDate:
                          type: string
                        author:
                          type: string
                        id:
                          type: string
                  output:
                    description: 结构化输出，仅在提供了 outputSchema 时出现。
                    nullable: true
                  costDollars:
                    description: 上游 Exa 的成本明细。仅供参考；客户按每次请求的固定费率计费。
                    nullable: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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