HitKeep gives teams an open export path for analytics data. You can export site data, filtered hit data, Web Vitals samples, AI fetch records, AI chatbot events, saved Opportunities, and personal account data in formats that work with DuckDB, spreadsheets, scripts, and warehouses.
To inspect the format before you choose a plan, query a fictional site export. For your own site, request the export while signed in with permission to access that site.
Export paths
Export paths| Export path | What it is for | Formats | Auth surface |
|---|---|---|---|
| Site takeout | Full site data package for portability or audit review | xlsx, csv, parquet, json, ndjson |
Dashboard session |
| Filtered hits export | Raw hit export for a selected date range or filter | csv, xlsx, parquet, json, ndjson |
Dashboard session, bearer token, or API key |
| AI fetch export | Server-side AI crawler records for a site and date range | csv, xlsx, parquet, json, ndjson |
Dashboard session, bearer token, or API key |
| AI chatbot export | On-site assistant instrumentation events | csv, xlsx, parquet, json, ndjson |
Dashboard session, bearer token, or API key |
| User takeout | Personal account data for GDPR portability | xlsx, csv, parquet, json, ndjson |
Dashboard session |
Takeout endpoints default to xlsx. Hits exports default to csv. Set format=parquet, format=json, or format=ndjson when the export is headed to a data pipeline.
Hit rows in site takeout and filtered hit exports include the derived IP metadata columns HitKeep stores for analytics: region, city, provider, ASN, and ASN organization. HitKeep does not export raw visitor IP addresses.
Hit rows include visible_ms, the greatest received cumulative visible time in milliseconds for that pageview. A missing value indicates that the view supplied no sample. A measured zero is exported as 0.
Site takeout includes Web Vitals rows as record_type = web_vital when samples exist. Those rows contain metric name, value, server-derived rating, normalized path, navigation type, timestamp, tracker source, and tracker version.
Site takeout also includes saved Opportunities and safe AI run metadata when those records exist. Exported Opportunities keep localization keys, interpolation params, cited evidence IDs, detector metadata, status, and the final customer-visible output boundary. Takeout excludes provider secrets, raw prompts, raw provider responses, raw external error bodies, and unrestricted AI tool payloads.
For the generation model and API field contract, see Opportunity Recommendations.
If a colleague only needs the current visitor count or a weekly breakdown by page, give their assistant read-only MCP access to the selected site. Use takeout when you actually need a portable copy of the data.
Site takeout
Site takeoutExport a complete site package from the generated API reference:
The endpoint is session-authenticated. It is meant for signed-in operators who can access the site in the dashboard.
For warehouse work, request Parquet explicitly:
/api/sites/{site_id}/takeout?format=parquetFor spreadsheet review, use the default xlsx output:
/api/sites/{site_id}/takeoutFiltered raw hit exports
Filtered raw hit exportsWhen you only need a slice of traffic, use the hit export endpoint instead of a full takeout:
This endpoint accepts date range and filter parameters from the API reference. It is the better fit for recurring jobs that extract one campaign, one hostname, one referrer, or one investigation window.
Example export targets:
/api/sites/{site_id}/hits/export?from=2026-04-01T00:00:00Z&to=2026-04-30T23:59:59Z&format=csv/api/sites/{site_id}/hits/export?filter=utm_source:newsletter&format=parquetUse a scoped API client for scheduled scripts so access can be revoked without changing a user password.
Supported Formats
Supported Formats| Format | Best for |
|---|---|
parquet |
DuckDB, Apache Spark, Pandas, warehouse import, long-term analytical storage |
csv |
Simple tabular imports and scripts that expect text files |
json |
Programmatic processing where nested fields are easier to preserve |
ndjson |
Streaming pipelines and line-oriented processing |
xlsx |
Manual review in spreadsheet apps and user-facing takeout packages |
Retention archives and backup snapshots also use open files. See Data Retention and Archiving for Parquet archives and Backups and Restore for full database snapshots.
For current runtime, storage, export, and non-replacement facts, see Facts and Limits.
Query a Parquet export
Query a Parquet exportDownload the fictional site’s Parquet export. A local HitKeep 2.18.3 instance recorded five test pageviews on November 27, 2026. The file contains only synthetic data. Open it in DuckDB and count pageviews for the complete UTC day.
SELECT path, count(*) AS pageviews, count(DISTINCT session_id) AS sessionsFROM read_parquet('synthetic-site.parquet')WHERE record_type = 'hit' AND timestamp >= TIMESTAMPTZ '2026-11-27 00:00:00+00' AND timestamp < TIMESTAMPTZ '2026-11-28 00:00:00+00'GROUP BY pathORDER BY path;| Path | Pageviews | Sessions on the path |
|---|---|---|
| /control | 1 | 1 |
| /launch | 4 | 3 |
On your own site, choose a completed day in the dashboard and apply the same time zone and path filter to the export. Compare Pageviews with the count of native hit rows. If your dashboard includes imported daily traffic, reconcile the imported aggregates separately. Other record types, such as events, goals and annotations, describe different activity.
This sample is a site export. To restore a self-hosted instance, back up the shared database, every tenant database and any applicable archives. Backup and restore guide
Export AI visibility data
Export AI visibility dataHitKeep’s AI reports are exportable through dedicated endpoints:
Use these when you want server-side AI crawler analytics or assistant instrumentation outside the dashboard. For setup and interpretation, see AI Visibility Analytics and AI Chatbot Analytics.
Export Web Vitals
Export Web VitalsWeb Vitals are included in full site and user takeout as record_type = web_vital. Use those rows when you need to audit p75 changes outside HitKeep, join performance evidence to deployment windows, or preserve a vendor-neutral archive of opt-in performance samples.
For dashboard reporting and aggregate API access, see Web Vitals Analytics.
Export annotations
Export annotationsFrom HitKeep 2.14.0, chart annotations are part of full site and user takeout as record_type = annotation. Each row carries the note id, site_id, starts_at, the optional ends_at of a date range, the note body, and created_at. Takeout leaves out the author, matching the REST API and MCP.
Keep these rows with your traffic export: they record the releases, campaigns, and outages that explain the numbers, and they survive a move to another tool.
Export Opportunities
Export OpportunitiesOpportunities are part of the full site takeout. They are recommendation records, not raw prompt transcripts.
Included fields are safe for customer review:
- translation keys such as
title_key,summary_key, andaction_key copy_paramsand route params used by localized dashboard copy- cited evidence IDs and evidence labels/values
- detector version, impact, confidence, score, and status
- safe AI run metadata such as provider label, model label, template version, hashes, token counts, status, and error category
Excluded fields stay unavailable because they can contain secrets, prompt internals, provider payloads, or visitor-level data.
User takeout and GDPR portability
User takeout and GDPR portabilityUsers can export their own account data through the user takeout endpoint:
This supports GDPR Article 20 data portability workflows. For compliance context, see GDPR for HitKeep.
Migration workflow
Migration workflowA practical vendor-exit workflow looks like this:
- Export the site via the site takeout endpoint.
- Export high-volume hit slices through the filtered hits export endpoint if you need smaller files.
- Query a Parquet sample with DuckDB to verify date ranges and field coverage.
- Import the resulting Parquet, CSV, JSON, or NDJSON files into your warehouse or next analytics stack.
If you are replacing Google Analytics, pair this page with the self-hosted GA4 alternative guide and the Google Analytics comparison.
Self-hosted or managed
Self-hosted or managedSelf-hosted HitKeep keeps exports inside infrastructure you control. Configure paths and storage targets in the Configuration Reference, then decide whether exports stay on local disk or move to S3-compatible storage through S3 Backups.
Use HitKeep Cloud when you want managed hosting, updates, and encrypted backups while still keeping self-service export paths available.