Build a B2B Prospect List in 30 Minutes with a LinkedIn Data API (Python)
Last updated: 2026-09-02 · AntsData LinkedIn data API
The goal
Turn "I need 200 prospects in fintech in Singapore" into a CSV-ready list — in 30 minutes, no manual LinkedIn clicking. A LinkedIn data API (pay-per-record, like AntsData) returns structured prospect data you can filter and export programmatically.
Step 1 — Get your token
Sign up at antsdata.com ($5 free trial), copy your Bearer token.
Step 2 — Pull target companies
import requests
API = "https://api.antsdata.com/v1"
headers = {"Authorization": "Bearer <YOUR_TOKEN>"}
# Company data for target accounts (hiring signals, size, industry)
for company_url in [
"https://www.linkedin.com/company/acme-fintech",
"https://www.linkedin.com/company/beta-bank",
]:
r = requests.get(f"{API}/linkedin/company/{company_url}",
headers=headers, timeout=60)
print(company_url.split("/")[-1], r.json().get("name"), r.json().get("size"))
Step 3 — Enrich with job signals
# Jobs per company — accounts that are hiring are accounts that buy
r = requests.get(f"{API}/linkedin/jobs/by-company",
params={"company": "Acme Fintech"},
headers=headers, timeout=60)
for job in r.json().get("jobs", [])[:10]:
print(job.get("title"), "@", job.get("company"))
Step 4 — Assemble the list
import csv
rows = [] # company, job signal, notes
# ... combine API responses ...
with open("prospects.csv", "w", newline="") as f:
writer = csv.writer(f)
writer.writerows(["company", "hiring_signal", "notes"])
writer.writerows(rows)
print(f"✅ {len(rows)} prospects ready for your CRM/sequences")
What makes this work
- Pay per record — pull exactly what you need, no subscription
- Structured JSON — no HTML parsing
- Hiring signals — jobs data tells you who's investing (and buying)
- Speed — 30 minutes including the coffee
FAQ
How do I find target companies' LinkedIn URLs?
Search LinkedIn company pages, or use your CRM/ICP list — the API accepts company URLs or names.
Can I pull contact profiles too?
Yes — profile endpoints return title, location and company data for prospect lists.
Is 30 minutes realistic?
Yes — the pattern above is three API calls: companies, jobs, then assemble. Most time is deciding your ICP.
What if I need thousands of prospects?
Scale to thousands/day is the API's natural pattern — loop with rate-limit respect and pagination.
Do I need engineering skills?
Basic Python. If you don't code, a no-code tool + the API's JSON output also works.
Discussion
What's your ICP and how long does your current prospecting take? Try the 30-minute pattern and report back below.
Product: antsdata.com — LinkedIn data API with $5 free trial. Contact: hai.zhou@xiaoxitech.com.
Top comments (0)