I am trying to paginate through AirportBoards results but seem to keep getting the same flights from each request. What am I doing wrong?
First Request:
https://flightxml.flightaware.com/json/FlightXML3/AirportBoards?offset=0&airport_code=KPHX&type=arrivals&include_ex_data=False&howMany=15
Response:
“arrivals”:{“num_flights”:15,“next_offset”:15,“flights”:…
Second Request, with offset=15
https://flightxml.flightaware.com/json/FlightXML3/AirportBoards?offset=15&airport_code=KPHX&type=arrivals&include_ex_data=False&howMany=15
Response:
“arrivals”:{“num_flights”:15,“next_offset”:15,“flights”:…
The returned flights are the same in each set.
Am I misunderstanding the offset/next_offset parameters? Reading other posts it seems people are not having an issue with pagination, and I’d expect to receive a -1 as next_offset when I reach the page limit.
Thanks for the help,
Jonathan