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

# Authentication

> Using your API key

Once you have an API key, you can query the endpoints that you've been granted access to.

If you don't already have an API key, be sure to follow this guide:

> [card] [Don't have an API key?](request-api-key)
>
> Request an API key

The server requires authentication. Pass your API key using **either** a custom header **or** a bearer token:

```bash x-api-key header theme={null}
curl --request GET \
  --url https://api.statista.ai/v1/<ENDPOINT> \
  --header 'x-api-key: YOUR_API_KEY'
```

```bash Authorization bearer theme={null}
curl --request GET \
  --url https://api.statista.ai/v1/<ENDPOINT> \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

Your API key authenticates each session and provides access to the MCP Server.

## Explore

> [card] [Playground](https://docs.platform.statista.ai/api-reference/discovery-advanced/get-search-statistics.md)
>
> Get started quickly by running a curl command

> [card] [Explore API Reference](https://docs.platform.statista.ai/api-reference/introduction.md)
>
> Learn more about the data you can retrieve with the Statista API


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