Scrape Everything
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

  1. Create a new key and deploy it to your servers.
  2. Check the Last used column to confirm the old key is no longer in use.
  3. 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

StatusCodeMeaning
401AUTH_REQUIREDNo key was sent.
401INVALID_API_KEYThe key is malformed, unknown or revoked.
400API_KEY_IN_URLThe key was sent as a query parameter.
403IP_NOT_ALLOWEDThe key has an IP allowlist that does not include the caller.
403SECRET_KEY_IN_BROWSERA secret key was sent from a browser page. Use a browser key there.
403ACCOUNT_SUSPENDEDThe account was suspended. Contact support.
429AUTH_BLOCKEDToo many failed attempts from your IP address. Wait a few minutes.