The Flight Labs API was built to provide a simple way of accessing global aviation data for real-time and historical flights as well as allow customers to tap into an extensive data set of airline routes and other up-to-date aviation-related information.
Quickstart
Requests to the REST API are made using a straightforward HTTP GET URL structure and responses are provided in lightweight JSON format.
Example API Request:
https://app.goflightlabs.com/flights?access_key=YOUR_ACCESS_KEY
Future Flights
For the future flights endpoint you must enter a date more than 7 days from the current date.
API request example For information about a specific airport, you can search based on IATA code.
https://app.goflightlabs.com/advanced-future-flights?access_key=YOUR_ACCESS_KEY&type=departure&iataCode=BER&date=2023-10-04
API request example For the arrival schedule of a certain airport on a certain future date.
https://app.goflightlabs.com/advanced-future-flights?access_key=YOUR_ACCESS_KEY&type=arrival&iataCode=BER&date=2023-10-04
API request example For the flights that are scheduled to arrive at a certain airport on a certain date (out of a departure schedule).
https://app.goflightlabs.com/advanced-future-flights?access_key=YOUR_ACCESS_KEY&type=departure&iataCode=JFK&arr_iataCode=LAX&date=2023-10-04
API request example For the flights that are scheduled to depart from a certain airport on a certain date (out of an arrival schedule).
https://app.goflightlabs.com/advanced-future-flights?access_key=YOUR_ACCESS_KEY&type=arrival&iataCode=BER&dep_iataCode=ory&date=2023-10-04
HTTP GET Request Parameters:
Object | Description |
---|---|
access_key |
[Required] Your API access key, which can be found in your acccount dashboard. |
iataCode |
[Required] Airport IATA code. |
type |
[Required] Either "departure" or "arrival" as both within the same query is not possible. |
date |
[Required] Future date in YYYY-MM-DD format and greater than 7 days from the current date. |
dep_iataCode |
[Optional] Filter of departure airport if "arrival" for "&type=" was chosen, based on the airport IATA code. |
dep_icaoCode |
[Optional] Filter of departure airport if "arrival" for "&type=" was chosen, based on the airport ICAO code. |
arr_iataCode |
[Optional] Filter of arrival airport if "departure" for "&type=" was chosen, based on the airport IATA code. |
arr_icaoCode |
[Optional] Filter of arrival airport if "departure" for "&type=" was chosen, based on the airport ICAO code. |
arr_icaoCode |
[Optional] Filter airline based on airline IATA code. |
airline_icao |
[Optional] Filter airline based on airline ICAO code. |
flight_num |
[Optional] Filter a specific flight based on its flight number. |
Example API Response:
{
"data": [
{
"weekday": "4",
"departure": {
"iataCode": "lax",
"icaoCode": "klax",
"terminal": "4",
"gate": "A",
"scheduledTime": "12:00"
},
"arrival": {
"iataCode": "jfk",
"icaoCode": "kjfk",
"terminal": "8",
"gate": "B",
"scheduledTime": "20:35"
},
"aircraft": {
"modelCode": "a321",
"modelText": "airbus a321-231"
},
"airline": {
"name": "american airlines",
"iataCode": "aa",
"icaoCode": "aal"
},
"flight": {
"number": "274",
"iataNumber": "aa274",
"icaoNumber": "aal274"
}
},
[...]
]
}
API Response Objects:
Response Object | Description |
---|---|
weekday |
Returns the weekday number | 1 = monday, 7 = sunday. |
departure > iataCode |
Returns the IATA code associated with the departure airport. |
departure > icaoCode |
Returns the ICAO code associated with the departure airport. |
departure > terminal |
Returns the terminal. |
departure > gate |
Returns the gate. |
departure > scheduledTime |
Returns the Scheduled Time. |
arrival > iataCode |
Returns the IATA code associated with the arrival airport. |
arrival > icaoCode |
Returns the ICAO code associated with the arrival airport. |
arrival > terminal |
Returns the terminal associated with the arrival airport. |
arrival > gate |
Returns the gate associated with the arrival airport. |
arrival > scheduledTime |
Returns the Scheduled Time associated with the arrival airport. |
aircraft > modelCode |
Returns the model code of aircraft. |
aircraft > modelText |
Returns the model in text of aircraft. |
airline > name |
Returns the name of airline. |
airline > iataCode |
Returns the IATA code of airline. |
airline > icaoCode |
Returns the ICAO code of airline. |
flight > number |
Returns the flight number. |
flight > iataNumber |
Returns the flight IATA number. |
flight > icaoNumber |
Returns the flight ICAO number. |