Skip to main content

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 the x-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 a 401 or 403 response: Example 401 response:
Example 403 response:

Keeping your key safe

Never commit your API key to version control or include it in client-side code that runs in a browser. Treat it like a password.
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