Skip to main content
POST
Reference example
参考示例是可自行编辑的固定 cURL 请求。本页暂时停用交互表单,因为嵌套内容控件可能加入未选择的选项。执行前请核对请求体并获取新报价。
按语义而不是关键词搜索网页。query 必填;可用 category、includeDomains、excludeDomains、startPublishedDate、endPublishedDate 收窄,用 numResults 控制条数。返回 requestId、resolvedSearchType、searchTime、costDollars 和 results[](含 id、title、url)。id 就是 URL,也正是 post_exa_contents 要的东西。延迟取决于请求及上游状态。执行前请用同一查询和选项获取最新报价,并参考当前公开价格进行估算。⚠️ 结果默认不带页面正文:要么传 contents,要么再调一次 post_exa_contents。查询是一段描述而不是关键词时,选它而不是 post_tavily_search;想在同一次调用里拿到正文,选 Tavily;想要一段写好的答案而不是列表,用 post_exa_answer。
第一次用? 把任意 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 连接;实时工具列表和 每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

请求规范

  • 方法与路径: POST /apis/v1/exa/search
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/exa/search
  • Runtime 事实版本: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

按用量计费;默认请求预估费用:$0.017 USD(不是固定价格)。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。
  • 默认请求参考估价(USD): 0.017
  • 计费依据: response_usd
  • 公开参考倍率: 1.0
  • 结算证据来源: response_body

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
query
string
必填

自然语言搜索查询。

示例:

"latest evaluation frameworks for AI agents"

category
enum<string>

关于优先抓取哪类页面的可选提示。

可用选项:
company,
research paper,
news,
personal site,
financial report,
people
contents
object

随每条结果一并返回的内容选项。

endPublishedDate
string<date-time>

仅返回在该 ISO 8601 日期当天或之前发布的结果。

excludeDomains
string[]

排除来自这些域名的结果。

includeDomains
string[]

只返回来自这些域名的结果。

numResults
integer
默认值:10

返回的结果数量。

必填范围: 1 <= x <= 100
outputSchema
object

用于从结果中合成结构化输出的 JSON Schema。

startPublishedDate
string<date-time>

仅返回在该 ISO 8601 日期当天或之后发布的结果。

stream
enum<boolean>
默认值:false
可用选项:
false
systemPrompt
string

用于引导结构化输出如何生成的指令。

type
enum<string>
默认值:auto

搜索模式。auto 让 Exa 自行选择;deep 模式以更高延迟换取更高质量的检索。

可用选项:
auto,
fast,
instant,
deep-lite,
deep,
deep-reasoning

响应

搜索成功完成。

costDollars
any

Upstream Exa cost breakdown. Informational only; it is not the AIsa customer charge. Use a fresh quote for the actual request.

output
any

结构化输出,仅在提供了 outputSchema 时出现。

requestId
string

Exa 请求标识符。

results
object[]

排序后的搜索结果。