# API keys for the Spider web scraping API | Spider

Create a Spider API key and use it on the API, the cloud browser and the proxies. Name each key, see the hour it was last used and revoke it at once.

Canonical: https://spider.cloud/api-keys/

## One API key. Three hosts.

A crawler, a headless browser and a proxy network usually mean three vendors and three secrets. Spider runs all three, and one key works on all of them.

| Name        | Key         | Created      | Last used        | Actions |
| ----------- | ----------- | ------------ | ---------------- | ------- |
| production  | `sk-…9f3ka` | Oct 14, 2026 | Nov 30, 9:00 AM  | Revoke  |
| staging     | `sk-…2m7qd` | Nov 3, 2026  | Nov 28, 4:00 PM  | Revoke  |
| ci          | `sk-…h4t0e` | Nov 12, 2026 | Nov 29, 11:00 PM | Revoke  |
| claude-code | `sk-…x81pw` | Nov 21, 2026 | never            | Revoke  |

Sample keys. Sign in and this panel lists yours.

The request header: Authorization: Bearer $SPIDER_API_KEY

[Get an API key](https://spider.cloud/register/?next=/api-keys/) [Try a request first](https://spider.cloud/playground/)

No card required.

## Where the key goes on each host.

Each of the three hosts reads the key from a different place. Set it once as `SPIDER_API_KEY` and the lines here run as written.

### api.spider.cloud

A Bearer token in the Authorization header.

```
curl -X POST https://api.spider.cloud/scrape \  -H "Authorization: Bearer $SPIDER_API_KEY" \  -H "Content-Type: application/json" \  -d '{"url": "https://example.com"}'
```

[API reference](https://spider.cloud/docs/api/)

### browser.spider.cloud

The token parameter on the WebSocket address.

```
wss://browser.spider.cloud/v1/browser?token=$SPIDER_API_KEY
```

[Cloud browser](https://spider.cloud/browser/)

### proxy.spider.cloud

The proxy username. Options such as the country go in the password.

```
curl -x "http://$SPIDER_API_KEY:country_code=us@proxy.spider.cloud:8888" \  https://example.com
```

[Proxy reference](https://spider.cloud/docs/api/proxy/)

## What each row of the panel holds.

- Name

  You choose it, and no two keys share one. Name a key for the service that holds it, so you know what stops when you revoke it.

- Key

  The full key appears once, when you create it. After that the panel shows its last five characters.

- Created

  The day you made the key, which tells you how long it has been in use.

- Last used

  The hour of the most recent request. A key that has sat idle for months is easy to find.

- Revoke

  Disables the key at once. A request that still sends it is rejected.

## Questions about keys.

Does an API key cost anything?

No. Creating a key is free and an account can hold more than one. A new account gets 2,500 free credits, worth $0.25, if your signup passes our checks. No card required.

What can I call without a key?

Keyless access is /scrape only and needs no account. Send Authorization: Bearer free. It is rate limited. On a 429, honor Retry-After. Get a key for anything sustained. Without a key, every route returns 402 with an x402 payment challenge, /scrape included, except /unlimited/\*, which returns 401. With Bearer free, every route other than /scrape returns 402.

Can I see a key again after I create it?

No. The panel shows the full key once. If you lose it, create a new key, move your service to it and revoke the old one.

Do the cloud browser and the proxies need keys of their own?

No. One key works on all three hosts. Create a second key when you want to revoke one service without stopping another.

How does a coding agent get a key?

It asks for one. Add the Spider MCP server with no key in the command, for example claude mcp add --transport http spider https\://mcp.spider.cloud/mcp. The first tool call opens an approval page, and approving it gives that client a key of its own.

Where should I keep the key?

In an environment variable or a secret store on your server. Keep it out of browser code and public repositories. Spider may disable a key it finds published.

My request came back 401. What now?

Send Authorization: Bearer with a key from https\://spider.cloud/api-keys.

## Name a key and send the first request.

The key works on all three hosts as soon as you copy it.

[Get an API key](https://spider.cloud/register/?next=/api-keys/)
