Authentication
ScrapeRex uses API keys for authentication. All requests must include your API key in the headers.
Getting Your API Key
ScrapeRex is available through RapidAPI. To get your API key:
- Create a free account on RapidAPI
- Subscribe to ScrapeRex (free tier includes 100 requests/month)
- Find your API key in the RapidAPI dashboard
Using Your API Key
Include these headers with every request:
Headers
X-RapidAPI-Key: your-api-key-here
X-RapidAPI-Host: scraperex1.p.rapidapi.comExample Request
Terminal
curl -X POST https://scraperex1.p.rapidapi.com/scrape \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: scraperex1.p.rapidapi.com" \
-d '{"url": "https://example.com"}'Direct API Access
For enterprise customers, we also offer direct API access without going through RapidAPI. Contact us at enterprise@scraperex.com for more information.
Rate Limits
Rate limits depend on your subscription tier:
| Plan | Requests/Month | Rate Limit |
|---|---|---|
| Free | 100 | 1 req/sec |
| Pro | 10,000 | 10 req/sec |
| Enterprise | Unlimited | Custom |
Error Responses
If authentication fails, you'll receive a 403 Forbidden response:
error.json
{
"status": "fail",
"message": "Unauthorized",
"errors": [{"auth": "Invalid or missing API key"}]
}Security Best Practices
- Never expose your API key in client-side code or public repositories
- Use environment variables to store your API key
- Rotate your key if you suspect it has been compromised
- Monitor your usage in the RapidAPI dashboard for unusual activity