The Leen API supports cursor-based pagination to help you efficiently navigate through large datasets. Follow these steps to implement pagination using our API.
next_cursor
: The cursor for the next page.previous_cursor
: The cursor for the previous page.cursor
query parameter:
next_cursor
from the response.previous_cursor
from the response.updatedSince
filter in your first request, do not include the updatedSince
query parameter in subsequent requests that use a cursor
query parameter. Combining these parameters will cause the API to return a 422 error.next_cursor
is null
, you’ve reached the end of the dataset.previous_cursor
is null
, you’re at the beginning of the dataset.limit
parameter is unchanged and can still be used with cursor pagination to control the page size.