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

# Step 1: Authorization

> Send your API key with every v2 request

Each request to the API requires an authorization token. This identifies you as a GWI customer and also allows us to look up the access rights that were pre-configured for you. v2 uses the same token as v1.

Send the token in the `Authorization` header of every request, prepended with `Bearer` and a space:

```bash theme={null}
curl "https://api.globalwebindex.com/v2/spark-api/datasets" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

A missing or invalid token returns `401` with a `{ "message" }` body. See [Errors](https://api.globalwebindex.com/docs/spark-api/v2/getting-started/errors.md).

The next steps use one example throughout: "electric car ownership among Gen Z in the UK in Q1 2025". The examples are real responses, shortened to keep them readable.
