Hi FlightAware support team.
There is an endpoint to get airports by city, i.e. GET /allairports?city=<city : string>>
GET /allairports?city=<city : string>>