Get realtime map
GET https://datafa.st/api/v1/analytics/realtime/mapReturn active visitors with location and device data, plus recent goal events and payments for the realtime map. Each visitor may include conversion prediction scores when enough revenue attribution data exists.
Active visitors are those with pageview activity in the last 10 minutes. Customers receive a prediction score of 100.
Request
Query parameters
websiteIdstring
Required with a
dft_ account token on Website API routes. Omit with a df_ website key. Example: ?websiteId=665f0b3c4d2e1a0012345678.Response
Returns a JSON object with
status: "success" and endpoint-specific fields in data (and pagination when the endpoint is paginated).Response fields
data.countnumber
Number of currently active visitors in the realtime window.
data.visitorsobject[]
Number of unique visitors represented by this row or time bucket. Use it to compare traffic volume across dates, pages, sources, countries, devices, or campaigns. Active visitor records used to draw the realtime map/list.
data.conversionMetricsobject (optional)
Baseline conversion metrics used for predictions. Present only when predictions are available.
data.hasConversionPredictionsboolean
Whether prediction fields are available.
data.recentEventsobject[]
Recent goal/custom events shown in realtime UI.
data.recentPaymentsobject[]
Recent payment events shown in realtime UI.
Authentication
df_website API key: The website is inferred from the key. You do not need awebsiteIdquery parameter.dft_account token: Requiresanalytics:readpermission and?websiteId=on every request. The token must be allowed to access that website.
Read authentication and scopes for token creation, permission lists, and scoped tokens.
Errors
404 — Website not found.
See API errors for the standard error envelope, auth failures, validation errors, permission errors, and rate limits.