Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1 KB

File metadata and controls

40 lines (27 loc) · 1 KB

Authentication

All public endpoints require an API key.

Supported Headers

AnyCrawler accepts either of these header styles:

  • Authorization: Bearer <apiKey>
  • x-api-key: <apiKey>

The shared SDKs always send the Bearer form.

Recommended Option

Use Authorization: Bearer <apiKey> for new integrations. It is the default in the TypeScript, JavaScript, and Python SDK files in shared/sdks/.

Bearer Example

curl --request GET \
  --url "https://api.anycrawler.com/v1/account/usage" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer sk-your-key"

x-api-key Example

curl --request GET \
  --url "https://api.anycrawler.com/v1/account/usage" \
  --header "Accept: application/json" \
  --header "x-api-key: sk-your-key"

Notes

  • Public API keys are account-scoped.
  • Missing, invalid, or revoked API keys return 401 INVALID_API_KEY.
  • The public API does not use browser sessions or OAuth access tokens for API requests.