Call it
curl https://api.peume.com/v1/call/search-inventory \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"zip": "your zip",
"condition": "your condition"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-inventory", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"zip": "your zip",
"condition": "your condition"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-inventory",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"zip": "your zip",
"condition": "your condition"
}
},
)
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: search-inventory.
Parameters
zipstring5-digit US ZIP code the search is centered on; dealer distances are measured from it.
conditionstringVehicle condition: used or new.
trimstringTrim level name as shown on the site's listings (one shape: Long Range). Matched by the site; a trim the model does not have yields an empty result.
yearstringModel year (e.g. 2020, 2021).
modelstringCar model niceName slug (e.g. civic, camry, 3-series).
pageinteger1-based results page number; each page holds up to 21 listings.
radiusintegerSearch radius in miles around the ZIP. When omitted the site applies its own default radius.
makestringCar make niceName slug (e.g. honda, toyota, bmw). Use values from get_makes endpoint.
