Using Future Airport Schedules API on My Flight App

·

4 min read

This is Rima continuing with another API review with updates as to how the flight schedule app I’m working on is going 🔍 This time, I will talk about Aviyair’s future airport schedules API which I'm using to display upcoming flights based on in-app user selections.

I will get into more details but this API can fetch a time range of 365 days ahead, meaning I could fetch airport schedule data of halfway through 2024 from today, pretty awesome.

What I’m trying to build with the future airport schedule data:

  • The user selects a departure and arrival airport

  • The airport selection feature is supported by autocomplete

  • The user selects a date

  • All available routes are displayed in a list form

  • The user selects the desired flight and proceeds to view the flight details

I can also think of other use cases for the future airport schedules API like:

  • Calculating the percentage of certain routes and airlines within a complete airport schedule

  • Travel agency operation schedules with push notifications

  • Air traffic virtual maps

Without further ado, let’s get into the specifications on the future airport schedule data!


Requesting Future Airport Schedule Data

I’ve used this simple HTTPS request below to send a GET request

import requests

url = "https://data.aviyair.com/data/v1/futureschedule?key=apikey&airport_iata=DEL&date=2023-03-04"
response = requests.get(url)
data = response.json()

print("Status code: ", response.status_code)
print("Data: ", data)

The request returns 200 OK and looks like this:

(For the sake of readability and not to overwhelm the article with raw data, I’ve only included one flight from the complete future airport schedule API response)

{
"weekday": "1",
"departure": {
"iataCode": "sin",
"icaoCode": "wsss",
"terminal": "3",
"gate": "a16",
"scheduledTime": "02:35"
},
"arrival": {
"iataCode": "del",
"icaoCode": "vidp",
"terminal": "t3",
"gate": "10",
"scheduledTime": "05:40"
},
"aircraft": {
"modelCode": "b78x",
"modelText": "boeing 787-10 dreamliner"
},
"airline": {
"name": "",
"iataCode": "nh",
"icaoCode": "nh"
},
"flight": {
"number": "6278",
"iataNumber": "nh6278",
"icaoNumber": "nh6278"
},
"codeshared": {
"airline": {
"name": "singapore airlines",
"iataCode": "sq",
"icaoCode": "sia"
},
"flight": {
"number": "402",
"iataNumber": "sq402",
"icaoNumber": "sia402"
}
}
}

Believing what they filter is pretty self-explanatory, here are the other parameters that I could have used according to their documentation:

  • departure_iata, departure_icao, arrival_iata, arrival_icao, airline_iata, airline_icao and flight_number

Is Aviyair’s Future Airport Timetables API Worth It?

Well, to come to the conclusion of whether Aviyair’s future airport timetables API is worth it or not, here are some pros and cons to consider on top of the data specifications above.

Pros

✅ Available time range. 1 year into the future is pretty extensive

✅ You can also access historical and real-time schedule data under the same API key

✅ The price point is reasonable

✅ Good support available

✅ Weekday detail will be useful display how many times a flight is scheduled throughout the week

✅ Aircraft details included (worth mentioning as this is not included in the real-time and historical data versions of the API)

Cons

⛔️ As much as transfer flights are displayed, there is no indicator of whether a flight is direct or connected

⛔️ I like Aviyair as an aviation data provider but they don’t have flight booking or hotel data if you want the whole package (though, I haven’t seen any other providers that have this whole package either)

In the end, this future airport schedule API provided me with all the data I needed for the use case I mentioned at the beginning of the article. Pretty much like the other schedule APIs that I’m working on, I’ve found this one to be one of the most useful ones. It will return you these details for every single flight in the output: weekday, departure and arrival airport codes, terminals, gates, scheduled flight take-off and arrive times, aircraft model, airline details and flight number

This is their website where you can see the prices and request an API key. I hope you will find this article useful and let me know in the comments what else you think can be built with this API or if you’ve found any similar ones. Over and out! 🫡