heatmaps
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/compare Scope insight:readParameters
project_idstringpathrequiredurlstringqueryrequiredastringqueryrequiredbase day
bstringqueryrequiredday compared to it
viewportstringquerycompare one viewport bucket
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/compare?url=<url>&a=<a>&b=<b>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"a": {
"clicks": 0,
"day": "string",
"sessions": 0
},
"b": {
"clicks": 0,
"day": "string",
"sessions": 0
},
"bins": [
{
"count_a": 0,
"count_b": 0,
"delta": 0,
"share_a": 0,
"share_b": 0,
"share_delta": 0,
"x": 0,
"y": 0
}
],
"scroll": [
{
"depth_pct": 0,
"rate_a": 0,
"rate_b": 0,
"sessions_a": 0,
"sessions_b": 0
}
],
"url": "string",
"x_bins": 0,
"y_bin_px": 0
}Schema
aobjectrequiredShow child parameters
clicksintegerrequireddaystringrequiredsessionsintegerrequiredbobjectrequiredShow child parameters
clicksintegerrequireddaystringrequiredsessionsintegerrequiredbinsBinDelta[]requiredBins with clicks on either day, largest absolute share change first.
Show child parameters
count_aintegerrequiredcount_bintegerrequireddeltaintegerrequiredcount_b - count_a.share_anumberrequiredShare of the day's clicks, so busier days do not drown the comparison.
share_bnumberrequiredshare_deltanumberrequiredshare_b - share_a.xintegerrequiredyintegerrequiredscrollReachDelta[]requiredShow child parameters
depth_pctintegerrequiredrate_anumberShare of the day's scrolling sessions that reached this depth.
rate_bnumbersessions_aintegerrequiredsessions_bintegerrequiredurlstringrequiredx_binsintegerrequiredy_bin_pxintegerrequired400 The snapshots use different bin sizes
404 No snapshot for one of the days
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/pages Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/pages"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 At most 50, so one page with no cursor
Example
{
"data": [
{
"auto": true,
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"url": "string",
"x_bins": 0,
"y_bin_px": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
autobooleanrequiredRegistered by the busiest-pages option rather than by a person.
created_atstringrequiredidstringrequiredurlstringrequiredx_binsintegerrequiredy_bin_pxintegerrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/pages Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
urlstringrequiredPage path or URL; stored normalized like the heatmap points.
x_binsintegerColumns across the page width (1 to 200, default 50).
y_bin_pxintegerPixels per row (1 to 1000, default 20).
{
"url": "string",
"x_bins": 0,
"y_bin_px": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/pages" \
-H "Content-Type: application/json" \
-d '{"url":"string","x_bins":0,"y_bin_px":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Snapshots start with the next completed UTC day (and backfill the last 7 days still held)
Example
{
"auto": true,
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"url": "string",
"x_bins": 0,
"y_bin_px": 0
}Schema
autobooleanrequiredRegistered by the busiest-pages option rather than by a person.
created_atstringrequiredidstringrequiredurlstringrequiredx_binsintegerrequiredy_bin_pxintegerrequired400
403
404
409 Already registered
DELETE
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/pages/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/pages/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204 Stops new snapshots; stored ones stay
403
404
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/settings Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/settings"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"auto_top_n": 0,
"refold_days": 0,
"viewports": [
"string"
]
}Schema
auto_top_nintegerrequiredRegister the this-many busiest pages by clicks over the last 7 days (0 to 50; 0 = off).
refold_daysintegerrequiredThe newest this many days are recomputed on every run so late events are folded in (0 to 7).
viewportsstring[]requiredViewport buckets that also get their own bins (
data.viewports.<bucket>), at most 5.404
PUT
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/settings Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
auto_top_nintegerRegister this many busiest pages automatically (0 to 50; 0 = off).
refold_daysintegerRecompute and replace the newest this many days on every run (0 to 7).
viewportsstring[]Viewport buckets (as the SDK reports
viewport_bucket) that also get their own bins, at most 5.{
"auto_top_n": 0,
"refold_days": 0,
"viewports": [
"string"
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/settings" \
-H "Content-Type: application/json" \
-d '{"auto_top_n":0,"refold_days":0,"viewports":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Used from the next snapshot run
Same as 200 · GET /v1/projects/{project_id}/heatmaps/snapshots/settings
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots/{day} Scope insight:readParameters
project_idstringpathrequireddaystringpathrequiredurlstringqueryrequiredviewportstringqueryone viewport bucket's bins (when the project stores it)
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots/{day}?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"clicks": 0,
"created_at": "2024-01-01T00:00:00Z",
"day": "string",
"sessions": 0,
"url": "string",
"x_bins": 0,
"y_bin_px": 0,
"data": {}
}Schema
clicksintegerrequiredcreated_atstringrequireddaystringrequiredUTC day the snapshot covers.
sessionsintegerrequiredSessions that clicked.
urlstringrequiredx_binsintegerrequiredy_bin_pxintegerrequireddataobjectrequired{bins: [[x, y, count, sessions]], scroll: {sessions, reach: [sessions reaching 10..100 %]}}.400
404
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/zones Scope insight:readParameters
project_idstringpathrequiredurlstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/zones"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"url": "string",
"x0": 0,
"x1": 0,
"y0": 0,
"y1": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredcreated_bystringidstringrequirednamestringrequiredupdated_atstringrequiredurlstringrequiredNormalized page path the zone belongs to.
x0numberrequiredLeft edge as a ratio of the page width.
x1numberrequiredy0integerrequiredTop and bottom edge in document pixels.
y1integerrequirednext_cursorstring400
404
Updated