Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.scrapellm.com/llms.txt

Use this file to discover all available pages before exploring further.

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:
  1. Store it securely — treat it like a password
  2. 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

X-API-Key: YOUR_API_KEY

Method 2: api_key query parameter

?api_key=YOUR_API_KEY

Example requests

curl "https://api.scrapellm.com/scrapers/chatgpt" \
  -H "X-API-Key: YOUR_API_KEY" \
  -G \
  --data-urlencode "prompt=What brands do marketers recommend?"

Authentication errors

If authentication fails, you’ll receive a 401 Unauthorized response:
{
  "detail": "Missing API key. Pass your key in the X-API-Key header or as ?api_key= in the URL."
}
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:
SCRAPELLM_API_KEY=your_api_key_here

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].