---
title: "GET /analytics/page-hourly-sessions"
method: GET
path: "/analytics/page-hourly-sessions"
tags: ["Analytics"]
---

# GET /analytics/page-hourly-sessions

`GET /analytics/page-hourly-sessions`

## Request

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

## Query parameters

- `page_path` string, required
- `project_id` integer, required
- `environment_id` integer
- `start_time` string, required
- `end_time` string, required
- `bucket_interval` string

## Response `200`

Successfully retrieved page sessions with time buckets

- PageHourlySessionsResponse
  - `hourly_data` HourlyPageSessions[], required
    - `avg_duration_seconds` number, double, required
    - `event_count` integer, required
    - `session_count` integer, required
    - `timestamp` string, required
  - `hours` integer, required
  - `page_path` string, required
  - `total_sessions` integer, required

## Other responses

- `400`: Invalid parameters or project not found
- `500`: Internal server error

---

[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)
