REST API AirlineFlightSchedules endDate is invalid

Hi,

I am trying to use the RestAPI to look at “AirlineFlightSchedules” but I always get an “endDate” invalid error no matter which date I put. Is this by any chance a call that doesn’t work with the RestAPI?

One example would be this:

http://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules?startDate=1557270000&endDate=1558998000&origin=EHAM

Many thanks in advance,

Pau

That URL you supplied is working fine for me without any changes:

{"AirlineFlightSchedulesResult":{"next_offset":15,"data":[{"ident":"CAL9499","actual_ident":"KLM1669","departuretime":1557303600,"arrivaltime":1557311700,"origin":"EHAM","destination":"LEBL","aircrafttype":"B738","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":36,"seats_cabin_coach":150},{"ident":"CXA9645","actual_ident":"KLM1345","departuretime":1557311400,"arrivaltime":1557315300,"origin":"EHAM","destination":"EKBI","aircrafttype":"B737","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":36,"seats_cabin_coach":106},{"ident":"AAL6749","actual_ident":"BAW439","departuretime":1557324300,"arrivaltime":1557329100,"origin":"EHAM","destination":"EGLL","aircrafttype":"A319","meal_service":"Business: Meal / Economy: Food for sale, Meal","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":107},{"ident":"CXA9643","actual_ident":"KLM1343","departuretime":1557303300,"arrivaltime":1557307200,"origin":"EHAM","destination":"EKBI","aircrafttype":"E190","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":36,"seats_cabin_coach":64},{"ident":"JAL7104","actual_ident":"BAW423","departuretime":1557294300,"arrivaltime":1557299400,"origin":"EHAM","destination":"EGLL","aircrafttype":"","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":144},{"ident":"JAL7100","actual_ident":"BAW429","departuretime":1557302700,"arrivaltime":1557307800,"origin":"EHAM","destination":"EGLL","aircrafttype":"","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":144},{"ident":"CXA9649","actual_ident":"KLM1341","departuretime":1557296700,"arrivaltime":1557300600,"origin":"EHAM","destination":"EKBI","aircrafttype":"E190","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":36,"seats_cabin_coach":64},{"ident":"KLM1089","actual_ident":"KLC1089","departuretime":1557309600,"arrivaltime":1557315300,"origin":"EHAM","destination":"ESMX","aircrafttype":"E75L","meal_service":"Business: Meal / Economy: Snack or brunch, Meal","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":64},{"ident":"AFR8396","actual_ident":"KLC1089","departuretime":1557309600,"arrivaltime":1557315300,"origin":"EHAM","destination":"ESMX","aircrafttype":"E75L","meal_service":"Business: Meal / Economy: Snack or brunch","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":64},{"ident":"DAL9265","actual_ident":"KLC1089","departuretime":1557309600,"arrivaltime":1557315300,"origin":"EHAM","destination":"ESMX","aircrafttype":"E75L","meal_service":"Business: Lunch / Economy: Snack or brunch","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":64},{"ident":"KLM3812","actual_ident":"JAI235","departuretime":1557305400,"arrivaltime":1557341100,"origin":"EHAM","destination":"VOBL","aircrafttype":"A333","meal_service":"Business: Refreshments, Lunch / Economy: Refreshments, Lunch","seats_cabin_first":0,"seats_cabin_business":30,"seats_cabin_coach":262},{"ident":"JAL7102","actual_ident":"BAW439","departuretime":1557324300,"arrivaltime":1557329100,"origin":"EHAM","destination":"EGLL","aircrafttype":"A319","meal_service":"Business: No meal / Economy: No meal","seats_cabin_first":0,"seats_cabin_business":24,"seats_cabin_coach":107},{"ident":"AFR1031","actual_ident":"HOP1031","departuretime":1557326400,"arrivaltime":1557331500,"origin":"EHAM","destination":"LFRN","aircrafttype":"CRJ7","meal_service":"Economy: No meal","seats_cabin_first":0,"seats_cabin_business":0,"seats_cabin_coach":72},{"ident":"VIR6997","actual_ident":"VS11019","departuretime":1557319200,"arrivaltime":1557324000,"origin":"EHAM","destination":"EGLL","aircrafttype":"E190","meal_service":"Business: Meal / Economy: Snack or brunch","seats_cabin_first":0,"seats_cabin_business":36,"seats_cabin_coach":64},{"ident":"KLM2031","actual_ident":"HOP1031","departuretime":1557326400,"arrivaltime":1557331500,"origin":"EHAM","destination":"LFRN","aircrafttype":"CRJ7","meal_service":"Economy: No meal","seats_cabin_first":0,"seats_cabin_business":0,"seats_cabin_coach":72}]}}

Thanks,

For some reason through the browser it does work fine the URL, but through the software I use to download (Alteryx) it gives the same error for the “endDate”, whilst any other call we have works fine.

Rgds,

Pau

If that is the case, then there must be something wrong with how Alteryx is sending the URL or perhaps not transmitting the endDate argument properly. Check that it is not changing the spelling/case of that argument unintentionally, since FlightXML is case-sensitive for the argument names.