API v3 is live and in beta: expect possible malfunctions and breaking changes in the coming days. If you find a bug, please report it to your Sillage contact.

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

POST/api/v3/companies/query

Access modes

Use a workspace API key. The workspace is inferred from the key.

Authorization: Bearer sk_live_...

Body parameters

ParameterTypeDescription
namestringCase-insensitive substring to match against company names. From 1 to 200 characters.
domainstringCase-insensitive substring to match against company website domains. From 1 to 200 characters.
limitintegerMaximum 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": [
    {
      "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"
    },
    {
      "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.

FieldTypeDescription
data[].idintegerID of the company in your workspace.
data[].namestring or nullCompany name.
data[].domainstring or nullPrimary domain.
data[].linkedin_urlstring or nullLinkedIn company page URL.
data[].linkedin_handlestring or nullLinkedIn company handle.
data[].logo_urlstring or nullLogo URL.

Errors

StatusMeaning
401The API key is missing or invalid.
422Neither name nor domain was sent, or a value is not valid.
429Rate limit exceeded.
500An 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.

On this page