Skip to main content
POST
Export Analytics Data
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.

Headers

string
required
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.

Request Body

string
default:"xlsx"
required
Format of the export file. Possible values: xlsx, csv, json
  • xlsx: Microsoft Excel format
  • csv: Compressed ZIP containing CSV files
  • json: JSON format
string
default:"today"
Time period for the analytics data. Possible values:
  • today: Current day
  • yesterday: Previous day
  • 7d: Last 7 days
  • 30d: Last 30 days
  • 3m: Last 3 months
  • 6m: Last 6 months
  • 12m: Last 12 months
object
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