Skip to main content
POST
Search Companies Database
To know which filters you are able to use, refer to the GET Filters section.Filters of type slider (such as currentCompanyFounded) take one or more min|max ranges in in: two numbers joined by |, such as 2015|2024. Their out must stay empty. An out value, or a range in another format such as 2015-2024, answers 400 Parameter filters is invalid. To exclude a range, send the ranges around it in in. For example, ["1900|1989", "2001|2026"] excludes the companies founded from 1990 to 2000.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
filters
object[]

Array of filter objects to narrow down search results. Each filter has a filterId and inclusion/exclusion criteria. Optional when fromSearchId is provided: each filter then replaces the saved filter with the same filterId, the other saved filters are kept, and an empty or absent filters replays the search as is.

fromSearchId
string

Id of a previous Companies search of your team (not a People search): the search value returned by POST /database/companies (optional). The search is replayed with its saved filters. Each filter you pass in filters replaces the saved filter with the same filterId, the other saved filters are kept, and the merged filters are validated again as for a new search. With fromSearchId, filters is optional: an empty or absent filters replays the search as is.

A search id can be replayed for 6 months. A replay counts as one search in the daily search quota (see limitation in the response); only a paid part triggered elsewhere, such as LinkedIn post engagement, is not billed again.

If no search matches this id for your team and this mode, or the search is older than 6 months, the request is rejected with 404.

Pattern: ^lsh_[a-zA-Z0-9]{17}$
Example:

"lsh_ExAmPlE3wQ7nKd5Hs"

page
integer

Page number for pagination (default: 1)

size
integer

Number of results per page (default: 100, max: 500)

Response

Success

results
object[]
total
integer

Total number of companies matching the search criteria

took
integer

Time taken for the search in milliseconds

page
integer

Current page number

size
integer

Number of results per page

Search session identifier. Reuse it as fromSearchId on POST /database/companies to replay this search; it stays valid for 6 months.

limitation
integer

Result limitation applied

team
string

Team identifier