AuthenticationMenu
Authentication
Every request is authenticated with a secret API key that belongs to your account.
Sending your key
Send the key in the Authorization header as a bearer token. The X-Api-Key header is accepted as an alternative.
curl https://api.scrapeeverything.com/v1/account \
-H "Authorization: Bearer $SCRAPEEVERYTHING_API_KEY"Keys start with ssk_live_ followed by 40 characters. The full key is shown once when you create it. We only store a hash, so a lost key cannot be recovered: revoke it and create a new one.
Keys in the URL are rejected with
API_KEY_IN_URL, because URLs end up in logs and browser history. The API also refuses secret keys sent from a browser page (SECRET_KEY_IN_BROWSER), so never ship a secret key in front-end or mobile app code. To call the API from a public page, use a browser key.Restricting a key to your servers
Each key can have an allowlist of up to 20 IP addresses or CIDR ranges (IPv4 and IPv6). Requests from other addresses fail with 403 IP_NOT_ALLOWED, so a leaked key is useless outside your infrastructure. Set it when you create the key or later with Edit on the API keys page.
Rotating a key
- Create a new key and deploy it to your servers.
- Check the Last used column to confirm the old key is no longer in use.
- Revoke the old key. Revocation takes effect immediately.
You can have up to 10 active keys. They share your account's credits and rate limits.
Authentication errors
| Status | Code | Meaning |
|---|---|---|
| 401 | AUTH_REQUIRED | No key was sent. |
| 401 | INVALID_API_KEY | The key is malformed, unknown or revoked. |
| 400 | API_KEY_IN_URL | The key was sent as a query parameter. |
| 403 | IP_NOT_ALLOWED | The key has an IP allowlist that does not include the caller. |
| 403 | SECRET_KEY_IN_BROWSER | A secret key was sent from a browser page. Use a browser key there. |
| 403 | ACCOUNT_SUSPENDED | The account was suspended. Contact support. |
| 429 | AUTH_BLOCKED | Too many failed attempts from your IP address. Wait a few minutes. |
- To test a key without spending credits, call
GET /v1/account. See Account endpoints.