Call it
curl https://api.peume.com/v1/call/search-used-car-listings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"zip": "your zip",
"trim": "your trim"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-used-car-listings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"zip": "your zip",
"trim": "your trim"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-used-car-listings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"zip": "your zip",
"trim": "your trim"
}
},
)
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-used-car-listings.
Parameters
zipstring5-digit US ZIP code for search location.
trimstringTrim level filter matching the site's Trim facet for the selected model, written exactly as lists it (case-sensitive, e.g. LE, XSE, Unspecified). Several trims may be combined as a comma-separated list (e.g. LE,XSE) to match any of them. Omit to return all trims.
exterior_colorstringExterior color filter as a color name, matching the site's Exterior Color facet; observed values include Black, Gray, White, Silver, Blue, Red, Beige, Green, Gold, Unspecified. Case-insensitive. Several colors may be combined as a comma-separated list (e.g. Gray,Red) to match any of them. Omit to return all colors.
modelstringVehicle model to filter by (e.g. Camry, Civic, F-150). Must correspond to the specified make.
pageintegerPage number for pagination (1-based).
sortstringSort order for results.
radiusintegerSearch radius in miles from the ZIP code.
rowsintegerNumber of results per page (max 100).
year_minstringEarliest model year to include, inclusive, as a 4-digit year (YYYY). May be used alone or with year_max. Omit for no lower bound.
makestringVehicle make to filter by (e.g. Toyota, Honda, Ford, BMW, Subaru).
year_maxstringLatest model year to include, inclusive, as a 4-digit year (YYYY). May be used alone or with year_min; must not be less than year_min. Omit for no upper bound.
