The Companies APIDados de empresasEnrichment

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/resultPelo preço do provedor
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
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

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

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
pageinteiroOpcional1-based page number, default 1
sizeinteiroOpcionalresults per page, 1-100, default 10 — THIS IS THE PRICE DIAL: 1 credit per company returned1
querystringObrigatórioa stringified, URL-encoded ARRAY of conditions, each {attribute, operator: 'and'|'or', sign: 'equals'|…, values: [...]}[{"attribute":"about.industries","operator":"or","sign":"equals","values":["software"]}]
searchstringOpcionalextra free-text match on company name or domain
sortKeystringOpcionalfield to sort by, e.g. meta.score, about.name
actionIdinteiroOpcionalscope the search to a saved action
sortOrderstringOpcionalasc | desc
simplifiedbooleanoOpcionalreduced records for ZERO credits — always preview a new query this way before paying for ittrue
sortFieldsarray[object]Opcionalmultiple sort criteria, stringified and URL-encoded
searchFieldsarray[string]Opcionalwhich fields `search` applies to, e.g. domain, name
domainsToExcludestringOpcionalcomma-separated domains to drop from the results
linkedinToExcludestringOpcionalcomma-separated LinkedIn URLs to drop
  • Parâmetros de consulta
  • pageinteiroOpcional

    1-based page number, default 1

  • sizeinteiroOpcional

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

    Exemplo: 1

  • querystringObrigatório

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

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

  • searchstringOpcional

    extra free-text match on company name or domain

  • sortKeystringOpcional

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

  • actionIdinteiroOpcional

    scope the search to a saved action

  • sortOrderstringOpcional

    asc | desc

  • simplifiedbooleanoOpcional

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

    Exemplo: true

  • sortFieldsarray[object]Opcional

    multiple sort criteria, stringified and URL-encoded

  • searchFieldsarray[string]Opcional

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

  • domainsToExcludestringOpcional

    comma-separated domains to drop from the results

  • linkedinToExcludestringOpcional

    comma-separated LinkedIn URLs to drop

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no 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"

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.0019/result, incluindo a taxa de serviço.