Pages with heatmap data
GET/ v1/ projects/ {project}/ analytics/ heatmaps/ pages
The pages the heatmap script measured in the range, most viewed first, 100 at most: each with its page views (those the script sent a scroll depth for) and clicks. Without device every device is counted. The range is preset, or from and to; the last 30 days when neither is given.
Path parameters
project
The project's id (
prj_…).Query parameters
device
The device width the clicks were made at, from the viewport (mobile under 768 px, tablet under 1,024, desktop from there).
desktoptabletmobilepreset
todayyesterday7d30d90dthis_monthlast_monththis_yearallfrom
A date (2026-11-01) or an RFC 3339 time.
to
A date (included) or an RFC 3339 time (excluded).
Responses
The pages.
data
Show 3 fieldsHide fields
page
views
clicks
device
The device read; empty for every device.
date_range
A resolved range [from, to) in UTC.
Show 2 fieldsHide fields
from
A time in UTC, ISO 8601.
to
A time in UTC, ISO 8601.
Example response
1{2"data": [3{4"page": "/pricing",5"views": 1,6"clicks": 17}8],9"device": "string",10"date_range": {11"from": "2026-11-21T09:30:00Z",12"to": "2026-11-21T09:30:00Z"13}14}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
validation_error | |
clickhouse_not_configured |