Search flights for a small party
egf_search_flightsSearches live public fares for 1 to 9 travellers and returns options with per-person prices, carriers and stops, cheapest first, each with an offer_id valid for 30 minutes. Results come in pages: pass next_cursor back as cursor, with the same route and dates, for more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Fares per page. Defaults to 10. | |
| cursor | No | next_cursor from the previous page of this search. Omit for the first page. | |
| origin | Yes | Departure airport, IATA code, e.g. VIE. | |
| passengers | No | How many people are travelling, 1 to 9. Defaults to 1. | |
| destination | Yes | Arrival airport, IATA code, e.g. BCN. | |
| return_date | No | Return date, ISO 8601 (YYYY-MM-DD). Omit for one way. | |
| departure_date | Yes | Outbound date, ISO 8601 (YYYY-MM-DD). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fares | Yes | ||
| total | Yes | Fares the search found, across all pages. | |
| origin | Yes | ||
| currency | Yes | ISO 4217 code every price is in. | |
| passengers | Yes | ||
| destination | Yes | ||
| next_cursor | No | Pass as cursor for the next page. Absent on the last page. | |
| return_date | No | ISO 8601 date (YYYY-MM-DD). Absent for one way. | |
| departure_date | Yes | ISO 8601 date (YYYY-MM-DD). |