Skip to main content

Authentication

Learn how to authenticate with the Easy Scrape API to start making requests.

API Key Required

Easy Scrape API requires authentication using an API key. Currently, the API is available through RapidAPI, which handles authentication automatically.

Getting Your API Key

Through RapidAPI

  1. Visit the Easy Scrape API on RapidAPI
  2. Subscribe to one of the available plans
  3. Your API key will be automatically generated
  4. Use the RapidAPI headers for authentication

Authentication Headers

When making requests through RapidAPI, include these headers:

X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
X-RapidAPI-Host: easy-scrape-api.rapidapi.com
Content-Type: application/json

Testing Authentication

You can test your authentication with a simple request:

curl -X POST "https://easy-scrape-api.p.rapidapi.com/api/scrape" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: easy-scrape-api.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"url": "https://httpbin.org/get"
}'

Error Responses

If authentication fails, you'll receive one of these error responses:

Missing API Key

{
"error": "API key is required",
"code": "MISSING_API_KEY",
"statusCode": 401
}

Invalid API Key

{
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"statusCode": 401
}

Rate Limits

Rate limits depend on your RapidAPI subscription plan. Check your plan details on RapidAPI for specific limits.

tip

Keep your API key secure and never expose it in client-side code or public repositories.