Call it
curl https://api.peume.com/v1/call/benchmark-a-role-s-salary-against-the-market \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"job_title": "Software Engineer",
"geo_locations": [
{
"city": "San Francisco",
"region": "California",
"country": "United States"
}
],
"salary_range": {
"min": 160000,
"max": 200000,
"currency": "USD",
"period": "yearly"
},
"days_ago": 90,
"include_expired": true
}
}'const res = await fetch("https://api.peume.com/v1/call/benchmark-a-role-s-salary-against-the-market", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"job_title": "Software Engineer",
"geo_locations": [
{
"city": "San Francisco",
"region": "California",
"country": "United States"
}
],
"salary_range": {
"min": 160000,
"max": 200000,
"currency": "USD",
"period": "yearly"
},
"days_ago": 90,
"include_expired": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/benchmark-a-role-s-salary-against-the-market",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"job_title": "Software Engineer",
"geo_locations": [
{
"city": "San Francisco",
"region": "California",
"country": "United States"
}
],
"salary_range": {
"min": 160000,
"max": 200000,
"currency": "USD",
"period": "yearly"
},
"days_ago": 90,
"include_expired": 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: benchmark-a-role-s-salary-against-the-market.
Parameters
job_titlestringrequired unless public_url is given
Example: Software Engineer
public_urlstringa job posting URL; its title and place are read from the posting and win over the other fields
geo_locationsarrayExample: [{"city":"San Francisco","region":"California","country":"United States"}]
yoe_rangeobject{min, max} years of experience
salary_rangeobject{min, max, currency, period}: the range to rank against the market
Example: {"min":160000,"max":200000,"currency":"USD","period":"yearly"}
location_typesarrayindustryarraydays_agointegerExample: 90
include_expiredbooleanExample: true
Other ways to do it
Same job, other sources, cheapest first.
