"Best analytics tool I've used in 14 years"

Website API

Use the Website API when you want to read analytics or send events for one website. These endpoints are usually authenticated with a df_ website API key.
A website API key is scoped to one website, so you do not need to pass websiteId for most Website API requests. This makes it a good fit for backend integrations, scripts, dashboards, and AI agents that should not manage your full DataFast account.

Get a website API key

Create website API keys in Website settings -> Developer. If you are signed in, use the website selector in this docs header to switch the link to another website.

Create a DataFast website API key

What you can do

CategoryEndpointsUse it for
AnalyticsAnalytics, Breakdowns, and Funnel analyticsQuery dashboard-style analytics
VisitorsVisitorsSearch and inspect visitor journeys
FunnelsFunnel analyticsQuery step-by-step funnel results
EventsGoals, Payments, IdentitySend server-side events and user profiles

Token choice

  • Use a df_ website API key for one website.
  • Use a dft_ account token only if you need to query multiple websites from one token. When using dft_ on Website API endpoints, pass websiteId as a query parameter.
Read authentication and scopes for the full difference.

Try it

Use the API playground to test Website API and Account API endpoints from the browser.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown