Back to API ListThis API initiates the export of answer insights data to a file in JSON format. You can apply filters to export specific results.
This API can export analytics data for up to one week at most. To download data for a longer period, invoke the API multiple times. For example, to get data for an entire month, call the API four times — once per week.
The API returns a job ID (_id) with job type DATA_EXPORT. The fileInfo object indicates the file type being generated. Use the job ID with the Jobs API to retrieve the file.
Refer to the fileInfo field for the exported file details. Download the file from fileUrl. The file includes search query details, generated answers, and debug information such as relevant chunks, LLM request, and response parameters.
For small datasets (fewer than 150 records), data is exported as a single file. For larger datasets, data is split into fragments of 150 records each, available as separate files.
When exporting large datasets, the data is split into multiple fragments (default: 150 records per file). The Jobs API response includes the following additional fields for managing fragments:
Field
Type
Description
hasAnalyticsFragments
Boolean
true for multi-file exports, false for single-file exports.
analyticsFragments
Array
Metadata about all export fragments. Present for both single and multi-file exports.
store
Object
Meta info including totalRecords and totalFiles.
percentageDone
Number
Percentage-based progress for the analytics export.