Skip to main content
POST
Reference example
The reference example is a fixed, editable cURL request. This page temporarily disables the interactive form because its nested content controls can add options you did not select. Review the request body and obtain a fresh quote before execution.
Search the web by meaning rather than by keyword. query is required; narrow with category, includeDomains, excludeDomains, startPublishedDate, endPublishedDate, and set numResults. Returns requestId, resolvedSearchType, searchTime, costDollars and results[] with id, title and url. id is the URL, and it is what post_exa_contents takes. Latency depends on the request and provider. Request a fresh quote for the same query and options before execution; use the current public pricing for estimates. ⚠️ Results carry no page text unless you ask: pass contents, or follow up with post_exa_contents. Choose it over post_tavily_search when the query is a description rather than keywords; choose Tavily when you want the text in the same call, and post_exa_answer when you want a written answer rather than a list.
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; the live tool list and what each call costs are on aisa.one/mcp.
Set this endpoint up in your agent →

Request contract

  • Method and path: POST /apis/v1/exa/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/exa/search
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.017 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
required

The natural-language search query.

Example:

"latest evaluation frameworks for AI agents"

category
enum<string>

Optional hint about the kind of pages to prioritize.

Available options:
company,
research paper,
news,
personal site,
financial report,
people
contents
object

Content options to return alongside each result.

endPublishedDate
string<date-time>

Only return results published on or before this ISO 8601 date.

excludeDomains
string[]

Exclude results from these domains.

includeDomains
string[]

Only return results from these domains.

numResults
integer
default:10

Number of results to return.

Required range: 1 <= x <= 100
outputSchema
object

JSON Schema used to synthesize a structured output from the results.

startPublishedDate
string<date-time>

Only return results published on or after this ISO 8601 date.

stream
enum<boolean>
default:false
Available options:
false
systemPrompt
string

Instruction that guides how the structured output is generated.

type
enum<string>
default:auto

Search mode. auto lets Exa choose; the deep modes trade latency for higher-quality retrieval.

Available options:
auto,
fast,
instant,
deep-lite,
deep,
deep-reasoning

Response

Search completed successfully.

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

Structured output, present only when outputSchema was supplied.

requestId
string

Exa request identifier.

results
object[]

Ranked search results.