Skip to content
Start in Cloud

Export site hits

GET
/api/sites/{id}/hits/export
curl --request GET \
--url 'https://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/hits/export?format=xlsx' \
--cookie hk_token=<hk_token>

Exports filtered site hits in csv/xlsx/parquet/json/ndjson.

id
required
string format: uuid
from
string format: date-time
to
string format: date-time
q
string
filter
string

Filter in form type:value (repeatable). Supported types: path, hostname, referrer, referrer_host, device, country, browser, language, utm_campaign, utm_content, utm_medium, utm_source, utm_term.

filter_type
string
filter_value
string
format
string
Allowed values: xlsx csv parquet json ndjson

Export format. Supported values: xlsx, csv, parquet, json, ndjson. Defaults: xlsx for takeout endpoints, csv for hits export endpoints.

Export file stream