Search for flights
Search for airborne flights by matching against various parameters including geospatial data. Uses a simplified query syntax compared to /flights/search/advanced.
Request
- Base URLhttps://aeroapi.flightaware.com/aeroapi
- AuthAPI key in header x-apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Query to search for flights with a simplified syntax (compared to /flights/search/advanced). It should not exceed 1000 bytes in length. Query syntax allows filtering by latitude/longitude box, aircraft ident with wildcards, type with wildcards, prefix, origin airport, destination airport, origin or destination airport, groundspeed, and altitude. It takes search terms in a single string comprising "-key value" pairs. Codeshares and alternate idents are NOT searched when using the -idents clause.
Keys include:
- -prefix STRING
- -type STRING
- -idents STRING
- -identOrReg STRING
- -airline STRING
- -destination STRING
- -origin STRING
- -originOrDestination STRING
- -aboveAltitude INTEGER
- -belowAltitude INTEGER
- -aboveGroundspeed INTEGER
- -belowGroundspeed INTEGER
- -latlong "MINLAT MINLON MAXLAT MAXLON"
- -filter {ga|airline}
Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
Opaque value used to get the next batch of data from a paged collection.
Response
OK
Example response
{
"flights": [
{
"origin": {
"timezone": "America/New_York",
"name": "LaGuardia",
"city": "New York"
},
"destination": {
"timezone": "America/New_York",
"name": "LaGuardia",
"city": "New York"
},
"first_position_time": "2021-12-31T19:59:59Z",
"last_position": {
"timestamp": "2021-12-31T19:59:59Z"
},
"actual_off": "2021-12-31T19:59:59Z",
"actual_on": "2021-12-31T19:59:59Z",
"foresight_predictions_available": true
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.