# Regrading Multiple flights Showing under same parameters

**URL:** https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190
**Category:** AeroAPI
**Created:** [September 11, 2018, 5:16pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190 "2018-09-11T17:16:07Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 11, 2018, 5:16pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/1 "2018-09-11T17:16:07Z")

</div>

I am using below mention parameters to get details of flight but more then one flights are showing so we need one flight info which is accurate

I am using **AirlineFlightSchedules** API

Parameters :-

```
'startDate' => '1536362160',
'endDate' =>'1536391500',
'airline' => 'UA',
'flightno' => '1882'

```

Flights Details 👎  
{  
“AirlineFlightSchedulesResult”: {  
“next\_offset”: -1,  
“data”: [{  
“ident”: “ANZ9518”,  
“actual\_ident”: “UAL1882”,  
“departuretime”: 1536387360,  
“arrivaltime”: 1536405900,  
“origin”: “KLAX”,  
“destination”: “KEWR”,  
“aircrafttype”: “B752”,  
“meal\_service”: “Business: Snack or brunch / Economy: Snack or brunch”,  
“seats\_cabin\_first”: 0,  
“seats\_cabin\_business”: 28,  
“seats\_cabin\_coach”: 114  
}, {  
“ident”: “UAL1882”,  
“actual\_ident”: “”,  
“departuretime”: 1536387360,  
“arrivaltime”: 1536405900,  
“origin”: “KLAX”,  
“destination”: “KEWR”,  
“aircrafttype”: “B752”,  
“meal\_service”: “Business: Snack or brunch / Economy: Food for sale”,  
“seats\_cabin\_first”: 0,  
“seats\_cabin\_business”: 28,  
“seats\_cabin\_coach”: 114  
}]  
}  
}

How can i get correct details

is any one know about.

---

<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: [September 11, 2018, 5:56pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/2 "2018-09-11T17:56:26Z")

</div>

One flight is a “code share” of the other. In this case, UAL1882 is the actual flight and the ANZ9518 is the codeshare of it. You can look at the “actual\_ident” field to determine the relationship between the two.

---

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 12, 2018, 9:33am UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/3 "2018-09-12T09:33:48Z")

</div>

Actually i need to save correct flight information in our local database based on the mention 4 parameters so how can i get any solution ?

---

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 12, 2018, 12:45pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/4 "2018-09-12T12:45:38Z")

</div>

Also I have searched one more flight from Los Angeles to New York date 7th Sept 18 based one the start date time ,end date time ,airline and flight No now i am getting 4 flights data for same date ,time,airline and flight no.

we need one flight information to save in our local database so how confirm which flight is we should save.

{  
“AirlineFlightSchedulesResult”: {  
“next\_offset”: -1,  
“data”: [{  
“ident”: “DAL1594”,  
“actual\_ident”: “”,  
“departuretime”: 1536361800,  
“arrivaltime”: 1536381540,  
“origin”: “KLAX”,  
“destination”: “KJFK”,  
“aircrafttype”: “B752”,  
“meal\_service”: “Business: Dinner / Economy: Dinner”,  
“seats\_cabin\_first”: 0,  
“seats\_cabin\_business”: 16,  
“seats\_cabin\_coach”: 152  
}, {  
“ident”: “VIR2906”,  
“actual\_ident”: “DAL1594”,  
“departuretime”: 1536361800,  
“arrivaltime”: 1536381540,  
“origin”: “KLAX”,  
“destination”: “KJFK”,  
“aircrafttype”: “B752”,  
“meal\_service”: “Business: Dinner / Economy: Dinner”,  
“seats\_cabin\_first”: 0,  
“seats\_cabin\_business”: 16,  
“seats\_cabin\_coach”: 152  
}, {  
“ident”: “AMX3297”,  
“actual\_ident”: “DAL1594”,  
“departuretime”: 1536361800,  
“arrivaltime”: 1536381540,  
“origin”: “KLAX”,  
“destination”: “KJFK”,  
“aircrafttype”: “B752”,  
“meal\_service”: “”,  
“seats\_cabin\_first”: 0,  
“seats\_cabin\_business”: 16,  
“seats\_cabin\_coach”: 152  
}, {  
“ident”: “VOZ6431”,  
“actual\_ident”: “DAL1594”,  
“departuretime”: 1536361800,  
“arrivaltime”: 1536381540,  
“origin”: “KLAX”,  
“destination”: “KJFK”,  
“aircrafttype”: “B752”,  
“meal\_service”: “Business: Dinner / Economy: Dinner”,  
“seats\_cabin\_first”: 0,  
“seats\_cabin\_business”: 16,  
“seats\_cabin\_coach”: 152  
}]  
}  
}

