---
title: "Get detailed active visitors"
method: GET
path: "/analytics/active-visitors"
tags: ["Analytics"]
---

# Get detailed active visitors

`GET /analytics/active-visitors`

## Request

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

## Query parameters

- `project_id` integer, required
- `environment_id` integer
- `deployment_id` integer
- `window_minutes` integer

## Response `200`

Successfully retrieved active visitors

- ActiveVisitorsResponse
  - `count` integer, required
  - `visitors` ActiveVisitor[], required
    - `current_page` string, nullable
    - `duration_seconds` integer, required
    - `event_count` integer, required
    - `is_active` boolean, required
    - `last_activity` string, required
    - `page_count` integer, required
    - `session_id` string, required
    - `session_start` string, required
    - `visitor_id` string, nullable
  - `window_minutes` integer, required

## Other responses

- `400`: Invalid parameters or project not found
- `500`: Internal server error

## Changes

- **2026-09-07** `2b95ed4ff1d2`: 1 breaking, 2 info
  - removed the required property `active_visitors` from the response with the `200` status
  - added the required property `count` to the response with the `200` status
  - added the required property `visitors` to the response with the `200` status
- **2026-09-07** `f7404eb7ac98`: 2 breaking, 1 info
  - removed the required property `count` from the response with the `200` status
  - removed the required property `visitors` from the response with the `200` status
  - added the required property `active_visitors` to the response with the `200` status
- **2026-08-14** `5b69d84f67d1`: 1 breaking, 2 info
  - removed the required property `active_visitors` from the response with the `200` status
  - added the required property `count` to the response with the `200` status
  - added the required property `visitors` to the response with the `200` status
- **2026-04-25** `774be20905f2`: 1 info
  - api operation id `get_active_visitors` removed and replaced with `get_analytics_active_visitors`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/analytics/active-visitors/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
