Search companies
Find companies of your workspace by name or domain.
Finds companies in your workspace from part of their name or domain. Use it to power a search box, or to turn a name someone typed into the company ID the other endpoints need.
For example, {"name": "read"} returns every company whose name contains "read", such as Readmore Labs and Ready Foods, each with its ID, domain, LinkedIn page, LinkedIn handle and logo. Matching ignores upper and lower case. Results are sorted by name from A to Z, 20 by default: set limit (up to 50) to get more or fewer. The search is not paged: if you get exactly limit results, there may be more, so refine name or domain.
Send name, domain, or both. When you send both, a company must match both.
Then use a returned id to get the full company, or as company_ids to find its leads.
Route
Access modes
Use a workspace API key. The workspace is inferred from the key.
Authorization: Bearer sk_live_...Body parameters
| Parameter | Type | Description |
|---|---|---|
| name | string | Case-insensitive substring to match against company names. From 1 to 200 characters. |
| domain | string | Case-insensitive substring to match against company website domains. From 1 to 200 characters. |
| limit | integer | Maximum number of matches to return, from 1 to 50. Defaults to 20. |
Example request
curl -X POST "https://api.getsillage.com/api/v3/companies/query" \
-H "Authorization: Bearer $SILLAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "read",
"limit": 5
}'Success response
Status: 200 OK
{
"data": [
{
"identification": { "status": "identified", "suggested_company": null },
"id": 789,
"name": "Readmore Labs",
"domain": "readmorelabs.com",
"linkedin_url": "https://www.linkedin.com/company/readmore-labs",
"linkedin_handle": "readmore-labs",
"logo_url": "https://example.com/readmore-labs.png"
},
{
"identification": {
"status": "to_confirm",
"suggested_company": {
"linkedin_url": "https://www.linkedin.com/company/ready-foods",
"name": "Ready Foods",
"website_url": "https://readyfoods.com",
"industry": "Food Production",
"employee_range": "51-200"
}
},
"id": 812,
"name": "Ready Foods",
"domain": "readyfoods.com",
"linkedin_url": "https://www.linkedin.com/company/ready-foods",
"linkedin_handle": "ready-foods",
"logo_url": null
}
]
}Response fields
This is a capped search, not a page: the answer has no meta.
| Field | Type | Description |
|---|---|---|
| data[].id | integer | ID of the company in your workspace. |
| data[].identification | object | Whether we know the company on LinkedIn. |
| data[].identification.status | string | identifying (we are looking for its LinkedIn page), identified (it is linked to a LinkedIn page), to_confirm (we found a page that may be the right one but could not confirm it, see suggested_company) or not_identified (we found no page). New values may be added; ignore values you don't know. |
| data[].identification.suggested_company | object or null | The page we found, only while status is to_confirm; null otherwise. |
| data[].identification.suggested_company.linkedin_url | string | The LinkedIn page we found. Send it to the route that sets a company's LinkedIn page to use it. |
| data[].identification.suggested_company.name | string or null | Name on the page. |
| data[].identification.suggested_company.website_url | string or null | The website the page lists. |
| data[].identification.suggested_company.industry | string or null | Industry on the page. |
| data[].identification.suggested_company.employee_range | string or null | Employee headcount range, for example 51-200. |
| data[].name | string or null | Company name. |
| data[].domain | string or null | Primary domain. |
| data[].linkedin_url | string or null | LinkedIn company page URL. |
| data[].linkedin_handle | string or null | LinkedIn company handle. |
| data[].logo_url | string or null | Logo URL. |
Errors
| Status | Meaning |
|---|---|
| 401 | The API key is missing or invalid. |
| 402 | Your workspace has no active plan (paywall_required). Start your trial or choose a plan at https://www.getsillage.com/paywall, then retry. |
| 422 | Neither name nor domain was sent, or a value is not valid. |
| 429 | Rate limit exceeded. |
| 500 | An unexpected server error occurred. |
Error responses use RFC 9457 problem documents with Content-Type: application/problem+json. type is always about:blank; code tells one problem from another, detail says what went wrong this time, and errors names the field at fault.