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:

  1. Create a free account on RapidAPI
  2. Subscribe to ScrapeRex (free tier includes 100 requests/month)
  3. 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.com

Example 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:

PlanRequests/MonthRate Limit
Free1001 req/sec
Pro10,00010 req/sec
EnterpriseUnlimitedCustom

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