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

# Search

> Search the web by meaning rather than by keyword.

> [!NOTE]
>
> 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`](https://aisa.one/docs/api-reference/search/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`](https://aisa.one/docs/api-reference/search/post_exa-contents). Choose it over [`post_tavily_search`](https://aisa.one/docs/api-reference/search/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`](https://aisa.one/docs/api-reference/search/post_exa-answer) when you want a written answer rather than a list.

> [!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_exa-search)

## 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](https://aisa.one/docs/openapi/exa.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_exa_search",
  "method": "POST",
  "path": "/apis/v1/exa/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "category": {
              "description": "Optional hint about the kind of pages to prioritize.",
              "enum": [
                "company",
                "research paper",
                "news",
                "personal site",
                "financial report",
                "people"
              ],
              "type": "string"
            },
            "contents": {
              "description": "Content options to return alongside each result.",
              "properties": {
                "highlights": {
                  "description": "Return highlighted relevant snippets.",
                  "type": "boolean"
                },
                "summary": {
                  "description": "Return an AI-generated summary of the page.",
                  "type": "boolean"
                },
                "text": {
                  "description": "Return the full page text.",
                  "type": "boolean"
                }
              },
              "type": "object"
            },
            "endPublishedDate": {
              "description": "Only return results published on or before this ISO 8601 date.",
              "format": "date-time",
              "type": "string"
            },
            "excludeDomains": {
              "description": "Exclude results from these domains.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "includeDomains": {
              "description": "Only return results from these domains.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "numResults": {
              "default": 10,
              "description": "Number of results to return.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "outputSchema": {
              "description": "JSON Schema used to synthesize a structured output from the results.",
              "type": "object"
            },
            "query": {
              "description": "The natural-language search query.",
              "example": "latest evaluation frameworks for AI agents",
              "type": "string"
            },
            "startPublishedDate": {
              "description": "Only return results published on or after this ISO 8601 date.",
              "format": "date-time",
              "type": "string"
            },
            "stream": {
              "default": false,
              "enum": [
                false
              ],
              "type": "boolean"
            },
            "systemPrompt": {
              "description": "Instruction that guides how the structured output is generated.",
              "type": "string"
            },
            "type": {
              "default": "auto",
              "description": "Search mode. auto lets Exa choose; the deep modes trade latency for higher-quality retrieval.",
              "enum": [
                "auto",
                "fast",
                "instant",
                "deep-lite",
                "deep",
                "deep-reasoning"
              ],
              "type": "string"
            }
          },
          "required": [
            "query"
          ],
          "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.017 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/exa.json POST /apis/v1/exa/search
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/search:
    post:
      tags:
        - default
      summary: Search
      description: >-
        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. Measured at 1.4 seconds — the fastest
        search here. Use current endpoint pricing and a fresh quote for this
        request. ⚠️ 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.
      operationId: post_exa_search
      requestBody:
        content:
          application/json:
            schema:
              properties:
                category:
                  description: Optional hint about the kind of pages to prioritize.
                  enum:
                    - company
                    - research paper
                    - news
                    - personal site
                    - financial report
                    - people
                  type: string
                contents:
                  description: Content options to return alongside each result.
                  properties:
                    highlights:
                      description: Return highlighted relevant snippets.
                      type: boolean
                    summary:
                      description: Return an AI-generated summary of the page.
                      type: boolean
                    text:
                      description: Return the full page text.
                      type: boolean
                  type: object
                endPublishedDate:
                  description: >-
                    Only return results published on or before this ISO 8601
                    date.
                  format: date-time
                  type: string
                excludeDomains:
                  description: Exclude results from these domains.
                  items:
                    type: string
                  type: array
                includeDomains:
                  description: Only return results from these domains.
                  items:
                    type: string
                  type: array
                numResults:
                  default: 10
                  description: Number of results to return.
                  maximum: 100
                  minimum: 1
                  type: integer
                outputSchema:
                  description: >-
                    JSON Schema used to synthesize a structured output from the
                    results.
                  type: object
                query:
                  description: The natural-language search query.
                  example: latest evaluation frameworks for AI agents
                  type: string
                startPublishedDate:
                  description: >-
                    Only return results published on or after this ISO 8601
                    date.
                  format: date-time
                  type: string
                stream:
                  default: false
                  enum:
                    - false
                  type: boolean
                systemPrompt:
                  description: >-
                    Instruction that guides how the structured output is
                    generated.
                  type: string
                type:
                  default: auto
                  description: >-
                    Search mode. auto lets Exa choose; the deep modes trade
                    latency for higher-quality retrieval.
                  enum:
                    - auto
                    - fast
                    - instant
                    - deep-lite
                    - deep
                    - deep-reasoning
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  costDollars:
                    description: >-
                      Upstream Exa cost breakdown. Informational only; it is not
                      the AIsa customer charge. Use a fresh quote for the actual
                      request.
                  output:
                    description: >-
                      Structured output, present only when outputSchema was
                      supplied.
                  requestId:
                    description: Exa request identifier.
                    type: string
                  results:
                    description: Ranked search results.
                    items:
                      properties:
                        author:
                          type: string
                        id:
                          type: string
                        publishedDate:
                          type: string
                        title:
                          type: string
                        url:
                          type: string
                      type: object
                    type: array
                type: object
          description: Search completed 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/exa/search \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "query": "latest evaluation frameworks for AI agents"
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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