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

Get realtime map

GET https://datafa.st/api/v1/analytics/realtime/map

Return active visitors, recent events, recent payments, and prediction data for realtime map views.

Request

Authentication

  • df_ website API key for one website.
  • dft_ account token with analytics:read. Pass websiteId as a query parameter.

Response

Returns a JSON object with status and endpoint-specific fields.

Response fields

FieldTypeDescription
data.countnumberNumber 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.visitors[].visitorIdstringAlias for datafast_visitor_id on endpoints that accept both names.
data.visitors[].locationobjectLocation used to place the visitor on the map.
data.visitors[].location.citystringnull
data.visitors[].location.regionstringnull
data.visitors[].location.countryCodestringnull
data.visitors[].systemobjectBrowser, OS, and device values for the active visitor.
data.visitors[].system.browserstringnull
data.visitors[].system.osstringnull
data.visitors[].system.devicestringnull
data.visitors[].currentUrlstringnull
data.visitors[].profileDataobjectIdentify profile display data.
data.visitors[].conversionLikelihoodobjectnull
data.conversionMetricsobjectBaseline conversion metrics used for predictions.
data.hasConversionPredictionsbooleanWhether prediction fields are available.
data.recentEventsobject[]Recent goal/custom events shown in realtime UI.
data.recentPaymentsobject[]Recent payment events shown in realtime UI.

Errors

Common errors include 400 for invalid input, 401 for missing or invalid tokens, 403 for missing permission or suspended tracking, 404 for missing resources, and 500 for server errors.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown

Example request
curl -X GET "https://datafa.st/api/v1/analytics/realtime/map" \
  -H "Authorization: Bearer df_xxx"
Success response
{
  "status": "success",
  "data": {
    "count": 2,
    "visitors": [{
      "visitorId": "a3ab2331-989f-4cfa-91c6-2461c9e3c6bd",
      "location": {
        "city": "Paris",
        "countryCode": "FR"
      },
      "system": {
        "browser": "Chrome",
        "device": "desktop"
      },
      "currentUrl": "/pricing"
    }],
    "hasConversionPredictions": false,
    "recentEvents": [],
    "recentPayments": []
  }
}