100 free credits. No credit card required. Get a key

LinkedIn Sales Navigator lead search API

Sales Navigator lead search on your connected account’s seat: titles, current and past company, region, industry, seniority, function, headcount, years in role, recent job changes and recent posters, 25 leads a page.

GET /v1/linkedin/accounts/{account}/salesnav/leadsBeta5 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/linkedin/accounts/csn_01JDX9EXAMPLE0000000000/salesnav/leads?titles=VP%20Sales&region_ids=102257491&seniority=vp",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 5 credits

No bundled sample for this call. The response is a LinkedInSalesLeadsPage; its fields are listed below.

Parameters

NameTypeDescription
accountpath · requiredstringThe id of the LinkedIn account you connected (from GET /v1/linkedin/accounts). Example: csn_01JDX9EXAMPLE0000000000.
keywordsquerystring
titlesquerystringCurrent job titles as text, comma-separated (any of them). Example: VP Sales,Head of Sales.
current_company_idsquerystringNumeric company ids.
past_company_idsquerystringNumeric company ids.
region_idsquerystringGeo ids. Example: 103644278.
industry_idsquerystring
seniorityquerystringComma-separated: in_training, entry, senior, strategic, entry_manager, experienced_manager, director, vp, cxo, owner_partner. Example: vp,cxo.
function_idsquerystringSales Navigator function ids.
headcountquerystringCompany size codes, comma-separated: A self-employed, B 1-10, C 11-50, D 51-200, E 201-500, F 501-1,000, G 1,001-5,000, H 5,001-10,000, I 10,001+.
years_in_rolequerystringComma-separated: 1 (<1 year), 2 (1-2), 3 (3-5), 4 (6-10), 5 (10+).
years_at_companyquerystringAs years_in_role.
years_experiencequerystringAs years_in_role.
changed_jobsquery"true" | "false"true: changed jobs in the last 90 days. One of true, false.
posted_on_linkedinquery"true" | "false"true: posted on LinkedIn in the last 30 days. One of true, false.
relationshipquerystringComma-separated: F (1st), S (2nd), O (3rd and beyond).
first_namequerystring
last_namequerystring
school_idsquerystring
afterquerystringCursor: the previous page’s after, unchanged.
Response fields

200 with a LinkedInSalesLeadsPage, in LinkedIn’s own schema.org JSON-LD, with the rest of the public page beside it.

FieldTypeDescription
accountstringThe connected account id (csn_…).
totalinteger | null
total_displaystring | nullAs Sales Navigator shows it, e.g. "11M+".
dataLinkedInSalesLead[]
afterstring | nullCursor for the next page (pass it as after); null on the last.
Status codes
StatusMeaning
200One page of leads.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404LinkedIn has no such public page, or it was removed.
429Too many requests. Wait for Retry-After seconds.
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Whose LinkedIn account does it use?

Only one you connected yourself with POST /v1/linkedin/accounts (your session’s cookies, never your password), and only with your API key. Someone else’s account id answers 404, an account LinkedIn asked for a security check answers 403 until you reconnect it.

Do I need Sales Navigator?

Yes: it runs on your connected account’s own Sales Navigator seat. Connect the account with its li_a cookie (LinkedIn sets it once you open Sales Navigator in that browser). Without a seat it answers 403 forbidden, never charged.

LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.