FlightAware airborne flights of an aircraft type
Every airborne flight of one aircraft type (20 per page): flight number, operator, flight id, 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
| name | type | description |
|---|---|---|
typerequired | string | ICAO aircraft type designator, e.g. A388, B789, C172. Example: A388 |
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/aircraft-type/flights?type=A388" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/flightaware/v1/aircraft-type/flights",
params={"type": "A388"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/flightaware/v1/aircraft-type/flights");
url.searchParams.set("type", "A388");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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)
{"type": "A388","heading": "Airborne Airbus A380-800 (quad-jet) (A388) Aircraft","offset": 0,"sort": "ident","order": "asc","count": 20,"flights": [{"ident": "AAR202","operator": "Asiana \"Asiana\" (Republic Of Korea)","flight_id": "AAR202-1793763020-schedule-927p:0","url": "https://www.flightaware.com/live/flight/id/AAR202-1793763020-schedule-927p%3a0","aircraft_type": "A388","aircraft_type_name": "Airbus A380-800 (quad-jet)","origin": {"name": "Incheon Intl","location": "Seoul (Incheon)","icao": "RKSI","iata": "ICN"},"destination": {"name": "Los Angeles Intl","location": "Los Angeles, CA","icao": "KLAX","iata": null},"departure": "Fri 12:57PM KST","estimated_arrival": "Fri 06:14AM PST"},{"ident": "AAR602","operator": "Asiana \"Asiana\" (Republic Of Korea)","flight_id": "AAR602-1793748722-schedule-546p:8","url": "https://www.flightaware.com/live/flight/id/AAR602-1793748722-schedule-546p%3a8","aircraft_type": "A388","aircraft_type_name": "Airbus A380-800 (quad-jet)","origin": {"name": "Kingsford Smith Intl","location": "Sydney, NSW","icao": "YSSY","iata": "SYD"},"destination": {"name": "Incheon Intl","location": "Seoul (Incheon)","icao": "RKSI","iata": "ICN"},"departure": "Fri 10:54AM AEDT","estimated_arrival": "Fri 06:48PM KST"},"… 18 more"],"next_offset": 20,"cached": false,"credits_used": 1}