Call it
curl https://api.peume.com/v1/call/count-companies-a-search-would-return \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"industries": [
25
],
"locations": [
7746
]
}
}'const res = await fetch("https://api.peume.com/v1/call/count-companies-a-search-would-return", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"industries": [
25
],
"locations": [
7746
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/count-companies-a-search-would-return",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"industries": [
25
],
"locations": [
7746
]
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: count-companies-a-search-would-return.
Parameters
industriesarrayExample: [25]
locationsarrayExample: [7746]
Other ways to do it
Same job, other sources, cheapest first.
Count a company searchCount the companies matching name, domain, headcount, industry, location and technology filters.Count companies matching a filter (free)Returns the total count of companies matching the given search criteria without retrieving the actual resultsCount companies matching a search (free)How many companies match a query, before you pay to read any of themCount lookalike companies for a seed (free)Returns the total count of similar companies matching the given search criteria without retrieving the actual resultsCount matching companiesCount companies matching search filters without returning records.Count matching companiesCount matching companies and return facets without revealing records.
