JavaScript SDK: swarmhit.accounts.salesNavigator.accountSearch(accountId, params?)
Search Sales Navigator for companies (accounts) on this sender's session and get the results directly. Pass free-text keywords, or a pasted Sales Navigator company search URL (url) for a filtered search; cursor pages (25 results a page). Any other link (a people search, a classic LinkedIn search, a Sales Navigator page with no search in it) is a 400 with code: invalid_search_url, and nothing is sent to LinkedIn. Needs a Sales Navigator seat on the account — otherwise 422 (409 when the account is not connected or can't be used right now).
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Query Parameters
Free-text company search. Provide this or url.
A Sales Navigator company search URL, as the browser shows it on an account search: https://www.linkedin.com/sales/search/company?query=… (/sales/search/companies too). Its filters, in query, are used as-is. Pasted without https://, or with http://, it is read as the https page. Given with keywords, the URL is the one that runs. 4,000 characters at most. To import people from a people search, use POST /lead-imports.
length <= 4000The previous response's nextCursor, to fetch the next page.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/string/sales-navigator/account-search"{ "data": [ { "id": "string", "name": "string", "industry": "string", "location": "string", "employeeCount": 0, "saved": true, "profileUrl": "string", "picture": "string" } ], "paging": { "total": 0, "nextCursor": "string" }}