viakite
Dashboard

API/Reports/Pages with heatmap data

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.

Secret keyNeeds analytics.viewus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Query parameters

devicestring
The device width the clicks were made at, from the viewport (mobile under 768 px, tablet under 1,024, desktop from there).
desktoptabletmobile
presetstring
todayyesterday7d30d90dthis_monthlast_monththis_yearall
fromstring
A date (2026-11-01) or an RFC 3339 time.
tostring
A date (included) or an RFC 3339 time (excluded).

Responses

The pages.

dataHeatmapPage[]required
Show 3 fields
pagestringrequired
viewsintegerrequired
clicksintegerrequired
devicestringrequired
The device read; empty for every device.
date_rangeobjectrequired
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
Example response
1{
2 "data": [
3 {
4 "page": "/pricing",
5 "views": 1,
6 "clicks": 1
7 }
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.

StatusCode
422validation_error
503clickhouse_not_configured