Call it
curl https://api.peume.com/v1/call/count-job-posts-a-search-would-return \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"organization_ids": [
1043439
],
"is_active": true
}
}'const res = await fetch("https://api.peume.com/v1/call/count-job-posts-a-search-would-return", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"organization_ids": [
1043439
],
"is_active": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/count-job-posts-a-search-would-return",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"organization_ids": [
1043439
],
"is_active": True
}
},
)
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-job-posts-a-search-would-return.
Parameters
organization_idsarrayExample: [1043439]
is_activebooleanExample: true
Other ways to do it
Same job, other sources, cheapest first.
Count matching job postingsCount the job postings a search matches, and the most credits pulling them would cost, before paying for rows.Count job postings that match a searchHow many open job postings match, exactly, across all open postings. Use it to size a pull before you pay for it.Count job postings that match a search, with a JSON bodyThe same count as GET /v1/jobs/count, with the filters in a JSON body. The route is live but missing from the vendor's OpenAPI document.
