Search flights
search_flightsLook up live flight status by carrier, flight number, and date; returns gates, delays, and alternate legs, with origin/destination to select a specific leg.
Instructions
The same lookup as get_flight (same parameters, same snapshot), sent as query parameters to /v1/flights/search. Use either one, not both. Returns FlightByte's flight snapshot: status.phase to branch on (scheduled, boarding, departed, en_route, landed, arrived, cancelled, diverted, redirected, unknown) with delayed/cancelled/diverted flags; departure and arrival airports with terminal, gate and baggage carousel; scheduled, estimated and actual gate and runway times in UTC and local time (bestTimeUtc is the best single time, delayMinutes the gate delay); aircraft, codeshares, the airline timeline, cached, and alternates: every leg this flight number operates that day. When the flight number operates several legs that day, pass origin (and optionally destination) to pick one; without a selector the default leg is returned and every leg is listed under alternates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Local departure date at the origin airport, YYYY-MM-DD. A flight that leaves at 23:50 and lands the next morning belongs to the day it left. Live records cover a few days back to about two days ahead. | |
| origin | No | Departure airport, IATA code (e.g. "IST"; the upstream code such as "ISL" also works). Picks the leg when the flight number operates more than one leg that day. | |
| carrier | Yes | Airline code: the 2-character IATA code (e.g. "TK") or 3-character ICAO code (e.g. "THY"). For flight "TK1848" this is "TK". | |
| refresh | No | true skips FlightByte's cache and asks upstream now (counts as a normal request). Leave unset unless the user needs a guaranteed fresh answer. | |
| flightId | No | Exact leg pick: a providerFlightId from a previous response's `alternates`, or a flightId from an error's list of legs. | |
| destination | No | Arrival airport, IATA code (e.g. "JFK"). Narrows further when several legs leave the same airport. | |
| flightNumber | Yes | Flight number without the airline code: 1 to 4 digits and an optional letter suffix. For "TK1848" this is "1848". Leading zeros are ignored. |