{'items': [...], 'next': url_or_null}. Write fetch_all(first_url) looping: GET the current URL, extend a results list with items, follow next until it is null — the cursor-pagination pattern behind every 'list all' SDK helper. Guard with a sane page cap (say 1000) against infinite loops.fetch_all(url) # 3 pages of 2 items
list of all 6 items
Pages are concatenated until next is null.
while url and pages < 1000:.
data.get('next') drives the loop.