ドキュメント
APIAPI リファレンス

訪問者

訪問者の検索と詳細、訪問者のセッションとイベント。

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

訪問者を取得

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

スコープanalytics:readバッチ対応
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

≥ 1 chars
リクエストボディapplication/json
timeRangeobject必須

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.

visitorIdstring必須

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

1–512 chars
レスポンス
POST/api/v1/sites/{siteId}/analytics/visitors/search

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

スコープanalytics:readバッチ対応
追加スコープ
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

≥ 1 chars
リクエストボディapplication/json
timeRangeobject必須

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 | 任意 | 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.

使用できる値"auto""event""session""visitor"
searchstring

Case-insensitive text search.

1–160 chars
sortobject必須

Sort field and direction.

既定値 {"field":"lastSeenAt","direction":"desc"}
fieldstring必須
使用できる値"firstSeenAt""lastSeenAt""sessions""views"
directionstring必須
使用できる値"asc""desc"
pageobject必須

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

既定値 {"limit":80}
limitinteger必須
既定値 801–200
cursorstring | 任意 | null
レスポンス
POST/api/v1/sites/{siteId}/analytics/visitors/events

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

スコープanalytics:readバッチ対応
追加スコープ
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

≥ 1 chars
リクエストボディapplication/json
timeRangeobject必須

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 | 任意 | 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.

使用できる値"auto""event""session""visitor"
visitorIdstring必須

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

1–512 chars
pageobject必須

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

既定値 {"limit":100}
limitinteger必須
既定値 1001–500
cursorstring | 任意 | null
レスポンス
POST/api/v1/sites/{siteId}/analytics/visitors/sessions

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

スコープanalytics:readバッチ対応
追加スコープ
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
パスパラメーター
siteIdstring必須

ID of the site (see List sites).

≥ 1 chars
リクエストボディapplication/json
timeRangeobject必須

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 | 任意 | 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.

使用できる値"auto""event""session""visitor"
visitorIdstring必須

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

1–512 chars
pageobject必須

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

既定値 {"limit":100}
limitinteger必須
既定値 1001–500
cursorstring | 任意 | null
レスポンス