This API will provide you with complete schedule of any airport. You can get data according to arrivals and departures separately.
API endpoint for this API is: https://api.flightapi.io/schedule
Guide
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your Dashboard at any time.
Here is the list of default parameters you have to use with this API:
Parameters
Description
Type
api_key
required
This is your personal API key. You can find this on your Dashboard.
String
mode
required
The value of mode could be either arrivals or departures.
required
String
day
required
The value of day could be as follows:
-1(yesterday), -2(day before yesterday), 1(today), or 2(tomorrow)Notrequired
String
iata
required
This is the IATA code of the airport.
required
String
page
To change the page number and get more data
String
If you don't pass the day parameter then our API will respond with the complete schedule of the airport from the last 5 days to the next 5 days. Credit cost also depends on the number of days you receive.
Usage
You have to send a GET request to https://api.flightapi.io/schedule along with all the parameters.
Take a look at how you might call this API using various different coding languages.
// require the Unirest or any other module to make an HTTP GET requestconstunirest=require('unirest')unirest.get('https://api.flightapi.io/schedule/api_key?mode=departures&iata=DOH&day=1').then(response => {console.log(response.body); }).catch(error => {console.log(error); });
// Set your API key before making the requestimport requestsresp = requests.get('https://api.flightapi.io/schedule/api_key?mode=departures&iata=DOH&day=1')print (resp.json())
Response
The sample response of the API will look somewhat like this.
It is just a sample API response. Some objects will have more attributes. A new array might also be there.