FlightAware airborne flights of an airline

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

Every airborne flight of an airline (20 per page): flight number, flight id, aircraft type, origin, destination, departure time and estimated arrival. Sort by any column. Pass next_offset back as offset; null on the last page.

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 Airline ICAO code, e.g. UAL, BAW, DAL. Example: UAL
sort ident | type | origin | destination | departure | arrival Sort column.
order asc | desc Sort direction.
offset integer Row offset, a multiple of 20.

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

Example

curl "https://api.api.sh/flightaware/v1/operator/flights?code=UAL" \
  -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": "UAL","heading": "Airborne United \"United\" (UAL) Aircraft","offset": 0,"sort": "ident","order": "asc","count": 20,"flights": [{"ident": "UAL1","operator": "United \"United\" (Chicago, Illinois)","flight_id": "UAL1-1793692162-airline-491p:0","url": "https://www.flightaware.com/live/flight/id/UAL1-1793692162-airline-491p%3a0","aircraft_type": "B789","aircraft_type_name": "Boeing 787-9 Dreamliner (twin-jet)","origin": {"name": "San Francisco Int'l","location": "San Francisco, CA","icao": "KSFO","iata": null},"destination": {"name": "Changi","location": "Singapore","icao": "WSSS","iata": "SIN"},"departure": "Thu 11:17PM PST","estimated_arrival": "Sat 06:48AM +08"},{"ident": "UAL100","operator": "United \"United\" (Chicago, Illinois)","flight_id": "UAL100-1793744921-schedule-389p:18","url": "https://www.flightaware.com/live/flight/id/UAL100-1793744921-schedule-389p%3a18","aircraft_type": "B789","aircraft_type_name": "Boeing 787-9 Dreamliner (twin-jet)","origin": {"name": "Kingsford Smith Intl","location": "Sydney, NSW","icao": "YSSY","iata": "SYD"},"destination": {"name": "Houston Bush Int'ctl","location": "Houston, TX","icao": "KIAH","iata": null},"departure": "Fri 10:17AM AEDT","estimated_arrival": "Fri 08:01AM CST"},"… 18 more"],"next_offset": 20,"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.