e5d7af502419
Build a durable wego.com search link
Builds a shareable wego.com flight-search URL from the caller's own route, dates, cabin and passengers. A pure, stateless string build - no upstream call, no search created. It carries no search-scoped id, so it does not expire: whoever opens it runs the search live.
Query parameters
Origin airport or city code, as sent to the flight search.
Destination airport or city code, as sent to the flight search.
Whether from is a city code rather than an airport code.
Whether to is a city code rather than an airport code.
Outbound departure date, YYYY-MM-DD, as sent to the flight search.
Return date, YYYY-MM-DD. Omit for a one-way handoff.
Cabin class, as sent to the flight search.
Adult passengers (1-9).
Child passengers (0-8).
Infant passengers (0-8). Must not exceed adults.
Wego market (point of sale) as a 2-letter code, e.g. AE. Optional: if omitted the API defaults to US. A client that knows the user's market (the wego CLI derives it from the id_token) passes it as an explicit siteCode.
Pricing currency as a 3-letter ISO 4217 code (e.g. AED). Optional: when omitted the built URL carries NO currency parameter – it is not defaulted to USD, so wego.com shows the market's own default. Pass it to pin the handoff to a currency.
Response language tag for the wego.com page (e.g. en, ar). Defaults to en.
Response
The durable wego.com search URL.