Search companies by industry, size, location or tech
thecompaniesapi.companies.searchSearch companies by industry, size, location, technology or any other attribute filter
- Price
- $0.0019/resultプロバイダー原価
- 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
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
page | 整数 | 任意 | 1-based page number, default 1 | |
size | 整数 | 任意 | results per page, 1-100, default 10 — THIS IS THE PRICE DIAL: 1 credit per company returned | 1 |
query | 文字列 | 必須 | a stringified, URL-encoded ARRAY of conditions, each {attribute, operator: 'and'|'or', sign: 'equals'|…, values: [...]} | [{"attribute":"about.industries","operator":"or","sign":"equals","values":["software"]}] |
search | 文字列 | 任意 | extra free-text match on company name or domain | |
sortKey | 文字列 | 任意 | field to sort by, e.g. meta.score, about.name | |
actionId | 整数 | 任意 | scope the search to a saved action | |
sortOrder | 文字列 | 任意 | asc | desc | |
simplified | 真偽値 | 任意 | reduced records for ZERO credits — always preview a new query this way before paying for it | true |
sortFields | array[object] | 任意 | multiple sort criteria, stringified and URL-encoded | |
searchFields | array[string] | 任意 | which fields `search` applies to, e.g. domain, name | |
domainsToExclude | 文字列 | 任意 | comma-separated domains to drop from the results | |
linkedinToExclude | 文字列 | 任意 | comma-separated LinkedIn URLs to drop | |
- クエリパラメータ
page整数任意1-based page number, default 1
size整数任意results per page, 1-100, default 10 — THIS IS THE PRICE DIAL: 1 credit per company returned
例:
1query文字列必須a stringified, URL-encoded ARRAY of conditions, each {attribute, operator: 'and'|'or', sign: 'equals'|…, values: [...]}
例:
[{"attribute":"about.industries","operator":"or","sign":"equals","values":["software"]}]search文字列任意extra free-text match on company name or domain
sortKey文字列任意field to sort by, e.g. meta.score, about.name
actionId整数任意scope the search to a saved action
sortOrder文字列任意asc | desc
simplified真偽値任意reduced records for ZERO credits — always preview a new query this way before paying for it
例:
truesortFieldsarray[object]任意multiple sort criteria, stringified and URL-encoded
searchFieldsarray[string]任意which fields `search` applies to, e.g. domain, name
domainsToExclude文字列任意comma-separated domains to drop from the results
linkedinToExclude文字列任意comma-separated LinkedIn URLs to drop
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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"import os
import requests
response = requests.request(
"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",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("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", {
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.0019/result です。サービス料を含みます。