The most efficient way to retrieve a full day's worth of flight information in one direction from the Flight Status by Airport API is to use the maximum number of hours worth by performing four queries (with the hourOfDay = 0, 6, 12, and 18).
For example (flight departures timeframe):
Time frame from 00:00 to 05:59
https://api.flightstats.com/flex/flightstatus/rest/v2/json/airport/status/YYZ/dep/2021/11/01/0?appId=****&appKey=****&utc=false&numHours=6
Time frame from 06:00 to 11:59
https://api.flightstats.com/flex/flightstatus/rest/v2/json/airport/status/YYZ/dep/2021/11/01/6?appId=****&appKey=****&utc=false&numHours=6
Time frame from 12:00 to 17:59
https://api.flightstats.com/flex/flightstatus/rest/v2/json/airport/status/YYZ/dep/2021/11/01/12?appId=****&appKey=****&utc=false&numHours=6
Time frame from 18:00 to 23:59
https://api.flightstats.com/flex/flightstatus/rest/v2/json/airport/status/YYZ/dep/2021/11/01/18?appId=****&appKey=****&utc=false&numHours=6
Comments
0 comments
Article is closed for comments.