Call it
curl https://api.peume.com/v1/call/search-vehicle-listings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"stock_type": "your stock type",
"zip": "your zip"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-vehicle-listings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"stock_type": "your stock type",
"zip": "your zip"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-vehicle-listings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"stock_type": "your stock type",
"zip": "your zip"
}
},
)
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-vehicle-listings.
Parameters
stock_typestringStock type filter.
zipstring5-digit US ZIP code for search area, leading zeros preserved.
distanceintegerSearch radius in miles from ZIP code.
modelstringVehicle model (e.g., 'f-150', 'camry'). Used in combination with make.
pageintegerPage number, 1-indexed.
sortstringSort order for results.
price_minintegerMinimum listing price in USD.
year_minintegerMinimum model year filter.
makestringVehicle make (e.g., 'toyota', 'ford', 'gmc').
price_maxintegerMaximum listing price in USD.
year_maxintegerMaximum model year filter.
mileage_maxintegerMaximum mileage filter.
