Skip to content
linkedindataapi.com

Overview

Available credits

Base rate

Rate limit

API key

No active key

Send it in the x-api-key header. Keys in the URL are rejected.

Generate a new key?

Your current key stops working immediately. Any app using it will get 401 errors until you switch to the new key.

Production Batch Starter Scripts & Quickstart

Paginates decision-maker search by company and title filter (e.g. VP, Director, Head of AI) and exports leads to CSV.

import csv, requests

API_KEY = "b2b_live_your_api_key"
leads = []

for page in range(1, 21):
    res = requests.get(
        "https://api.linkedindataapi.com/v1/people/search",
        params={"company": "stripe", "title": "VP", "country_code": "US", "page": page, "limit": 25},
        headers={"x-api-key": API_KEY},
        timeout=30,
    ).json()
    items = (res.get("data") or {}).get("items") or []
    if not items:
        break
    for u in items:
        leads.append({
            "username": u.get("username"),
            "full_name": u.get("full_name"),
            "title": u.get("current_title"),
            "company": u.get("current_company"),
            "location": u.get("location"),
            "profile_url": u.get("profile_url"),
        })
    if not (res.get("meta") or {}).get("has_more"):
        break

with open("b2b_decision_makers.csv", "w", newline="", encoding="utf-8") as f:
    w = csv.DictWriter(f, fieldnames=["username", "full_name", "title", "company", "location", "profile_url"])
    w.writeheader()
    w.writerows(leads)
print(f"Saved {len(leads)} decision-makers to b2b_decision_makers.csv")

Replace b2b_live_your_api_key with your key, or click Generate new key to inject your live key into these scripts automatically.

Usage