Call it
curl https://api.peume.com/v1/call/count-matching-job-postings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"job_title_or": [
"data engineer"
],
"job_country_code_or": [
"US"
],
"posted_at_max_age_days": 7
}
}'const res = await fetch("https://api.peume.com/v1/call/count-matching-job-postings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"job_title_or": [
"data engineer"
],
"job_country_code_or": [
"US"
],
"posted_at_max_age_days": 7
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/count-matching-job-postings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"job_title_or": [
"data engineer"
],
"job_country_code_or": [
"US"
],
"posted_at_max_age_days": 7
}
},
)
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-matching-job-postings.
Parameters
job_title_orarrayExample: ["data engineer"]
job_country_code_orarrayExample: ["US"]
company_key_orarraysource_orarrayposted_at_max_age_daysintegerExample: 7
Other ways to do it
Same job, other sources, cheapest first.
Count job posts a search would returnCount the job posts that match a job search's filters, free, before paying for pages.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.
