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

InputWhat it isWhere to get it
keywords
optional
Text. Words to search for.You write it.
lastViewedAt
optional
A number. With savedSearchId: only results newer than this moment (Unix time).You write it.
savedSearchId
optional
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.
recentSearchId
optional
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.
industry
optional
A search filter id. Industries to include and to leave out.
What goes inside
  • include (optional): a list (text). Ids from lookup_search_ids type SALES_INDUSTRY, service SALES_NAVIGATOR.
  • exclude (optional): a list (text). Ids from lookup_search_ids type SALES_INDUSTRY, service SALES_NAVIGATOR.
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.
location
optional
A search filter id. Headquarters places to include and to leave out.
What goes inside
  • include (optional): a list (text). Ids from lookup_search_ids type LOCATION, service SALES_NAVIGATOR.
  • exclude (optional): a list (text). Ids from lookup_search_ids type LOCATION, service SALES_NAVIGATOR.
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.
locationByPostalCode
optional
A search filter id. Postal codes to include and to leave out.
What goes inside
  • include (optional): a list (text). Ids from lookup_search_ids type POSTAL_CODE, service SALES_NAVIGATOR.
  • exclude (optional): a list (text). Ids from lookup_search_ids type POSTAL_CODE, service SALES_NAVIGATOR.
  • withinArea (optional): a number. Miles around the postal code.
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.
hasJobOffers
optional
True or false. Only companies hiring on LinkedIn.You write it.
headcount
optional
A list (a group of fields). Company sizes, as LinkedIn's own bands, e.g. { min: 51, max: 200 }.
What goes inside
  • min (optional): one of: 1, 11, 51, 201, 501, 1001, 5001, 10001.
  • max (optional): one of: 1, 10, 50, 200, 500, 1000, 5000, 10000.
You write it.
headcountGrowth
optional
A group of fields. Headcount growth, in percent.
What goes inside
  • min (optional): a number.
  • max (optional): a number.
You write it.
departmentHeadcount
optional
A search filter id. How many people work in given departments.
What goes inside
  • department (needed): a list (text). Ids from lookup_search_ids type DEPARTMENT, service SALES_NAVIGATOR.
  • min (optional): a number.
  • max (optional): a number.
department: run lookup_search_ids with type DEPARTMENT, and use matches[].id from its answer.
departmentHeadcountGrowth
optional
A search filter id. How fast given departments are growing, in percent.
What goes inside
  • department (needed): a list (text). Ids from lookup_search_ids type DEPARTMENT, service SALES_NAVIGATOR.
  • min (optional): a number.
  • max (optional): a number.
department: run lookup_search_ids with type DEPARTMENT, and use matches[].id from its answer.
networkDistance
optional
A list (one of: 1, 2, 3). Connection degrees from you: 1, 2, 3.You write it.
annualRevenue
optional
A group of fields. Yearly revenue in millions, as LinkedIn's own steps. For "1000+" set max to 1001.
What goes inside
  • currency (needed): text, up to 3 characters. Three-letter currency code, e.g. "USD".
  • min (needed): one of: 0, 0.2, 1, 2.5, 5, 10, 20, 50, 100, 500, 1000, 1001.
  • max (needed): one of: 0, 0.2, 1, 2.5, 5, 10, 20, 50, 100, 500, 1000, 1001.
You write it.
followersCount
optional
A list (a group of fields). Number of followers, as LinkedIn's own bands.
What goes inside
  • min (optional): one of: 1, 51, 101, 1001, 5001.
  • max (optional): one of: 50, 100, 1000, 5000.
You write it.
fortune
optional
A list (a group of fields). Fortune ranking, as LinkedIn's own bands.
What goes inside
  • min (optional): one of: 0, 51, 101, 251.
  • max (optional): one of: 50, 100, 250, 500.
You write it.
technologies
optional
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.
recentActivities
optional
A list (one of: senior_leadership_changes, funding_events). Only companies with these recent events.You write it.
savedAccounts
optional
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.
accountLists
optional
A search filter id. Your account lists (an id, or "ALL") to include and to leave out.
What goes inside
  • include (optional): a list (text). Ids from lookup_search_ids type ACCOUNT_LISTS, service SALES_NAVIGATOR.
  • exclude (optional): a list (text). Ids from lookup_search_ids type ACCOUNT_LISTS, service SALES_NAVIGATOR.
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.
limit
optional
A number, 1 to 100. How many to return (1–100, 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_sales_navigator_companies.
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_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:

MethodPOST
URLhttps://api.heyreagent.com/v1/actions/search_linkedin_sales_navigator_companies
Send HeadersOn. Name Authorization, Value Bearer YOUR_KEY
Send BodyOn. 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:

returnednumber
nextCursorA cursor. Other actions take it.
results[].typeCOMPANY
results[].idA company id. Other actions take it.
results[].namestring
results[].locationstring or null
results[].profileUrlstring
results[].industrystring
results[].summarystring or null
results[].followersCountnumber
results[].jobOffersCountnumber
results[].headcountstring

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

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.