Skip to main content
Paginated methods in the Python XDK return a lazy iterator that follows meta.next_token automatically across pages.

Automatic pagination

The iterator stops automatically when meta.next_token is absent.

Manual pagination

To control each request yourself, pull a single page with next(...) and pass pagination_token on the next call:
See the Python samples repo for more examples.