Secure API Access

Authentication

All API requests require authentication using an API key. Get your API key from the dashboard after signing up.

API Key Authentication

Include your API key in the X-API-KEY header with every request.

curl -X GET "https://scrappa.co/api/google/search?q=coffee" \
  -H "X-API-KEY: YOUR_API_KEY"

Getting Your API Key

1

Sign up

Create a free account at scrappa.co

2

Navigate to Dashboard

Go to your account dashboard

3

API Keys Section

Find the API Keys section in the menu

4

Copy Your Key

Copy your API key or create a new one

Authentication Errors

If your API key is missing or invalid, you'll receive a 401 Unauthenticated response:

{
  "message": "Unauthenticated"
}

Security Best Practices

Never commit your API key to version control
Store API keys in environment variables or secure config files
Rotate your API keys regularly
Use different API keys for dev, staging, and production
Revoke compromised keys immediately and generate new ones

Keep Your API Key Secret

Never expose your API key in client-side code or public repositories. If you suspect your key has been compromised, revoke it immediately from your dashboard.