Aviad Rozenhek
Aviad Rozenhek

Reputation: 2409

Amadeus flight search API returning 400 bad request when using the API explorer

I'm using the Amadeus API explorer for flight search API to test out the service. however I seem to be getting 400 bad request errors.

but I always get 400 bad request. here's a screenshot enter image description here

Upvotes: 0

Views: 573

Answers (1)

MinjiK
MinjiK

Reputation: 159

the first example that you provided, the date is in the past, please try with the future date, and it should work.

Try this : https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=SYD&destinationLocationCode=BKK&departureDate=2022-11-01&adults=1&nonStop=false&max=250

the second example, DBX is not the correct city/airport code, I believe you want Dubai DXB?

Try this: https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=TLV&destinationLocationCode=DXB&departureDate=2022-03-01&adults=2&max=250

I recommend you to try with Amadeus for developer Postman workplace, you will see the details of the error message like below.

error message from postman

Upvotes: 1

Related Questions