Regrading Multiple flights Showing under same parameters

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 :-1:
{
“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.

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.

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 ?

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
}]
}
}

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.

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

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.

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.

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.

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

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

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, 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 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.