Call it
curl https://api.peume.com/v1/call/start-a-company-search-export-up-to-50-000 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"count": 1,
"search": {
"technologies": [
"stripe"
],
"countries": [
"US"
]
}
}
}'const res = await fetch("https://api.peume.com/v1/call/start-a-company-search-export-up-to-50-000", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"count": 1,
"search": {
"technologies": [
"stripe"
],
"countries": [
"US"
]
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/start-a-company-search-export-up-to-50-000",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"count": 1,
"search": {
"technologies": [
"stripe"
],
"countries": [
"US"
]
}
}
},
)
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: start-a-company-search-export-up-to-50-000.
Parameters
countRequiredintegerhow many companies to export, up to 50,000. THIS IS THE PRICE — 1 credit a company (5 with `similar`), charged on completion
Example: 1
searchobjecta.companies.search filter object — supply this OR `similar`, not both
Example: {"technologies":["stripe"],"countries":["US"]}
similarobjecta.companies.similar filter object; rows then cost 5 credits each, not 1
webhook_urlstringcallback on completion; poll the free status route instead when calling through a proxy
