# Some flights not returned / wrong data

**URL:** <https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253>\
**Category:** AeroAPI\
**Created:** [April 5, 2016, 12:12pm UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253 "2016-04-05T12:12:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![WesleySoeters](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@WesleySoeters](https://discussions.flightaware.com/u/WesleySoeters)\
**Post date:** [April 5, 2016, 12:12pm UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253/1 "2016-04-05T12:12:35Z")

</div>

I’m using FlightXML for a new app that i’m building.  
Now I am trying to get the flights that are departing from a specific airport to a other airport within a date/timestamp.  
This does work, except that FlightXML does not return all the flights and most of the times wrong departure times.

For example, when I search on SkyScanner for today I get allot of flights that are not being returned or have wrong departure times:  
[http://s24.postimg.org/pq7xj1t6t/Screen\_Shot\_2016\_04\_05\_at\_14\_08\_26.png](http://s24.postimg.org/pq7xj1t6t/Screen_Shot_2016_04_05_at_14_08_26.png)

And when I use the same query  
[flightxml.flightaware.com/json/F … 5&offset=0](http://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules?origin=AMS&destination=SEN&startDate=1459814400&endDate=1459900799&howMany=15&offset=0)

It returns not all airliners/flights that are departing, just 2 of them. That is strange, because when I look on the map that you cover, The Netherlands and London are covered.

```auto

{"AirlineFlightSchedulesResult":{"next_offset":-1,"data":{"ident":"EZY7402","actual_ident":"","departuretime":1459842900,"arrivaltime":1459846500,"origin":"EHAM","destination":"EGMC","aircrafttype":"A319","meal_service":"","seats_cabin_first":0,"seats_cabin_business":0,"seats_cabin_coach":156},{"ident":"EZY7406","actual_ident":"","departuretime":1459885800,"arrivaltime":1459889400,"origin":"EHAM","destination":"EGMC","aircrafttype":"A319","meal_service":"","seats_cabin_first":0,"seats_cabin_business":0,"seats_cabin_coach":156}]}}

```

So sometimes, when I search for a flight it does not show up. When they do show-up then they have the wrong departure times, sometimes 30 minutes and other times 2 hours. When I search the flight on Google it shows the correct times.

How can I fix this?

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [April 5, 2016, 1:01pm UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253/2 "2016-04-05T13:01:30Z")

</div>

Those timestamps look fine to me, they match what Google says.

```auto

$ TZ='Europe/Amsterdam' date -d '@1459842900'
Tue Apr 5 09:55:00 CEST 2016
$ TZ='Europe/London' date -d '@1459846500'
Tue Apr 5 09:55:00 BST 2016

$ TZ='Europe/Amsterdam' date -d '@1459885800'
Tue Apr 5 21:50:00 CEST 2016
$ TZ='Europe/London' date -d '@1459889400'
Tue Apr 5 21:50:00 BST 2016

```

---

<div class="post-metadata">

**Author:** ![WesleySoeters](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@WesleySoeters](https://discussions.flightaware.com/u/WesleySoeters)\
**Post date:** [April 5, 2016, 2:16pm UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253/3 "2016-04-05T14:16:36Z")

</div>

Thank you for input.

But those do not match the Flights with that specific FlightNumber, for example:

I search on FlightRadar for a flight that is about to departure, in this case UAL959. It’s about to departure from London.  
[http://s8.postimg.org/lg3o315l1/Screen\_Shot\_2016\_04\_05\_at\_16\_05\_25.png](http://s8.postimg.org/lg3o315l1/Screen_Shot_2016_04_05_at_16_05_25.png)

Then I will put the flightnumber in FlightXML.  
[flightxml.flightaware.com/json/F … 5&offset=0](http://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules?flightno=959&airline=UAL&startDate=1459814400&endDate=1459900799&howMany=15&offset=0)

```auto

{"AirlineFlightSchedulesResult":{"next_offset":-1,"data":{"ident":"AUA7853","actual_ident":"UAL959","departuretime":1459865400,"arrivaltime":1459898100,"origin":"EGLL","destination":"KORD","aircrafttype":"B763","meal_service":"Eerste klas: Diner / Business: Diner / Economy: Diner","seats_cabin_first":6,"seats_cabin_business":26,"seats_cabin_coach":151},{"ident":"ACA5365","actual_ident":"UAL959","departuretime":1459865400,"arrivaltime":1459898100,"origin":"EGLL","destination":"KORD","aircrafttype":"B763","meal_service":"","seats_cabin_first":6,"seats_cabin_business":26,"seats_cabin_coach":151},{"ident":"DLH9356","actual_ident":"UAL959","departuretime":1459865400,"arrivaltime":1459898100,"origin":"EGLL","destination":"KORD","aircrafttype":"B763","meal_service":"Eerste klas: Diner / Business: Diner / Economy: Diner","seats_cabin_first":6,"seats_cabin_business":26,"seats_cabin_coach":151},{"ident":"BEL9089","actual_ident":"UAL959","departuretime":1459865400,"arrivaltime":1459898100,"origin":"EGLL","destination":"KORD","aircrafttype":"B763","meal_service":"","seats_cabin_first":6,"seats_cabin_business":26,"seats_cabin_coach":151},{"ident":"UAL959","actual_ident":"","departuretime":1459865400,"arrivaltime":1459898100,"origin":"EGLL","destination":"KORD","aircrafttype":"B763","meal_service":"Eerste klas: Diner / Business: Diner / Economy: Diner","seats_cabin_first":6,"seats_cabin_business":26,"seats_cabin_coach":151}]}}

```

When I convert those epoch times I get the following result, Tue, 05 Apr 2016 14:10:00 GMT. Then I Google the flightnumber it does not match the data I get back from FlightXML:  
[http://s23.postimg.org/wkix1kvqj/Screen\_Shot\_2016\_04\_05\_at\_16\_14\_16.png](http://s23.postimg.org/wkix1kvqj/Screen_Shot_2016_04_05_at_16_14_16.png)

So those are the wrong departure times, and those are crucial for the app. Also some flights are actually not showing up in the FlightXML feed.

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [April 5, 2016, 2:32pm UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253/4 "2016-04-05T14:32:54Z")

</div>

Google and FR24 are showing local time, not UTC/GMT. London is currently UTC+1. The epoch timestamp is correct:

```auto

$ TZ='Europe/London' date -d '@1459865400'
Tue Apr 5 15:10:00 BST 2016

```

---

<div class="post-metadata">

**Author:** ![WesleySoeters](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@WesleySoeters](https://discussions.flightaware.com/u/WesleySoeters)\
**Post date:** [April 7, 2016, 8:17am UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253/5 "2016-04-07T08:17:13Z")

</div>

Aaah I see, I was filtering out flights that have no Actual\_ident.  
Why are some actual\_idents missing for some flights that I query with FlightSchedule?

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [June 1, 2016, 6:24pm UTC](https://discussions.flightaware.com/t/some-flights-not-returned-wrong-data/18253/6 "2016-06-01T18:24:50Z")

</div>

Only flights that are operating as a codeshare of another will have an actual\_ident. If there is no actual\_ident, then the flight is actually just itself.
