Skip to main content

PaginatedResult

Methods that return large datasets use server-side pagination (100 items per page). These return a PaginatedResult[T] (sync) or AsyncPaginatedResult[T] (async) with built-in navigation helpers.

Exporting to CSV

Any paginated result can be exported to CSV. This triggers a server-side export and returns a download URL.

Response Types

Methods that return PaginatedResult support a response_type parameter to control how results are fetched. Import the ResponseType enum:

Fast Mode (default)

Returns results immediately without polling. This is the default behavior when response_type is not specified.
Fast mode skips async operation polling, making it significantly faster for small result sets. Use it when you need a quick preview or only need a limited number of results.

Paging Mode

Returns full paginated results (100 items per page). Use this when you need to iterate through all results.

CSV Mode

Triggers a server-side CSV export. The result contains no inline data — call export_csv() to get the download URL.

Methods Supporting Response Types

The following methods accept both response_type and limit: These methods accept limit only (no response_type):
  • twitter.search_users(), instagram.search_users(), reddit.search_users(), reddit.search_subreddits(), tiktok.search_users()
For the equivalent pagination patterns in TypeScript, see TypeScript SDK Pagination. The TypeScript SDK uses ResponseType.Fast, ResponseType.Paging, and ResponseType.Csv (PascalCase enum values) and camelCase field names.