Getting started with the API

Generate an API key and make your first request.

Written by the LeadScraper Team · 1 min read

  1. Go to Settings › API and click Generate key.
  2. Copy the key and store it securely — it's only shown once.
  3. Send it in the Authorization: Bearer YOUR_KEY header on each request.

⚠️ Important: Treat API keys like passwords. Never put them in front-end code or public repos. If a key is exposed, revoke it in Settings › API and generate a new one.

API requests use the same credits as the app. Rate limits depend on your plan.

Example request

A typical request looks like this (the exact endpoints are listed in the API reference):

GET /v1/lists with the header Authorization: Bearer YOUR_KEY

What you can do with the API

  • Start searches and check their status
  • Read and create lists
  • Get leads and add leads to lists
  • Run enrichment and verification

Rate limits and errors

Response Meaning
401 Missing or invalid API key
402 Not enough credits
429 Too many requests — wait and retry
5xx Temporary server problem — retry with a delay

Managing keys

Create separate keys for each app or integration so you can revoke one without breaking the others. Name each key so you know what it's for.

Did this answer your question?