Docs/CLI/JSON and automation

JSON and automation

Use JSON output when you want to pipe TrackFox data into scripts, CI jobs, dashboards, or AI agents.

Export JSON

trackfox analytics --output json
trackfox top-pages --period last7d --all --output json

Commands use table output by default. Add --output json when a script needs structured data.

Use temporary credentials

TRACKFOX_WEBSITE_ID=site_123 \
TRACKFOX_API_KEY=tf_secret \
trackfox analytics --output json

Environment credentials override stored profiles and are not persisted.

Override the API host

Use TRACKFOX_API_URL when you need to send requests to another TrackFox host.

Good to know

Progress and ANSI formatting never pollute JSON stdout.

Need help? Contact us for assistance.

Suggest features? We'd love your feedback