API Authentication

Authenticate your API requests with API keys

Authentication Required

All API requests must include a valid API key in the request headers.

Header-Based Authentication

Pass your API key in the X-API-KEY header:

Terminal
curl -X POST https://api.scrapehub.io/v4/scrape \ -H "X-API-KEY: sk_live_xxxx_449x" \ -H "Content-Type: application/json" \ -d '{"target": "https://example.com"}'

Authentication Errors

401 Unauthorized

Missing or invalid API key. Check your authentication credentials.

403 Forbidden

API key doesn't have permission for this resource.