FlightAware Discussions

API does not return records

The FlightXML API does not return records when querying with the IATA code for the following airlines:


However on the Flightaware website results are returned for the IATA code “3R” and “Y2”. The API only returns results when querying ICAO codes “DVR” and “CEY”. For example:

https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=3R11 does not return a result, however

https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=DVR11 does.

https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=Y2151 works, and

https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=CEY151 does not.

How can this be solved?

In FlightXML when specifying an airline with flight number, either an ICAO or IATA code may be used to designate the airline, however ambiguous or conflicting IATA code assignments do exist so use of ICAO codes is strongly recommended. The website is doing more than the equivalent of a single XML query to arrive at the correct lookup.