---

<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: [September 12, 2018, 5:09pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/5 "2018-09-12T17:09:38Z")

</div>

As I indicated in my previous reply, those are code share flights that are legitimately sold and ticketed by their partner airlines. You must modify your application to ignore flights with a non-blank “actual\_ident” field if you do not wish to import codeshare flights.

Another option is to use the enhanced AirlineFlightSchedules function in FlightXML v3 beta, which adds an “exclude\_codeshare” argument.

> **[AeroAPI ✈ Version 3.0 - Flight Status API / Flight Tracking API / FlightAware...](https://flightaware.com/commercial/aeroapi/v3/apiref.rvt)**
>
> Best Flight Tracker: Live Tracking Maps, Flight Status, and Airport Delays for airline flights, private/GA flights, and airports.

---

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 24, 2018, 12:40pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/6 "2018-09-24T12:40:35Z")

</div>

Hi,

I want to get information regarding flight **Los Angeles to Chicago date Tue, 25 Sep 18** with mention parameter

start date time : 2018-09-25 18:15  
end date time : 2018-09-26 00:18

```
 'startDate' => '1537879500',
 'endDate' =>'1537901280',
 'airline' => 'AAL',
 'flightno' => '2776'

```

i am using “AirlineFlightSchedules” API to get flight information but its not showing any data

The result is showing below -

{  
“AirlineFlightSchedulesResult”: {  
“next\_offset”: -1,  
“data”: [{

}]  
}  
}

please help us to regarding this

---

<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: [September 24, 2018, 3:20pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/7 "2018-09-24T15:20:10Z")

</div>

It looks like the selected range or time zone conversion used is is incorrect and FlightXML correctly returns no matching flights. AAL 2776 has a daily scheduled departure on or around 01:15 UTC, your searched time range spans scheduled departures from 2018-09-25 12:45 to 2018-09-25 18:48 UTC.

---

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 24, 2018, 3:39pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/8 "2018-09-24T15:39:29Z")

</div>

We changed the parameters value as you said

> ‘startDate’ =\> ‘1537856100’,  
> ‘endDate’ =\>‘1537921080’,  
> ‘airline’ =\> ‘AAL’,  
> ‘flightno’ =\> ‘2776’

but the response is same, can you convert the time if its wrong so we can take idea from that.’

Atlast, I tried with some of other flight numbers Its working fine for me but some are missing.

---

<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: [September 24, 2018, 4:29pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/9 "2018-09-24T16:29:05Z")

</div>

Your end time is an hour short at 2018-09-26 00:18 UTC. Using a time that is comfortably past the anticipated schedule, like 1537925700 (2018-09-26 01:35), will result in the flight appearing.

---

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 24, 2018, 4:47pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/10 "2018-09-24T16:47:53Z")

</div>

I am confused how you decided the end date will be (2018-09-26 01:35) even you can see the screenshot I have

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/2/9/294202e39b55dccd591e42d3792ff5bbba12440f.png)

---

<div class="post-metadata">

### Author: ![JBernard1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jbernard1/32/22754_2.png) [@JBernard1](https://discussions.flightaware.com/u/JBernard1)
#### Post date: [September 24, 2018, 5:02pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/11 "2018-09-24T17:02:58Z")

</div>

It would be great if you can help us calculating the time and time zone.

---

<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: [September 24, 2018, 6:13pm UTC](https://discussions.flightaware.com/t/regrading-multiple-flights-showing-under-same-parameters/40190/12 "2018-09-24T18:13:23Z")

</div>

Normally ticket lookup and purchasing systems will display times relative to their location. From your screenshot the following schedule times are visible:  
Depart: 2018-09-25 18:15 PDT (UTC -7)  
Arrive: 2018-09-26 00:18 CDT (UTC - 5)

Converted to GMT/UTC they will look like the following:  
Depart: 2018-09-26 01:15  
Arrive: 2018-09-26 05:18

FlightXML accepts and displays times in [Unix epoch format](https://en.wikipedia.org/wiki/Unix_time), which is always stated in UTC. One last conversion yields the following:  
Depart: 1537924500  
Arrive: 1537939080

However, when searching in schedules only the departure time is used in the search. Taking the scheduled departure time by ± 10 minutes as the start and end dates when looking for a single flight in the schedule can help make sure you get the desired flight while also trying to make sure than a last minute schedule changes doesn’t affect flight visibility.

Tools like the [timeanddate.com Time Zone Converter](https://www.timeanddate.com/worldclock/converter.html?iso=20180926T011500&p1=137&p2=64&p3=1440) can help when visually comparing times. When building an application many languages include built in time-date tools so that you do not need to create your own conversion system.
