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
- Price
- freeA precio de catálogo
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 20 ago 2026Verified working
POSThttps://toolswitch.dev/v1/tools/companyenrich.companies.search.countBeta- Uses platform quota
- Synchronous response
- Reads public data
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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Cuerpo (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"] |
- Cuerpo (JSON)
countriesarray[string]OpcionalISO alpha-2 codes
Ejemplo:
["US"]technologiesarray[string]Opcionalsame filter object as companyenrich.companies.search — every field there is accepted here
Ejemplo:
["stripe"]
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.