Search companies by industry, headcount or location
pdl.companies.searchSearch PDL companies by industry, headcount, location or tags — pays per record
- Price
- $0.1/resultAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 60 calls
- Latency p50
- 155 msp95 216 ms
- Last verified
- 31 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/pdl.companies.search?sql=SELECT+*+FROM+company+WHERE+name%3D%27people+data+labs%27&size=1Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
exactly one of sql | query. Unlike person search, company search caps `size` at 100 on BOTH methods, and the spec does not offer scroll_token here. Rate limit 10 req/min
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
sql | chaîne | Facultatif | SQL WHERE clause over the Company schema, e.g. "SELECT * FROM company WHERE industry='computer software' AND size='51-200'" | SELECT * FROM company WHERE name='people data labs' |
size | entier | Facultatif | records to return, 1-100, default 1 — you pay 1 credit per record | 1 |
query | chaîne | Facultatif | Elasticsearch JSON query — the alternative to sql | |
pretty | booléen | Facultatif | ||
titlecase | booléen | Facultatif | ||
scroll_token | chaîne | Facultatif | cursor from the previous response | |
- Paramètres de requête
sqlchaîneFacultatifSQL WHERE clause over the Company schema, e.g. "SELECT * FROM company WHERE industry='computer software' AND size='51-200'"
Exemple :
SELECT * FROM company WHERE name='people data labs'sizeentierFacultatifrecords to return, 1-100, default 1 — you pay 1 credit per record
Exemple :
1querychaîneFacultatifElasticsearch JSON query — the alternative to sql
prettybooléenFacultatiftitlecasebooléenFacultatifscroll_tokenchaîneFacultatifcursor from the previous response
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/pdl.companies.search?sql=SELECT+*+FROM+company+WHERE+name%3D%27people+data+labs%27&size=1' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/pdl.companies.search?sql=SELECT+*+FROM+company+WHERE+name%3D%27people+data+labs%27&size=1",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/pdl.companies.search?sql=SELECT+*+FROM+company+WHERE+name%3D%27people+data+labs%27&size=1", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.1/result, frais de service inclus.