Docs / Search

search_linkedin_people

Search people on ordinary LinkedIn, with each LinkedIn filter as its own typed input.

This action only reads. It changes nothing, so it is safe to try.

What you give it

InputWhat it isWhere to get it
keywords
optional
Text. Name, title, company or any words.You write it.
industry
optional
A search filter id. Industries: ids from lookup_search_ids type INDUSTRY.run lookup_search_ids with type INDUSTRY, and use matches[].id from its answer.
location
optional
A search filter id. Places: ids from lookup_search_ids type LOCATION.run lookup_search_ids with type LOCATION, and use matches[].id from its answer.
profileLanguage
optional
A list (text, up to 2 characters). Profile languages, as two-letter codes such as "en".You write it.
networkDistance
optional
A list (one of: 1, 2, 3). Connection degrees from you: 1, 2, 3.You write it.
company
optional
A search filter id. Current companies: ids from lookup_search_ids type COMPANY.run lookup_search_ids with type COMPANY, and use matches[].id from its answer.
pastCompany
optional
A search filter id. Past companies: ids from lookup_search_ids type COMPANY.run lookup_search_ids with type COMPANY, and use matches[].id from its answer.
school
optional
A search filter id. Schools: ids from lookup_search_ids type SCHOOL.run lookup_search_ids with type SCHOOL, and use matches[].id from its answer.
service
optional
A search filter id. Service categories they offer: ids from lookup_search_ids type SERVICE.run lookup_search_ids with type SERVICE, and use matches[].id from its answer.
connectionsOf
optional
A search filter id. People whose connections to search: ids from lookup_search_ids type CONNECTIONS.run lookup_search_ids with type CONNECTIONS, and use matches[].id from its answer.
followersOf
optional
A search filter id. People whose followers to search: ids from lookup_search_ids type PEOPLE.run lookup_search_ids with type PEOPLE, and use matches[].id from its answer.
openTo
optional
A list (one of: proBono, boardMember). Open to pro bono work or to a board seat.You write it.
advancedKeywords
optional
A group of fields. Words that must appear in one part of the profile: first name, last name, title, company or school.
What goes inside
  • firstName (optional): text.
  • lastName (optional): text.
  • title (optional): text.
  • company (optional): text.
  • school (optional): text.
You write it.
limit
optional
A number, 1 to 10. How many to return (1–10, default 10).You write it.
cursor
optional
A cursor. nextCursor from the previous call, to get the next page. Keep the other arguments the same.The nextCursor from the last answer of search_linkedin_people.
connectionId
optional
A connection id. Which of your LinkedIn accounts to act from (its id from list_linkedin_accounts). Omit to use your first live one.Run list_linkedin_accounts and use accounts[].id from its answer.
15 more places to get it

Call it

curl -X POST https://api.heyreagent.com/v1/actions/search_linkedin_people \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "content-type: application/json" \
  -d '{"keywords":"head of sales"}'
The same call in JavaScript
const response = await fetch("https://api.heyreagent.com/v1/actions/search_linkedin_people", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_KEY",
    "content-type": "application/json",
  },
  body: JSON.stringify({
    "keywords": "head of sales"
  }),
});
const answer = await response.json();
console.log(answer);
The same call in Python
import requests

response = requests.post(
    "https://api.heyreagent.com/v1/actions/search_linkedin_people",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={
        "keywords": "head of sales",
    },
)
print(response.json())
The same call in n8n

Add an HTTP Request node and fill it in like this:

MethodPOST
URLhttps://api.heyreagent.com/v1/actions/search_linkedin_people
Send HeadersOn. Name Authorization, Value Bearer YOUR_KEY
Send BodyOn. Body Content Type JSON, Specify Body Using JSON, then paste the body below
{
  "keywords": "head of sales"
}

Put your own key where it says YOUR_KEY. New here? Start with your first call.

What you get back

When it worked, the answer is { "ok": true, "result": { … } }. Inside result:

returnednumber
nextCursorA cursor. Other actions take it.
results[].typePEOPLE
results[].idA member id. Other actions take it.
results[].publicIdentifierA public identifier. Other actions take it.
results[].publicProfileUrlA profile link. Other actions take it.
results[].profileUrlA profile link. Other actions take it.
results[].profilePictureUrlstring or null
results[].profilePictureUrlLargestring or null
results[].memberUrnstring or null
results[].namestring or null
results[].firstNamestring
results[].lastNamestring
results[].networkDistanceSELF | DISTANCE_1 | DISTANCE_2 | DISTANCE_3 | OUT_OF_NETWORK
results[].locationstring or null
results[].industrystring or null
results[].keywordsMatchstring
results[].headlinestring
results[].connectionsCountnumber
results[].followersCountnumber
results[].pendingInvitationboolean
results[].canSendInmailboolean
results[].hiddenCandidateboolean
results[].interestLikelihoodstring
results[].recruiterCandidateIdstring
results[].recruiterPipelineCategorystring
results[].premiumboolean
results[].verifiedboolean
results[].sharedConnectionsCountnumber
results[].recentPostsCountnumber
results[].recentlyHiredboolean
results[].mentionedInTheNewsboolean
results[].interestsstring

A field that does not apply to an answer is left out, or is null. There are 82 more fields nested inside these.

An example answer

A sample from the documentation of the API underneath, put in the shape this action returns it. Lists are cut to their first entry.

{
  "returned": 1,
  "nextCursor": "eyJhY2NvdW50X2lkIjoiOFJma0txU0tSTy1JbXpKT2k4T1I1USIsImxpbWl0IjoxMCwic3RhcnQiOjEwLCJwYXJhbXMiOnsiYXBpIjoiY2xhc3NpYyIsImNhdGVnb3J5IjoicGVvcGxlIiwibG9jYXRpb24iOlsxMDIyNzczMzEsMTAyNDQ4MTAzXX19",
  "total": 1000,
  "results": [
    {
      "type": "PEOPLE",
      "id": "ACoAAAdHsOUBYtAunOfY0wJIbiwgewolov5X55M",
      "name": "Piyush Narwani",
      "memberUrn": "urn:li:member:122138853",
      "profileUrl": "https://www.linkedin.com/in/piyushnarwani?miniProfileUrn=urn%3Ali%3Afs_miniProfile%3AACoAAAdHsOUBYtAunOfY0wJIbiwgewolov5X55M",
      "networkDistance": "DISTANCE_2",
      "location": "San Francisco, CA",
      "headline": "Co-Founder, Aerotime (YC W21)"
    }
  ]
}

When it did not work, the answer is { "ok": false, "error": "…", "message": "…" }. What each error means.

Good to know

In Claude or ChatGPT

Once connected, ask in your own words. The assistant sees this action as a tool with the same name, search_linkedin_people, and the same inputs.