Docs / Search
search_linkedin_sales_navigator_companies
Search companies in Sales Navigator on your own seat, with each Sales Navigator filter as its own typed input.
This action only reads. It changes nothing, so it is safe to try.
What you give it
| Input | What it is | Where to get it |
|---|---|---|
keywordsoptional | Text. Words to search for. | You write it. |
lastViewedAtoptional | A number. With savedSearchId: only results newer than this moment (Unix time). | You write it. |
savedSearchIdoptional | A search filter id. Run one of your saved searches; it replaces every other filter: an id from lookup_search_ids type SAVED_SEARCHES, service SALES_NAVIGATOR. | run lookup_search_ids with type SAVED_SEARCHES, and use matches[].id from its answer. |
recentSearchIdoptional | A search filter id. Run one of your recent searches again; it replaces every other filter: an id from lookup_search_ids type RECENT_SEARCHES, service SALES_NAVIGATOR. | run lookup_search_ids with type RECENT_SEARCHES, and use matches[].id from its answer. |
industryoptional | A search filter id. Industries to include and to leave out.What goes inside
| include: run lookup_search_ids with type SALES_INDUSTRY, and use matches[].id from its answer.exclude: run lookup_search_ids with type SALES_INDUSTRY, and use matches[].id from its answer. |
locationoptional | A search filter id. Headquarters places to include and to leave out.What goes inside
| include: run lookup_search_ids with type LOCATION, and use matches[].id from its answer.exclude: run lookup_search_ids with type LOCATION, and use matches[].id from its answer. |
locationByPostalCodeoptional | A search filter id. Postal codes to include and to leave out.What goes inside
| include: run lookup_search_ids with type POSTAL_CODE, and use matches[].id from its answer.exclude: run lookup_search_ids with type POSTAL_CODE, and use matches[].id from its answer. |
hasJobOffersoptional | True or false. Only companies hiring on LinkedIn. | You write it. |
headcountoptional | A list (a group of fields). Company sizes, as LinkedIn's own bands, e.g. { min: 51, max: 200 }.What goes inside
| You write it. |
headcountGrowthoptional | A group of fields. Headcount growth, in percent.What goes inside
| You write it. |
departmentHeadcountoptional | A search filter id. How many people work in given departments.What goes inside
| department: run lookup_search_ids with type DEPARTMENT, and use matches[].id from its answer. |
departmentHeadcountGrowthoptional | A search filter id. How fast given departments are growing, in percent.What goes inside
| department: run lookup_search_ids with type DEPARTMENT, and use matches[].id from its answer. |
networkDistanceoptional | A list (one of: 1, 2, 3). Connection degrees from you: 1, 2, 3. | You write it. |
annualRevenueoptional | A group of fields. Yearly revenue in millions, as LinkedIn's own steps. For "1000+" set max to 1001.What goes inside
| You write it. |
followersCountoptional | A list (a group of fields). Number of followers, as LinkedIn's own bands.What goes inside
| You write it. |
fortuneoptional | A list (a group of fields). Fortune ranking, as LinkedIn's own bands.What goes inside
| You write it. |
technologiesoptional | A search filter id. Technologies the company uses: ids from lookup_search_ids type TECHNOLOGIES, service SALES_NAVIGATOR. | run lookup_search_ids with type TECHNOLOGIES, and use matches[].id from its answer. |
recentActivitiesoptional | A list (one of: senior_leadership_changes, funding_events). Only companies with these recent events. | You write it. |
savedAccountsoptional | A search filter id. Your saved accounts: ids from lookup_search_ids type SAVED_ACCOUNTS, service SALES_NAVIGATOR. | run lookup_search_ids with type SAVED_ACCOUNTS, and use matches[].id from its answer. |
accountListsoptional | A search filter id. Your account lists (an id, or "ALL") to include and to leave out.What goes inside
| include: run lookup_search_ids with type ACCOUNT_LISTS, and use matches[].id from its answer.exclude: run lookup_search_ids with type ACCOUNT_LISTS, and use matches[].id from its answer. |
limitoptional | A number, 1 to 100. How many to return (1–100, default 10). | You write it. |
cursoroptional | 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_sales_navigator_companies. |
connectionIdoptional | 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_sales_navigator_companies \
-H "Authorization: Bearer YOUR_KEY" \
-H "content-type: application/json" \
-d '{"keywords":"software"}'The same call in JavaScript
const response = await fetch("https://api.heyreagent.com/v1/actions/search_linkedin_sales_navigator_companies", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_KEY",
"content-type": "application/json",
},
body: JSON.stringify({
"keywords": "software"
}),
});
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_sales_navigator_companies",
headers={"Authorization": "Bearer YOUR_KEY"},
json={
"keywords": "software",
},
)
print(response.json())The same call in n8n
Add an HTTP Request node and fill it in like this:
| Method | POST |
| URL | https://api.heyreagent.com/v1/actions/search_linkedin_sales_navigator_companies |
| Send Headers | On. Name Authorization, Value Bearer YOUR_KEY |
| Send Body | On. Body Content Type JSON, Specify Body Using JSON, then paste the body below |
{
"keywords": "software"
}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:
returned | number |
nextCursor | A cursor. Other actions take it. |
results[].type | COMPANY |
results[].id | A company id. Other actions take it. |
results[].name | string |
results[].location | string or null |
results[].profileUrl | string |
results[].industry | string |
results[].summary | string or null |
results[].followersCount | number |
results[].jobOffersCount | number |
results[].headcount | string |
A field that does not apply to an answer is left out, or is null. There are 3 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": "eyJhY2NvdW50X2lkIjoiOFJma0txU0tSTy1JbXpKT2k4T1I1USIsImxpbWl0Ijo1LCJzdGFydCI6NSwicGFyYW1zIjp7ImFwaSI6InNhbGVzX25hdmlnYXRvciIsImNhdGVnb3J5IjoiY29tcGFuaWVzIiwia2V5d29yZHMiOiJzb2Z0d2FyZXMiLCJpbmR1c3RyeSI6eyJpbmNsdWRlIjpbNl19fX0=",
"total": 4886,
"results": [
{
"type": "COMPANY",
"id": "103848457",
"name": "Softwares For MLM",
"profileUrl": "https://www.linkedin.com/sales/company/103848457",
"summary": "SFM (SoftwaresForMLM.com) specializes in delivering cutting-edge MLM software solutions designed to empower direct-selling businesses. With over 9 years of industry experience and a dedicated team of professionals, we have catered to over 1000+ satisfied customers, helping them achieve their business objectives. Our comprehensive software features help you ensure seamless operations and enhanced efficiency. Ready to change the game and take your business to new heights? Connect with us on LinkedIn to stay updated on industry trends and insights!",
"industry": "Software Development",
"location": null,
"headcount": "0"
}
]
}When it did not work, the answer is { "ok": false, "error": "…", "message": "…" }. What each error means.
Good to know
- At most 100 rows per call: LinkedIn's page size for this search.
- LinkedIn returns at most 1,000 rows for one search; narrow the filters to reach the rest.
- Needs a Sales Navigator seat on your own LinkedIn account.
- Look filter ids up with lookup_search_ids service SALES_NAVIGATOR: that input selects which product's list is searched.
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_sales_navigator_companies, and the same inputs.