Pagination
Traverse a collection with offsets and recover a long-running import after an interruption.
Follow the next offset
List endpoints return a data array and a meta object with limit, offset, has_more and next_offset. Start with the filters for the collection you need. To read the following page, send the same filters with offset set to the previous response's next_offset. A page holds up to 250 records and defaults to 50. List events
When next_offset is null, the traversal is complete. An empty collection is a valid result.
Save progress after each page
Write the page's items to your database before advancing your checkpoint. Save the filters alongside the offset so a resumed job reads the same collection. Upsert items by their stable IDs to make a repeated page safe.
Account for a moving collection
Offsets count positions in the current result. A record added to an earlier position while you page can shift later rows by one, so a row can appear on two pages or between them. Upserting by ID absorbs the repeat. For a collection that is still changing, such as today's schedule, finish the traversal and then request the first page again to pick up new rows. A change of competition, season, or date changes the collection, so begin again at offset 0 with the new filters. Backfill a season