Learn how to paginate bulk data requests to the Opal API.

Overview

All bulk data lists that you can interact with via the Opal API support pagination via the next and previous cursors attached to API responses and the page_size query parameter.

Query Parameters

  • cursor: Denotes the starting position in the data list from where a paginated API endpoint should return bulk data. Get this value from the next or previous property of any previous paginated response.
  • page_size: Limit on number of objects to return per request.

Getting the Cursor

  • In the response payload of an API request to a paginated endpoint, you can find next and previous cursors.

These cursors can be attached to future requests to paginated API endpoints to query the next (or previous) page of results.