Analytics

Get list of currently live visitors from visitor table

Changed on
get/analytics/live-visitors

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • 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

    • breaking

      the response property visitors/items/environment_id became nullable for the status

    • breaking

      the response property visitors/items/environment_id became optional for the status

    • info

      added the optional property visitors/items/current_page to the response with the status

    3 more changes in this revision