# API does not return records

**URL:** <https://discussions.flightaware.com/t/api-does-not-return-records/62695>\
**Category:** AeroAPI\
**Created:** [March 26, 2020, 12:31pm UTC](https://discussions.flightaware.com/t/api-does-not-return-records/62695 "2020-03-26T12:31:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmathilda](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/hmathilda/32/61111_2.png) [@hmathilda](https://discussions.flightaware.com/u/hmathilda)\
**Post date:** [March 26, 2020, 12:31pm UTC](https://discussions.flightaware.com/t/api-does-not-return-records/62695/1 "2020-03-26T12:31:41Z")

</div>

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

- DIVI DIVI AIR
- AIR CENTURY

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](https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=3R11) does not return a result, however

[https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=DVR11](https://flightxml.flightaware.com/json/FlightXML3/FlightInfoStatus?ident=DVR11) does.

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

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

How can this be solved?

---

<div class="post-metadata">

**Author:** ![dogrock](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dogrock/32/118974_2.png) [@dogrock](https://discussions.flightaware.com/u/dogrock)\
**Post date:** [March 26, 2020, 7:01pm UTC](https://discussions.flightaware.com/t/api-does-not-return-records/62695/2 "2020-03-26T19:01:39Z")

</div>

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.
