using the Java SDK, what is the maximum of results when performing a Flight Offer Search? When looping through the returned array, it seems that the length is always 5, and it seems like there is no pagination (trying to go to the next page gives me a NullPointerException).
Also, is there a way to find out what parameters Flight Offer Search has? I tried searching the documentation and the Amadeus jar, but was not able to find anything. Specifically, I am looking for the ability to search for specific routings and choosing specific airlines, if the Self-Service APIs offer this functionality.
Thank you in advance for the help.
The Java SDK is a wrapper on top of the API, you can find the API documentation here. In the documentation, you will find parameters to filter by airlines (includedAirlineCodes or excludedAirlineCodes). Many other parameters are available. The API offers 2 flavors:
GET
version, simpler to integrate but comes with fewer parametersPOST
version, which is a search as well but offering more functionalities to customize your search (you can use the body of the POST to define precisely your criteria)Both endpoints come with many parameters to customize your request.
Flight Offers Search returns a maximum of 250 flights. You can get less than this when you use the test environment as we expose only a subset of our data. To unlock the full access you will need to "move your application to production" (you can take a look at our Get Started to see how to do it). Make sure you do not use the parameter max
that limits the number of flight-offers returned.