Call it
curl https://api.peume.com/v1/call/find-fuel-prices \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search": "your search",
"fuel": 1,
"lang": "en",
"maxAge": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/find-fuel-prices", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search": "your search",
"fuel": 1,
"lang": "en",
"maxAge": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/find-fuel-prices",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search": "your search",
"fuel": 1,
"lang": "en",
"maxAge": 0
}
},
)
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: find-fuel-prices.
Parameters
searchRequiredstringZIP code, city name, or latitude/longitude coordinates (e.g., '11507', 'New York', '36.0816642, -115.0534345'). Coverage is primarily the United States, with some Canadian locations.
fuelintegerFuel type to search for. 1=Regular (default), 2=Midgrade, 3=Premium, 4=Diesel, 5=E85, 12=Unleaded88.
Example: 1
langstringLanguage code for the search results. Currently only English is supported.
en
Example: en
maxAgeintegerMaximum age of gas station data in days. Use 0 for no age restriction (all stations returned regardless of when prices were last reported). Higher values limit results to stations with prices reported within that many days.
Example: 0
output_filestringOptional: Custom name for the output CSV file. If not provided, a timestamped filename will be automatically generated (e.g., gas_stations_11507_2025-08-19_11-01-12_1.csv).
