Skip to main content
Most list endpoints support cursor-based pagination for fetching large datasets efficiently.

How Cursor Pagination Works

1

Initial Request

Make your initial request without a cursor
2

Check Response

The response includes a cursor and has_more flag
3

Next Page

If has_more is true, use the cursor in your next request
4

Repeat

Continue until has_more is false

Example: Paginating TikTok Posts

Initial Request

Response

Next Page Request

Code Examples

Endpoints with Pagination

Important Notes

Cursors are opaque strings - don’t try to parse or modify them
Cursors may expire after some time. If you get an error, start from the beginning.
  • The limit parameter controls how many items per page (not total)
  • Credit costs apply to each paginated request