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

> Run a neural semantic web search from a natural-language query and get back the most relevant results.

Search the open web with a natural-language `query` and get back the most relevant results, ranked by semantic relevance rather than keywords. Tune retrieval with `type` (from `fast` up to `deep-reasoning`), bound the result count with `numResults` (1–100, default 10), and narrow the set with `category`, `includeDomains`/`excludeDomains`, or a published-date range.

Set `contents` to pull page `text`, `highlights`, or an AI `summary` inline with each result, and supply an `outputSchema` (optionally with a `systemPrompt`) to have Exa synthesize a structured `output`. Billed at a flat **\$0.08** per successful request; upstream 4xx responses are not billed. When you already know the exact pages you want, [`post_exa-contents`](/docs/api-reference/search/post_exa-contents) fetches their full text directly.


## OpenAPI

````yaml openapi/exa.json POST /exa/search
openapi: 3.0.0
info:
  title: Exa API
  version: 1.0.0
  description: >-
    Unified API documentation for Exa neural semantic search endpoints exposed
    through the AIsa gateway: Search, Contents, Answer, and the asynchronous
    research Agent Runs.


    Search, Contents, and Answer are synchronous and billed at a flat $0.08 per
    successful request. Agent Runs is asynchronous: the caller submits a run and
    then polls the returned job resource for status and results, billed at a
    flat $0.10 per run. Upstream 4xx responses (for example 401/403/404) are not
    billed. The `costDollars` field that Exa returns is the upstream cost
    breakdown and is informational only — customer billing follows the flat AIsa
    prices above.
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - bearerAuth: []
paths:
  /exa/search:
    post:
      tags:
        - https://docs.exa.ai/reference/search
      summary: Run a neural semantic web search.
      description: >-
        Synchronous. Search the open web with a natural-language query and get
        back the most relevant results, optionally with page contents inline.
        Billed at a flat $0.08 per successful request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  description: The natural-language search query.
                  example: latest evaluation frameworks for AI agents
                type:
                  type: string
                  enum:
                    - auto
                    - fast
                    - instant
                    - deep-lite
                    - deep
                    - deep-reasoning
                  default: auto
                  description: >-
                    Search mode. auto lets Exa choose; the deep modes trade
                    latency for higher-quality retrieval.
                numResults:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 10
                  description: Number of results to return.
                category:
                  type: string
                  enum:
                    - company
                    - research paper
                    - news
                    - personal site
                    - financial report
                    - people
                  description: Optional hint about the kind of pages to prioritize.
                includeDomains:
                  type: array
                  items:
                    type: string
                  description: Only return results from these domains.
                excludeDomains:
                  type: array
                  items:
                    type: string
                  description: Exclude results from these domains.
                startPublishedDate:
                  type: string
                  format: date-time
                  description: >-
                    Only return results published on or after this ISO 8601
                    date.
                endPublishedDate:
                  type: string
                  format: date-time
                  description: >-
                    Only return results published on or before this ISO 8601
                    date.
                contents:
                  type: object
                  description: Content options to return alongside each result.
                  properties:
                    text:
                      type: boolean
                      description: Return the full page text.
                    highlights:
                      type: boolean
                      description: Return highlighted relevant snippets.
                    summary:
                      type: boolean
                      description: Return an AI-generated summary of the page.
                outputSchema:
                  type: object
                  description: >-
                    JSON Schema used to synthesize a structured output from the
                    results.
                systemPrompt:
                  type: string
                  description: >-
                    Instruction that guides how the structured output is
                    generated.
              required:
                - query
      responses:
        '200':
          description: Search completed successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  requestId:
                    type: string
                    description: Exa request identifier.
                  results:
                    type: array
                    description: Ranked search results.
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                        url:
                          type: string
                        publishedDate:
                          type: string
                        author:
                          type: string
                        id:
                          type: string
                  output:
                    description: >-
                      Structured output, present only when outputSchema was
                      supplied.
                    nullable: true
                  costDollars:
                    description: >-
                      Upstream Exa cost breakdown. Informational only; customer
                      billing is the flat $0.08.
                    nullable: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````