> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Exa

> Semantic search engine that finds web pages by meaning rather than keywords, with built-in content extraction.

Semantic search engine that finds web pages by meaning rather than keywords, with built-in content extraction. Best for discovering conceptually similar content, research synthesis, and extracting clean text from found pages. Unlike keyword-based engines (Serper, Brave), Exa uses neural embeddings to match intent — ideal when the right search terms aren't obvious.

3 endpoints available through Lava's AI Gateway. See the [Exa API docs](https://exa.ai/docs/reference/quickstart) for full documentation.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### Semantic search for web pages

**POST** `https://api.exa.ai/search` — \$0.007 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.exa.ai/search', { body: {"query":"your search query"} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.exa.ai%2Fsearch" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"query":"your search query"}'
    ```
  </Tab>
</Tabs>

### Extract clean content from result pages

**POST** `https://api.exa.ai/contents` — \$0.001 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.exa.ai/contents', { body: {"ids":["result-id"]} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.exa.ai%2Fcontents" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"ids":["result-id"]}'
    ```
  </Tab>
</Tabs>

### Find pages similar to a given URL

**POST** `https://api.exa.ai/findSimilar` — \$0.007 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.exa.ai/findSimilar', { body: {"url":"https://arxiv.org/abs/2307.06435"} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.exa.ai%2FfindSimilar" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"url":"https://arxiv.org/abs/2307.06435"}'
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
