Analytics

Get list of currently live visitors from visitor table

get/analytics/live-visitors

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/analytics/live-visitors
  • Auth: HTTP bearer

Query parameters

project_idinteger required

Project ID

environment_idinteger

Environment ID (optional)

window_minutesinteger

Time window in minutes for live visitors (default: 5)

Response

Successfully retrieved live visitors list

total_countinteger required
window_minutesinteger required

Example response

{
  "visitors": [
    {
      "first_seen": "2024-01-01T00:00:00",
      "last_seen": "2024-01-01T00:00:00"
    }
  ]
}

Changes

No recorded changes to this operation across all 50 revisions of this API.