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

# arXiv

> Open-access repository of scientific preprints covering physics, mathematics, computer science, and related fields.

Open-access repository of scientific preprints covering physics, mathematics, computer science, and related fields. Best for finding cutting-edge research before formal publication, tracking new developments in AI/ML, and citing academic sources. Unlike Semantic Scholar (citation graphs across all journals), arXiv focuses on preprint access — the earliest public version of research.

1 endpoint available through Lava's AI Gateway. See the [arXiv API docs](https://info.arxiv.org/help/api/index.html) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

## Endpoints

### Search for papers

**GET** `https://export.arxiv.org/api/query?search_query=all:transformer+attention&max_results=5` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://export.arxiv.org/api/query?search_query=all:transformer+attention&max_results=5', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fexport.arxiv.org%2Fapi%2Fquery%3Fsearch_query%3Dall%3Atransformer%2Battention%26max_results%3D5" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </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>
