Count companies matching a filter (free)
companyenrich.companies.search.countReturns the total count of companies matching the given search criteria without retrieving the actual results
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- 100%Últimos 30 dias · 169.612 chamadas
- Latência p50
- 253 msp95 360 ms
- Última verificação
- 20 de ago. de 2026Verificado e funcionando
POSThttps://toolswitch.dev/v1/tools/companyenrich.companies.search.countBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
FREE and it takes the entire search filter object, so it is the correct first call of any audience-building loop: tune filters here at zero cost, then spend credits once on the real search. Returns {count, total} where `count` is capped at the plan's page limit and `total` is the true match count.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Corpo (JSON) | ||||
countries | array[string] | Opcional | ISO alpha-2 codes | ["US"] |
technologies | array[string] | Opcional | same filter object as companyenrich.companies.search — every field there is accepted here | ["stripe"] |
- Corpo (JSON)
countriesarray[string]OpcionalISO alpha-2 codes
Exemplo:
["US"]technologiesarray[string]Opcionalsame filter object as companyenrich.companies.search — every field there is accepted here
Exemplo:
["stripe"]
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X POST 'https://toolswitch.dev/v1/tools/companyenrich.companies.search.count' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"countries":["US"],"technologies":["stripe"]}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/companyenrich.companies.search.count",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"countries\":[\"US\"],\"technologies\":[\"stripe\"]}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/companyenrich.companies.search.count", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"countries\":[\"US\"],\"technologies\":[\"stripe\"]}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.