The Companies APICompany DataEnrichment

Search companies by industry, size, location or tech

thecompaniesapi.companies.search

Search companies by industry, size, location, technology or any other attribute filter

Price
$0.0019/resultAt provider cost
Success rate
99.7%Last 30 days · 3,566 calls
Latency p50
428 msp95 1.1 s
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/thecompaniesapi.companies.search?size=2&query=%5B%7B%22attribute%22%3A+%22about.industries%22%2C+%22operator%22%3A+%22or%22%2C+%22sign%22%3A+%22equals%22%2C+%22values%22%3A+%5B%22fintech%22%5D%7D%5DPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

POST /companies takes the identical fields as a JSON body, which is easier when the condition array is long. `searchFields` accepts about.name and domain.domain. Always set an explicit small `size` — the default of 10 bills for 10 companies. GET /companies/count returns just the match count and is widely treated as free, though that is not published

ParameterTypeRequiredDescriptionExample
Query parameters
pageintegerOptional1-based page number, default 1
sizeintegerOptionalresults per page, 1-100, default 10 — THIS IS THE PRICE DIAL: 1 credit per company returned1
querystringRequireda stringified, URL-encoded ARRAY of conditions, each {attribute, operator: 'and'|'or', sign: 'equals'|…, values: [...]}[{"attribute":"about.industries","operator":"or","sign":"equals","values":["software"]}]
searchstringOptionalextra free-text match on company name or domain
sortKeystringOptionalfield to sort by, e.g. meta.score, about.name
actionIdintegerOptionalscope the search to a saved action
sortOrderstringOptionalasc | desc
simplifiedbooleanOptionalreduced records for ZERO credits — always preview a new query this way before paying for ittrue
sortFieldsarray[object]Optionalmultiple sort criteria, stringified and URL-encoded
searchFieldsarray[string]Optionalwhich fields `search` applies to, e.g. domain, name
domainsToExcludestringOptionalcomma-separated domains to drop from the results
linkedinToExcludestringOptionalcomma-separated LinkedIn URLs to drop
  • Query parameters
  • pageintegerOptional

    1-based page number, default 1

  • sizeintegerOptional

    results per page, 1-100, default 10 — THIS IS THE PRICE DIAL: 1 credit per company returned

    Example: 1

  • querystringRequired

    a stringified, URL-encoded ARRAY of conditions, each {attribute, operator: 'and'|'or', sign: 'equals'|…, values: [...]}

    Example: [{"attribute":"about.industries","operator":"or","sign":"equals","values":["software"]}]

  • searchstringOptional

    extra free-text match on company name or domain

  • sortKeystringOptional

    field to sort by, e.g. meta.score, about.name

  • actionIdintegerOptional

    scope the search to a saved action

  • sortOrderstringOptional

    asc | desc

  • simplifiedbooleanOptional

    reduced records for ZERO credits — always preview a new query this way before paying for it

    Example: true

  • sortFieldsarray[object]Optional

    multiple sort criteria, stringified and URL-encoded

  • searchFieldsarray[string]Optional

    which fields `search` applies to, e.g. domain, name

  • domainsToExcludestringOptional

    comma-separated domains to drop from the results

  • linkedinToExcludestringOptional

    comma-separated LinkedIn URLs to drop

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/thecompaniesapi.companies.search?size=2&query=%5B%7B%22attribute%22%3A+%22about.industries%22%2C+%22operator%22%3A+%22or%22%2C+%22sign%22%3A+%22equals%22%2C+%22values%22%3A+%5B%22fintech%22%5D%7D%5D' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.0019/result, including the service fee.