FlightAware Discussions

Fetching ALL airport data

I am currently developing a website to track flights. Ideally, I’d like to be able to fetch all airport codes via the AllAirports call and then call AirportInfo on each identifier in succession to populate a database with all the airport info. I know I can do a simple for to loop through, but with there being nearly 27,000 identifiers I wanted to check and see what the best way was to go about this so as to not overload the service.

That’s the only way, if you really need to get the details on all of them.

Please see flightaware.com/commercial/data/airports