LinkedIn people search API
LinkedIn’s people search: keywords, title, first and last name, current and past company ids, location ids, industry ids, school ids, network degree and profile language, ten people a page with headline, location and profile URL.
GET /v1/linkedin/search/peopleNot switched on yet5 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/linkedin/search/people?title=VP%20Sales&geo_ids=102257491&industry_ids=43",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()No bundled sample for this call. The response is a LinkedInPeoplePage; its fields are listed below.
Parameters
| Name | Type | Description |
|---|---|---|
keywordsquery | string | Words to match anywhere on the profile. Example: vp sales fintech. |
first_namequery | string | First name. Example: Jane. |
last_namequery | string | Last name. Example: Doe. |
titlequery | string | Current job title words. Example: head of growth. |
company_idsquery | string | Current company: numeric ids, comma-separated (up to 10). Example: 1035,1441. |
past_company_idsquery | string | Past company: numeric ids, comma-separated (up to 10). Example: 1035. |
geo_idsquery | string | Location (geo ids from linkedin_search_locations): numeric ids, comma-separated (up to 10). Example: 102257491. |
industry_idsquery | string | Industry: numeric ids, comma-separated (up to 10). Example: 43. |
school_idsquery | string | School: numeric ids, comma-separated (up to 10). Example: 1503. |
networkquery | string | Network distance from the session: F (1st), S (2nd), O (3rd and beyond). Example: F,S. |
profile_languagequery | string | Profile language (ISO 639-1). Example: en. |
connection_ofquery | string | Only connections of this member: their profile id (ACoAA…, profile_urn from another call). Works only when the member shows their connections. Example: ACoAASYNTHETIC00000000000000000000000001. |
afterquery | string | Cursor: the previous page’s after, unchanged. |
accountquery | string | Optional: the id of a LinkedIn account you connected (POST /v1/linkedin/accounts). The read then runs as that account (what it can see, its network distance) instead of on the shared pool. Example: csn_01JDX9EXAMPLE0000000000. |
Response fields
200 with a LinkedInPeoplePage, in LinkedIn’s own schema.org JSON-LD, with the rest of the public page beside it.
| Field | Type | Description |
|---|---|---|
total | integer | null | LinkedIn’s result count; at most the first 1,000 can be paged through. |
data | LinkedInPersonHit[] | |
hidden_results | integer | Out-of-network members LinkedIn showed as "LinkedIn Member" on this page. |
after | string | null | Pass as after for the next page; null at the end. |
Status codes
| Status | Meaning |
|---|---|
200 | A page of people. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | LinkedIn has no such public page, or it was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
When can I use it?
It needs a signed-in LinkedIn session. Our shared, paced pool of sessions is not switched on yet, so a call answers 503 upstream_unavailable and is never charged. It is listed so you can plan for it.
How deep can I page?
LinkedIn shows up to 1,000 results per search. Split a broad search by location or company to see more.
LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.