---
title: "Get detailed information about a specific visitor by numeric ID"
method: GET
path: "/analytics/visitors/{visitor_id}"
tags: ["Analytics"]
---

# Get detailed information about a specific visitor by numeric ID

`GET /analytics/visitors/{visitor_id}`

## Request

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

## Path parameters

- `visitor_id` integer, required

## Query parameters

- `project_id` integer, required
- `environment_id` integer

## Response `200`

Successfully retrieved visitor details

- VisitorDetails
  - `asn_number` integer, nullable: Autonomous system (network) number the visitor's IP is announced from, when an ASN database was loaded.
  - `asn_org` string, nullable: Organisation operating that network.
  - `city` string, nullable
  - `country` string, nullable
  - `country_code` string, nullable
  - `crawler_name` string, nullable
  - `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
  - `identified_at` string, date-time, nullable
  - `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
  - `project_id` integer, required
  - `region` string, nullable
  - `timezone` string, nullable
  - `trait_sources` unknown
  - `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 parameters or project not found
- `404`: Visitor not found
- `500`: Internal server error

## Changes

- **2026-11-25** `cd7fa5283777`: 2 breaking
  - the response property `environment_id` became nullable for the status `200`
  - the response property `environment_id` became optional for the status `200`
- **2026-11-21** `fada8eed0111`: 4 info
  - added the optional property `identified_at` to the response with the `200` status
  - added the optional property `identity_source` to the response with the `200` status
  - added the optional property `trait_sources` to the response with the `200` status
  - added the optional property `user_id` to the response with the `200` status
- **2026-10-30** `0c5d6f73ba5b`: 2 info
  - added the optional property `asn_number` to the response with the `200` status
  - added the optional property `asn_org` to the response with the `200` status
- **2026-04-25** `774be20905f2`: 3 info
  - added the optional property `first_channel` to the response with the `200` status
  - added the optional property `first_referrer` to the response with the `200` status
  - added the optional property `first_referrer_hostname` to the response with the `200` status

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