Call it
curl https://api.peume.com/v1/call/search-companies-by-industry-country-and-size \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"filters": {
"location_country": {
"include": [
"IE"
]
},
"industry": {
"include": [
"financial services"
]
}
}
}
}'const res = await fetch("https://api.peume.com/v1/call/search-companies-by-industry-country-and-size", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"filters": {
"location_country": {
"include": [
"IE"
]
},
"industry": {
"include": [
"financial services"
]
}
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-companies-by-industry-country-and-size",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"filters": {
"location_country": {
"include": [
"IE"
]
},
"industry": {
"include": [
"financial services"
]
}
}
}
},
)
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: search-companies-by-industry-country-and-size.
Parameters
filtersobjectstructured criteria — each field an {include, exclude} object, e.g. {"location_country":{"include":["IE"]},"industry":{"include":["financial services"]}}; fields: company, industry, keywords, location_city, location_country, location_state, size, founded, revenue; a company must match every field sent, and `exclude` drops matches (e.g. {"location_city":{"exclude":["London"]}}). Values are the labels the rows carry: size 1-10, 11-50, 51-250, 251-1K, 1K-5K, 5K-10K, 10K-50K; revenue $0-$1M, $1M-$10M, $10M-$50M, $50M-$100M; founded a year. `keywords` matches the company description, not a detected
Example: {"location_country":{"include":["IE"]},"industry":{"include":["financial services"]}}
querystringnatural-language search, 8-100 chars; upstream turns it into filters with a model on every request and echoes them in meta.filters. When query is sent, filters are ignored. For later pages send that meta.filters as `filters`, so the search is not regenerated
pageinteger1-1000, default 1
webhook_urlstringdeliver the results asynchronously instead; the provider's docs say per-request webhooks are not supported on this route
Other ways to do it
Same job, other sources, cheapest first.
