How it works
- Set the response mode to CSV
- The server runs the query asynchronously and writes results to S3
- You receive an S3 download URL when the export completes
- Download the CSV file for analysis, reporting, or archival
CSV exports can contain up to 500,000 rows. For larger datasets, use date range filters to split your export into smaller batches.
SDK usage
- TypeScript
- Python
- CLI
CSV file format
The exported CSV file includes:- Header row with column names matching the API field names
- UTF-8 encoding for international characters
- Standard CSV escaping (quoted fields for values containing commas or newlines)
- All available fields unless you specified
fieldsin the original query
Methods supporting CSV export
Use cases
- Data analysis: Import into pandas, Excel, or Google Sheets for in-depth analysis
- Reporting: Generate periodic reports on brand mentions, sentiment, or engagement
- Archival: Store snapshots of social media data for compliance or research
- ML training: Build training datasets for sentiment analysis, topic classification, or trend prediction
- Cross-platform comparison: Export data from multiple platforms and join in your analytics tool
Next steps
Response Modes
Compare fast, paging, and CSV modes
Best Practices
Optimize queries and exports for performance

