I am trying to use the Aero API, and I see many endpoints there, so there seems to be a GET for /airports but then it only returns airport codes, then there’s another endpoint for /airport {id} and if you put the airport code in then it works, that means I’d have to hit 2 API’s just to fetch a list of airports, now I need the airline name too, and all valid flight numbers that go to that airport and airline, how many API calls will I have to make?
It just seems inefficient, trying to see if there’s a better endpoint I can hit, or what you guys suggest. One workaround I thought of was setting up these calls for the airports and airline names on a cron job once every six months, then only running the API to fetch the flight status information and check the flight number validity.
Basically I have an airport shuttle service and I’m trying to display updated flight statuses and also validate flight information so it’s correct when the user inputs, and update the drivers when arrival times are changed or flights are delayed or cancelled.
Any suggestions from you guys helps ![]()
