Insights
Query analytics data including metrics, pages, referrers, devices, and geo breakdowns.
Authentication
Requires a read or root client — the default write client does not have access. See the Authentication guide.
Base URL
https://api.actuallytracking.com/insights/{projectId}Available endpoints
| Endpoint | Description |
|---|---|
GET /metrics | Visitors, sessions, bounce rate, and engagement |
GET /live | Current active visitor count |
GET /live/map | The realtime map: who is on the site now, where they are, and what they just did |
GET /funnels/{funnelId} | Run a saved funnel |
GET /bots | AI crawlers and bots: visits by group, verified and spoofed, pages AI crawlers read |
GET /pages | Top pages by sessions |
GET /referrer | Traffic sources |
GET /country, /region, /city | Geographic breakdown |
GET /device, /browser, /os | Device and technology breakdown |
GET /utm_source, /utm_campaign, … | UTM parameter breakdown |
Most endpoints accept startDate, endDate, range, filters, cursor, and limit query parameters.
For full schemas and all available endpoints, see the API Reference.
Realtime map
GET /insights/{projectId}/live/map answers with what the dashboard's realtime map shows, for the last 30 minutes:
| Field | What it is |
|---|---|
activeVisitors | Visitors active right now, the same count as /live |
locations[] | Map points: country, city, lat, long and how many sessions are there |
visitors[] | One row per session, most recently active first (up to 100): sessionId, profileId, profile (name, email and avatar once you identify them, else null), firstSeenAt, lastSeenAt, currentUrl (their latest page), referrer, referrerName, location, system (browser, os, device), pageviews and revenueCents |
recentEvents[] | The latest 30 events other than pageviews: name, sessionId, url, country, revenueCents, properties |
recentPayments[] | The latest 30 events that carried revenue, refunds included |
curl https://api.actuallytracking.com/insights/YOUR_PROJECT_ID/live/map \
-H "actuallytracking-client-id: YOUR_CLIENT_ID" \
-H "actuallytracking-client-secret: YOUR_CLIENT_SECRET"The same answer is the get_realtime tool in MCP, and actually-tracking live in the CLI.