check_flights api call