Authentication
The LinkedIn Scraper API uses API keys to authenticate every request. There are no OAuth flows or session tokens — just a single header.Including your API key
Pass your API key in thex-api-key header on every request:
The
x-api-key header is required on all /scrape requests. Health and metrics endpoints do not require authentication.Getting an API key
API keys are issued by the API provider. If you do not have one yet, contact your provider to request access. Each key has:- A rate limit (requests per second) specific to your account
- An expiration date after which the key stops working
Error responses
If authentication fails, you’ll receive a401 or 403 response:
Example
401 response:
403 response:
Keeping your key safe
Best practices:- Store your key in an environment variable (e.g.,
LINKEDIN_API_KEY) - Rotate your key periodically — contact your provider to issue a new one
- Do not share your key across multiple applications if they have different rate-limit needs
Next steps
- Quickstart — see the API key in action
- Rate Limiting — understand your per-key request limits
- Scrape API Reference — full endpoint documentation