---
title: "Get list of visitors with summary information"
method: GET
path: "/analytics/visitors"
tags: ["Analytics"]
---

# Get list of visitors with summary information

`GET /analytics/visitors`

## Request

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

## Query parameters

- `start_date` string, required
- `end_date` string, required
- `project_id` integer, required
- `environment_id` integer
- `include_crawlers` boolean
- `limit` integer
- `offset` integer
- `has_activity_only` boolean
- `filter_country` string
- `filter_region` string
- `filter_city` string
- `filter_channel` string
- `filter_referrer` string
- `filter_user_id` string

## Response `200`

Successfully retrieved visitors

- VisitorsResponse
  - `filtered_count` integer, required
  - `total_count` integer, required
  - `visitors` VisitorInfo[], required
    - `browser` string, nullable: Browser named by `user_agent` (e.g. "Chrome"), as analytics breakdowns name it
    - `browser_version` string, nullable
    - `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
    - `identity_source` string, nullable: Who set `user_id`: `browser` (the SDK) or `server` (a deployment token). `None` while the visitor is anonymous.
    - `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
    - `operating_system` string, nullable: Operating system named by `user_agent` (e.g. "Windows 10")
    - `operating_system_version` string, nullable
    - `project_id` integer, required
    - `region` string, nullable
    - `timezone` string, nullable
    - `user_agent` string, nullable
    - `user_id` string, nullable: The app's own user id, once `identify()` labelled this visitor.
    - `visitor_id` string, required

## Other responses

- `400`: Invalid date format, missing required 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-11-22** `4c1e78721932`: 4 info
  - added the optional property `visitors/items/browser` to the response with the `200` status
  - added the optional property `visitors/items/browser_version` to the response with the `200` status
  - added the optional property `visitors/items/operating_system` to the response with the `200` status
  - added the optional property `visitors/items/operating_system_version` to the response with the `200` status
- **2026-11-22** `b701bf70926b`: 4 warning
  - removed the optional property `visitors/items/browser` from the response with the `200` status
  - removed the optional property `visitors/items/browser_version` from the response with the `200` status
  - removed the optional property `visitors/items/operating_system` from the response with the `200` status
  - removed the optional property `visitors/items/operating_system_version` from the response with the `200` status
- …earlier changes not shown

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