FlightAware Discussions

Search Flight Based on airline & Flight no with future date

#1

I have searched a flight in Flightbooking site, I have found that there have a flight from Delhi to Los Angeles International.

So, I try to search this flight in FlightAware using below Query to flightaware:

URL:
https://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules

With Param:
startDate:1556064000
airline:EY
flightno:209
howMany:5

Response: {“error”:“startDate is invalid”}

Notes:

  • Flight is connected flight with one stop
  • I have entered Flight number first flight
  • I have converted “Wednesday, April 24, 2019 12:00:00 AM GMT” to UNIX epoch time. while Flight is at Wednesday, April 24, 2019 17:20:00(05:00:00 PM) GMT. We are collecting date of flight only, So we are not aware about time of flight. so, converted date with midnight time.

First issues is that:

  • So what’s wrong with Startdate time?
0 Likes

#2

Can you please double check how you are setting the parameters in your request? It looks like the endpoints are being called with no parameters. This means the error response is due to the startDate being empty. Additionally, an endDate value is required in AirlineFlightSchedules.

The full request URI should look similar to:
https://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules?startDate=1556064000&endDate=1556150400&airline=EY&flightno=209&howMany=5

0 Likes