Authentication
Authentication is handled with a simple API key. You can check yours here.
Authentication is done via the x-api-key
HTTP header. If you don't include your API key, or your API key is invalid, you will receive a 401 Unauthorized
HTTP error.
You can refresh your API key at any time through the Rocket Scraper dashboard. This will invalidate your previous key, so make sure to update any applications using the old key.
Example Request
You can authenticate either through direct API calls or by using our official SDKs.
Direct API Call
curl -X POST \
https://api.rocketscraper.com/scrape \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json'
// ... request body omitted ...
Using our SDKs (Recommended)
We provide official SDKs for Python and Node.js that handle authentication automatically. Check out our Python SDK Guide and Node.js SDK Guide for detailed examples and documentation.