Endpoints
Export Analytics Data
Export analytics data in various formats (Excel, CSV, or JSON)
POST
Export analytics data for questions, out-of-context queries, and referenced sources. The data can be exported in different formats and filtered based on various criteria.
Request Body
Format of the export file. Possible values: xlsx
, csv
, json
xlsx
: Microsoft Excel formatcsv
: Compressed ZIP containing CSV filesjson
: JSON format
Time period for the analytics data. Possible values:
today
: Current dayyesterday
: Previous day7d
: Last 7 days30d
: Last 30 days3m
: Last 3 months6m
: Last 6 months12m
: Last 12 months
Filters for different types of data
Response
The response will be a file download with the appropriate content type header based on the export_type:
- XLSX:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- CSV:
application/zip
- JSON:
application/json