# FlightXML API not finding flights

**URL:** https://discussions.flightaware.com/t/flightxml-api-not-finding-flights/26968
**Category:** AeroAPI
**Created:** [October 14, 2017, 7:48pm UTC](https://discussions.flightaware.com/t/flightxml-api-not-finding-flights/26968 "2017-10-14T19:48:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AsiaLogistics](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/asialogistics/32/1090_2.png) [@AsiaLogistics](https://discussions.flightaware.com/u/AsiaLogistics)
#### Post date: [October 14, 2017, 7:48pm UTC](https://discussions.flightaware.com/t/flightxml-api-not-finding-flights/26968/1 "2017-10-14T19:48:18Z")

</div>

Hello!

I have been testing FlightXML for the past few days and I cannot understand why some of the flights are available via API and others are not (while all are visible on [http://flightaware.com/live/](http://flightaware.com/live/)). For example I managed to get faFlightID using GetFlightID([‘ident’ =\> ‘DLH1835’ , ‘departureTime’ =\> 1507989000]); but different flight GetFlightID([‘ident’ =\> ‘DLH2082’ , ‘departureTime’ =\> 1508000700]); returned no data.

I’m using ICAO flight numbers as recommended. I tried to turn off " Show position-only flights" but it didn’t help. I also noticed that all the flights that were not found by the API were also missing in FlightRadar24.

---

<div class="post-metadata">

### Author: ![cbw](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/cbw/32/117000_2.png) [@cbw](https://discussions.flightaware.com/u/cbw)
#### Post date: [October 16, 2017, 6:09pm UTC](https://discussions.flightaware.com/t/flightxml-api-not-finding-flights/26968/2 "2017-10-16T18:09:51Z")

</div>

The scheduled time is 1508000400 not 1508000700. You can see there is a 5 minute difference in actual time and scheduled time. It appears you were using actual instead of scheduled.
