I experience some problems when trying to receive flight status for flights in negative time zones.
For example here is a flight: carrierCode=OS, flightNumber=7910, scheduledDepartureDate=2024-08-28
(for test you can pick any future date, it's daily regular flight). It departs from Newark airport (EWR) at 23:00 (local time, EDT). However when it is 23:00 2024-08-28 in New Jersey, it is already 03:00 2024-08-29 (the "next" day) in GMT-0 time zone. As the result I can't use "On-Demand Flight Status" API to check flight status and the following error is returned:
{
"errors" : [ {
"code" : 4926,
"title" : "INVALID DATA RECEIVED",
"detail" : "Query parameter 'scheduledDepartureDate' should not be past date",
"source" : {
"parameter" : "scheduledDepartureDate",
"example" : "2020-06-10"
},
"status" : 400
} ]
}
Is this a bug, or is there a way to workaround this limitation?
Request example:
https://api.amadeus.com/v2/schedule/flights?carrierCode=OS&flightNumber=7910&scheduledDepartureDate=2024-10-20
This is an issue with their API. The official response from Amadeus support states: This seems to be a limitation, as you cannot call the API using past dates. We have raised this to our technical team, we will keep you updated.
.