---
title: "Get list of currently live visitors from visitor table"
method: GET
path: "/analytics/live-visitors"
tags: ["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_id` integer, required
- `environment_id` integer
- `window_minutes` integer

## Response `200`

Successfully retrieved live visitors list

- LiveVisitorsListResponse
  - `total_count` integer, required
  - `visitors` LiveVisitorInfo[], required
    - `city` string, nullable
    - `country` string, nullable
    - `country_code` string, nullable
    - `crawler_name` string, nullable
    - `current_page` string, nullable: Most recent page path visited by this visitor
    - `custom_data` unknown
    - `environment_id` integer, nullable
    - `first_channel` string, nullable: Marketing channel from the first visit (e.g. "Organic Search", "Direct")
    - `first_referrer` string, nullable: Full referrer URL from the visitor's first session
    - `first_referrer_hostname` string, nullable: Hostname extracted from first_referrer
    - `first_seen` string, date-time, required
    - `id` integer, required
    - `ip_address` string, nullable
    - `ip_address_id` integer, nullable
    - `is_crawler` boolean, required
    - `is_eu` boolean, nullable
    - `last_seen` string, date-time, required
    - `latitude` number, double, nullable
    - `longitude` number, double, nullable
    - `project_id` integer, required
    - `region` string, nullable
    - `timezone` string, nullable
    - `user_agent` string, nullable
    - `visitor_id` string, required
  - `window_minutes` integer, required

## Other responses

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

## Changes

- **2026-11-25** `cd7fa5283777`: 2 breaking
  - the response property `visitors/items/environment_id` became nullable for the status `200`
  - the response property `visitors/items/environment_id` became optional for the status `200`
- **2026-04-25** `774be20905f2`: 4 info
  - added the optional property `visitors/items/current_page` to the response with the `200` status
  - added the optional property `visitors/items/first_channel` to the response with the `200` status
  - added the optional property `visitors/items/first_referrer` to the response with the `200` status
  - added the optional property `visitors/items/first_referrer_hostname` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/analytics/live-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)
