Documentation
APIAPI reference

Visitors

Search visitors and read one visitor's profile, sessions, and events.

POST/api/v1/sites/{siteId}/analytics/visitors/detail

Get visitor

Returns one visitor's profile: identity (if identified), first and last visit, location, device, and totals.

Scopesanalytics:readBatchable
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

visitorIdstringrequired

Visitor ID from a visitors, sessions, or events response.

1–512 chars
Responses
POST/api/v1/sites/{siteId}/analytics/visitors/search

Lists visitors in the range with their first and last visit, sessions, and views.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

filterobject | any | null

Optional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
searchstring

Case-insensitive text search.

1–160 chars
sortobjectrequired

Sort field and direction.

Default {"field":"lastSeenAt","direction":"desc"}
fieldstringrequired
Allowed"firstSeenAt""lastSeenAt""sessions""views"
directionstringrequired
Allowed"asc""desc"
pageobjectrequired

Cursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.

Default {"limit":80}
limitintegerrequired
Default 801–200
cursorstring | any | null
Responses
POST/api/v1/sites/{siteId}/analytics/visitors/events

List visitor events

Lists one visitor's page views and custom events in the range, newest first.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

filterobject | any | null

Optional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
visitorIdstringrequired

Visitor ID from a visitors, sessions, or events response.

1–512 chars
pageobjectrequired

Cursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.

Default {"limit":100}
limitintegerrequired
Default 1001–500
cursorstring | any | null
Responses
POST/api/v1/sites/{siteId}/analytics/visitors/sessions

List visitor sessions

Lists one visitor's sessions in the range, newest first.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

filterobject | any | null

Optional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
visitorIdstringrequired

Visitor ID from a visitors, sessions, or events response.

1–512 chars
pageobjectrequired

Cursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.

Default {"limit":100}
limitintegerrequired
Default 1001–500
cursorstring | any | null
Responses