SearchFlightPrices
SearchFlightPrices searches for flight price offers on a route.
Query Parameters
Origin airport IATA code.
Destination airport IATA code.
Outbound departure date (ISO 8601).
Return date (ISO 8601), empty for one-way.
Number of adult passengers (1-9).
Desired cabin class.
Whether to restrict to nonstop flights only.
Maximum number of quotes to return (1-50).
ISO 4217 currency code for prices (e.g., "usd", "eur", "try").
Market/locale code (e.g., "us", "tr").
Response
Successful response
SearchFlightPricesResponse contains flight price offers.
Provider name: "travelpayouts_data", "demo", or "none" when no live provider is configured.
Whether results are from demo/simulated mode. Requires explicit AVIATION_DEMO_PRICES=1 opt-in on the server. Never true in default self-host / production runs. See issue #3756.
Last update time as Unix epoch milliseconds.. Warning: Values > 2^53 may lose precision in JavaScript
Whether returned prices are indicative (subject to change).
True when the live provider could not satisfy the request — missing credentials, upstream failure, or zero results. Mirrors the searchGoogleFlights pattern so clients can render distinct messages for each error class.
Discriminator for the degraded state: "" (ok), "missing_credentials" (TRAVELPAYOUTS_API_TOKEN unset), "upstream_error" (provider call threw), "no_results" (provider returned empty for this route).
