PeumeAPI

Places & travel

Advise Buy or Wait

Tell whether a flight fare is low, typical or high and whether to buy now or wait.

$0.0005 per call

Call it

curl https://api.peume.com/v1/call/advise-buy-or-wait \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "origin": "your origin",
    "destination": "your destination",
    "departure_date": "your departure date",
    "trip_type": "oneway",
    "cabin_class": "economy",
    "current_price": "your current price"
  }
}'

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: advise-buy-or-wait.

Parameters

originRequiredstring
destinationRequiredstring
departure_dateRequiredstring
trip_typeRequiredstring

oneway · roundtrip

return_datestring

Return date in YYYY-MM-DD format, a real calendar date on or after departure_date. Required when trip_type is roundtrip; must be omitted when trip_type is oneway.

stopsstring

Actual number of flight connections: 0 for nonstop, 1, or 2. Omit when unknown. For a round trip, 0 means nonstop on both the outbound and the inbound flight; 1 and 2 are not covered for round trips.

cabin_classRequiredstring

economy · premium_economy · business · first

current_priceRequiredobject

One adult total fare for the supplied trip, including tax and excluding optional paid extras. Value 32000, USD, decimal_places 2 means USD 320.00.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.