PaginatedResult
Methods that return large datasets use server-side pagination (100 items per page). These return aPaginatedResult<T> with built-in navigation helpers.
Navigating Pages
Exporting to CSV
Any paginated result can be exported to CSV. This triggers a server-side export and returns a download URL:Response Types
Search and query methods support aresponseType option that controls how results are returned. Import the ResponseType enum:
| Mode | Enum Value | Behavior | Best For |
|---|---|---|---|
| Fast | ResponseType.Fast | Returns up to 300 results immediately, no async polling | Quick queries, UI previews |
| Paging | ResponseType.Paging | Async paginated query with full dataset access | Full analysis, large datasets |
| CSV | ResponseType.Csv | Async bulk export, returns download URL via exportCsv() | Data exports |
Fast Mode (default)
Returns results immediately without polling. Uselimit to constrain the number of results (max 300):
Paging Mode
Returns paginated results with fulltotalRows, totalPages, and navigation helpers:
CSV Mode
Initiates an async export. CallexportCsv() on the result to poll the export operation and get a download URL:
Methods Supporting Response Types
The following methods accept bothresponseType and limit:
twitter.getPostsByAuthor(),twitter.searchPosts(),twitter.getUsersByKeywords()instagram.getPostsByUser(),instagram.searchPosts(),instagram.getUsersByKeywords()reddit.searchPosts()tiktok.getPostsByUser(),tiktok.searchPosts(),tiktok.getUsersByKeywords(),tiktok.getPostsByHashtags(),tiktok.getUsersByHashtags()
limit only (no responseType):
twitter.searchUsers(),instagram.searchUsers(),reddit.searchUsers(),reddit.searchSubreddits(),tiktok.searchUsers()
For the equivalent pagination patterns in Python, see Python SDK Pagination. The Python SDK uses
ResponseType.FAST, ResponseType.PAGING, and ResponseType.CSV (uppercase enum values) and snake_case field names.
