The ScrapeLLM API uses API key authentication. Include your key in every request using theDocumentation Index
Fetch the complete documentation index at: https://docs.scrapellm.com/llms.txt
Use this file to discover all available pages before exploring further.
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
Using your API key
Method 1: X-API-Key header (recommended)
Method 2: api_key query parameter
Example requests
Authentication errors
If authentication fails, you’ll receive a401 Unauthorized response:
- Missing key: No
X-API-Keyheader and noapi_keyquery 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