Searching for companies – LinkedIn company search API
To search for companies in LinkedIn, you need to include st.searchCompanies action in your workflow. Here's an example:
Each example below has its Node SDK call in the Node tab, and the label over each completion says what that call returns.
Each example below has its Python SDK call in the Python tab, and the label over each completion says what that call returns.
Each example below has its CLI command in the CLI tab, and the label over each completion says what the command prints.
Workflow:
{
"actionType": "st.searchCompanies",
"term": "Tech Inc",
"limit": 2,
"filter": {
"sizes": ["51-200", "201-500"],
"locations": ["San Francisco", "New York"],
"industries": ["Software Development", "Robotics Engineering"]
}
}Completion:
Completion – result() returns its data in data, and a failed action in errors:
Completion – with --json the CLI prints its data as data, or the action's error:
{
"actionType": "st.searchCompanies",
"success": true,
"data": [
{
"name": "TechCorp",
"urn": "urn:li:organization:1234567",
"publicUrl": "https://www.linkedin.com/company/techcorp",
"industry": "Information Technology",
"location": "California"
},
{
"name": "Techical Life",
"urn": null,
"publicUrl": "https://www.linkedin.com/company/techlife",
"industry": "Software Development",
"location": "Mountain View"
}
]
}💡 If you want to perform actions on companies from search results, use
st.doForCompaniesaction.
💡 If you want to search for companies in Sales Navigator, use
nv.searchCompaniesaction.
This page provides examples of workflows and their completions. For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding action documentation pages.