Export AI fetch records
GET
/api/sites/{id}/ai-fetch/export
const url = 'https://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ai-fetch/export?format=xlsx&resource_type=html';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ai-fetch/export?format=xlsx&resource_type=html' \ --cookie hk_token=<hk_token>Exports AI fetch records for the selected site and date range in csv/xlsx/parquet/json/ndjson. Optional assistant and resource filters restrict the export to a subset of crawler traffic.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Query Parameters
Section titled “Query Parameters ” from
string format: date-time
to
string format: date-time
format
string
Export format. Supported values: xlsx, csv, parquet, json, ndjson. Defaults: xlsx for takeout endpoints, csv for hits export endpoints.
assistant_name
string
Optional AI assistant bot name filter.
assistant_family
string
Optional AI assistant family filter.
resource_type
string
Optional AI fetch resource type filter.
path
string
Optional exact fetched path filter.
Responses
Section titled “ Responses ”Export file stream