I have a personal weather website with a travel section. I’ve been using the FAA.gov API for several years and it has recently ceased operation. I am tracking 18 airports and would like to use FlightAware’s /airport/delays/ endpoint. I would like to call those 18 airports and fetch their delays (Json file) every 30 minutes. I’m just confused with the pricing. I’m reading that it is .05 cents per call?
So, if my horrible math is right:
18 airports x 0.05 x 48 hrs. (2 calls/hr.) x 30 days = $1296/mo.?
That endpoint gives you the delays info for a single airport for $0.01; since you want more than 5 airports it makes more sense to use the /airports/delays endpoint to get the same info for all airports globally.
Thank you. I was able to modify my code. I’ll probably just call once an hour to keep costs down, unless there is a discount for personal users that don’t make many calls per day?
I noticed in the dev portal during testing the endpoint allows to specify max_pages… 'Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned."
So, if I take the default (1 page), only one set (15 airport delays) will be returned and I may miss data, is that correct?
Yes, if there are more than 15 airport delays (an airport can have multiple, e.g. departures and arrivals), you’ll need to make additional queries to get all of them. Right now there are 15 delays shown on Worldwide Airport Delays and Airport Status - FlightAware so it would only be one page of results.