FlightAware airport arrivals and departures

GET https://api.api.sh/flightaware/v1/airport
1 credit / call travel & events try it in the playground →

One airport's boards as its public page shows them: the latest arrivals and departures and the next en route and scheduled flights (up to 20 each), each with flight number, operator, aircraft type, the other airport, and departure and arrival times (local), plus the airport's name, city and codes.

Every response includes credits_used: the credits this call cost.

Part of the FlightAware API: 11 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
coderequired string ICAO or IATA airport code, e.g. KSFO or SFO. Example: KSFO

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/flightaware/v1/airport?code=KSFO" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"code": "KSFO","name": "San Francisco Int'l Airport","location": "San Francisco, CA","iata": "SFO","title": "San Francisco Int'l Airport (San Francisco, CA) SFO","arrivals": [{"ident": "UAL367","operator": "United \"United\" (Chicago, Illinois)","aircraft_type": "B39M","aircraft_type_name": "Boeing 737 MAX 9 (twin-jet)","origin": {"name": "Washington Dulles Intl","location": "Washington, DC","icao": "KIAD","iata": "IAD"},"departure": "10:36p EST","arrival": "12:50a PST","url": "https://www.flightaware.com/live/flight/UAL367/history/20261106/0330Z/KIAD/KSFO"},{"ident": "ASA404","operator": "Alaska Airlines \"Alaska\"","aircraft_type": "B39M","aircraft_type_name": "Boeing 737 MAX 9 (twin-jet)","origin": {"name": "Ellison Onizuka Kona Intl At Keahole","location": "Kailua-Kona, HI","icao": "PHKO","iata": "KOA"},"departure": "05:55p HST","arrival": "12:46a PST","url": "https://www.flightaware.com/live/flight/ASA404/history/20261106/0302Z/PHKO/KSFO"},"… 18 more"],"departures": [{"ident": "UAL2847","operator": "United \"United\" (Chicago, Illinois)","aircraft_type": "A21N","aircraft_type_name": "Airbus A321neo (twin-jet)","destination": {"name": "Chicago O'Hare Intl","location": "Chicago, IL","icao": "KORD","iata": "ORD"},"departure": "12:57a PST","arrival": "06:47a CST","url": "https://www.flightaware.com/live/flight/UAL2847/history/20261106/0905Z/KSFO/KORD"},{"ident": "UAL60","operator": "United \"United\" (Chicago, Illinois)","aircraft_type": "B789","aircraft_type_name": "Boeing 787-9 Dreamliner (twin-jet)","destination": {"name": "Melbourne Intl","location": "Melbourne, Victoria","icao": "YMML","iata": "MEL"},"departure": "12:54a PST","arrival": "10:48a AEDT","url": "https://www.flightaware.com/live/flight/UAL60/history/20261106/0745Z/KSFO/YMML"},"… 18 more"],"enroute": [{"ident": "QXE2485","operator": "Horizon \"Horizon Air\" (Seattle, WA)","aircraft_type": "E75L","aircraft_type_name": "EMBRAER 175 (long wing) (twin-jet)","origin": {"name": "Los Angeles Intl","location": "Los Angeles, CA","icao": "KLAX","iata": "LAX"},"departure": "12:37a PST","arrival": "01:32a PST","url": "https://www.flightaware.com/live/flight/QXE2485/history/20261106/0610Z/KLAX/KSFO"},{"ident": "ATN3360","operator": "Air Transport International, Inc. \"Air Transport\" (Wilmington, OHIO)","aircraft_type": "B763","aircraft_type_name": "BOEING 767-300 (twin-jet)","origin": {"name": "Wilmington Air Park","location": "Wilmington, OH","icao": "KILN","iata": "ILN"},"departure": "12:36a EST","arrival": "01:58a PST","url": "https://www.flightaware.com/live/flight/ATN3360/history/20261106/0536Z/KILN/KSFO"},"… 18 more"],"scheduled": [{"ident": "KOW957","operator": "Baker Aviation, LLC \"Rodeo\" (Fort Worth, TX)","aircraft_type": "C750","aircraft_type_name": "Cessna Citation X (twin-jet)","destination": {"name": "Pittsburgh Intl","location": "Pittsburgh, PA","icao": "KPIT","iata": null},"departure": "08:10p PST","arrival": "03:18a EST","url": "https://www.flightaware.com/live/flight/KOW957/history/20261107/0240Z/KSFO/KPIT"},{"ident": "UAL604","operator": "United \"United\" (Chicago, Illinois)","aircraft_type": "B39M","aircraft_type_name": "Boeing 737 MAX 9 (twin-jet)","destination": {"name": "Houston Bush Int'ctl","location": "Houston, TX","icao": "KIAH","iata": "IAH"},"departure": "01:14a PST","arrival": "06:33a CST","url": "https://www.flightaware.com/live/flight/UAL604/history/20261106/0855Z/KSFO/KIAH"},"… 18 more"],"url": "https://www.flightaware.com/live/airport/KSFO","note": "the most recent arrivals and departures and the next en route and scheduled flights (up to 20 each), as the public airport page shows them; …","cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.