セッション
セッションの検索と詳細、セッション内のイベントと閲覧経路。
Returns one session: its visitor, entry and exit pages, source, device, and duration.
siteIdstring必須ID of the site (see List sites).
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.
sessionIdstring必須Session ID from a sessions, visitors, or events response.
Returns one item of a session journey, such as a page view, the session start, or the leave event, with its context.
siteIdstring必須ID of the site (see List sites).
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.
eventIdstring必須Event ID from an events or journey response.
eventKindstringKind of journey item, when the ID alone is ambiguous: pageview, session_start, or leave.
"pageview""session_start""leave"Lists sessions in the range with their entry page, duration, and views.
追加スコープ
[
{
"when": "filter.type=saved",
"scopes": [
"analytics:read",
"analysis:read"
]
}
]siteIdstring必須ID of the site (see List sites).
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 | 任意 | nullOptional 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.
scopestringWhich 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"searchstringCase-insensitive text search.
sortobject必須Sort field and direction.
fieldstring必須"startedAt""durationMs""views"directionstring必須"asc""desc"pageobject必須Cursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.
limitinteger必須cursorstring | 任意 | nullLists the page views and custom events of one session in order.
追加スコープ
[
{
"when": "filter.type=saved",
"scopes": [
"analytics:read",
"analysis:read"
]
}
]siteIdstring必須ID of the site (see List sites).
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 | 任意 | nullOptional 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.
scopestringWhich 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"sessionIdstring必須Session ID from a sessions, visitors, or events response.
pageobject必須Cursor pagination. Pass limit, then send cursor from the previous response's pagination.nextCursor to fetch the next page.
limitinteger必須cursorstring | 任意 | null