Call it
curl https://api.peume.com/v1/call/count-leads-matching-a-filter-set \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"companyDomains": {
"include": [
"stripe.com"
]
},
"leadSeniorities": {
"include": [
"c_suite"
]
}
}
}'const res = await fetch("https://api.peume.com/v1/call/count-leads-matching-a-filter-set", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"companyDomains": {
"include": [
"stripe.com"
]
},
"leadSeniorities": {
"include": [
"c_suite"
]
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/count-leads-matching-a-filter-set",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"companyDomains": {
"include": [
"stripe.com"
]
},
"leadSeniorities": {
"include": [
"c_suite"
]
}
}
},
)
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-leads-matching-a-filter-set.
Parameters
companyDomainsobjectsame filter payload as.people.search; `limit` is ignored
Example: {"include":["stripe.com"]}
leadSenioritiesobject{include/exclude} seniority values
Example: {"include":["c_suite"]}
Other ways to do it
Same job, other sources, cheapest first.
Count a people searchCount the people matching a company domain, industry, seniority, department, country or company size.Count a people searchCount the people matching title, seniority, company, location and industry filters, before loading anyone.Count matching contacts for freeCount all contacts matching a search filter without returning or charging for records.Count matching peopleCount people matching search filters without returning records.Count matching peopleCount people matching search filters without returning records.Count matching profilesCount matching profiles
