The ScrapeLLM API uses API key authentication. Include your key in every request using the X-API-Key header or the api_key query parameter.
Getting your API key
Sign up at scrapellm.com/signup - 1,500 free credits, no credit card required.
Manage your API keys from the dashboard. Once you have your key:
- Store it securely - treat it like a password
- Never expose it in client-side code or public repositories
Never expose your API key in client-side JavaScript, public repositories, or
share it with unauthorised users.
Using your API key
Method 2: api_key query parameter
Example requests
Authentication errors
If authentication fails, you’ll receive a 401 Unauthorized response:
Common authentication issues:
- Missing key: No
X-API-Key header and no api_key query param present
- Invalid key: The key doesn’t match any active key in the database
- Credit limit: Your account has no remaining credits (returns
429)
Environment variables
Store your API key in environment variables - never hard-code it:
API key management
Creating new keys
Create and manage keys from the dashboard. Consider separate keys for different environments:
- Production - your live application
- Development - local development and testing
- CI/CD - automated testing pipelines
Revoking keys
If a key is compromised, revoke it immediately from the dashboard. The old key stops working instantly.
Need help?
If you’re having trouble with authentication, contact [email protected].