Skip to content
☁️ HitKeep Cloud is coming! Join the Early Access waitlist →

Get Aggregated Stats

GET
/api/sites/{id}/stats

Returns dashboard KPIs, charts, and breakdown lists.

id
required
string format: uuid
from
string format: date-time

Start timestamp (RFC3339)

to
string format: date-time

End timestamp (RFC3339)

Aggregated statistics

object
live_visitors

Approximate distinct sessions in the last 5 minutes

integer
total_pageviews
integer
unique_sessions
integer
bounce_rate
number format: double
avg_session_duration

In seconds

number format: double
pages_per_session
number format: double
chart_data
Array<object>
object
time
string format: date-time
pageviews
integer
visitors
integer
top_pages
Array<object>
object
name
string
value
integer
top_referrers
Array<object>
object
name
string
value
integer
top_devices
Array<object>
object
name
string
value
integer