heatmaps
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/elements Scope insight:readParameters
channelstringqueryComma separated channels (
Paid Search,Email).utm_sourcestringqueryutm_mediumstringqueryutm_campaignstringqueryreferrerstringqueryComma separated referring domains.
countrystringqueryComma separated ISO country codes.
languagestringqueryscreenstringqueryComma separated resolutions (
1920x1080).entry_pagestringqueryExact path of the session's first pageview.
exit_pagestringqueryvisitorstringquerynew (first session of the visitor) or returning.person_propertystringqueryWith
person_value: only sessions whose person has this property equal to the value.person_valuestringqueryexperiencestringqueryExperience bucket:
happy, neutral or unhappy (N-DXA-1).article_readstringqueryArticle read-through:
finished or abandoned_headline (N-DXA-6).reader_typestringqueryReader type:
single (1 article), few (2-3) or many (4+).project_idstringpathrequiredurlstringqueryrequiredviewportstringqueryfromstringquerytostringquerycohortstringquerygoalstringqueryconversion event for the lift
min_widthintegerqueryviewports at least this many CSS px wide
max_widthintegerqueryviewports below this many CSS px wide
flagstringquerywith variant: only sessions served that variant
variantstringquerykeystringqueryselector (default) or href: group clicks by the link target
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/elements?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 ranked by clicks
Example
{
"data": [
{
"click_recurrence": 0,
"click_share": 0,
"clicks": 0,
"conv_rate_clicked": 0,
"conv_rate_other": 0,
"conversion_lift": 0,
"converted_sessions": 0,
"ctr": 0,
"dead_clicks": 0,
"rage_clicks": 0,
"selector": "string",
"sessions": 0,
"time_to_first_click_ms": 0
}
],
"goal": "string",
"key": "string",
"next_cursor": "string",
"url": "string"
}Schema
dataHeatElement[]requiredShow child parameters
click_recurrencenumberrequiredClicks per clicking session (LC-EXP-41).
click_sharenumberrequiredclicksintegerrequiredconv_rate_clickednumberrequiredconv_rate_othernumberrequiredconversion_liftnumberrequiredconverted_sessionsintegerrequiredctrnumberrequireddead_clicksintegerrequiredrage_clicksintegerrequiredselectorstringrequiredsessionsintegerrequiredtime_to_first_click_msintegerrequiredMedian ms from the session's first interaction on the page to its first click here.
goalstringrequiredkeystringrequiredselector (default) or href: what data[].selector holds.next_cursorstringrequiredPass as
cursor for the next page; absent on the last.urlstringrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/fold Scope insight:readThe scroll fold line per device bucket: median viewport height, quartiles and the share of scrolling sessions that went below it. Pass `breakpoints` for custom device widths.
Parameters
channelstringqueryComma separated channels (
Paid Search,Email).utm_sourcestringqueryutm_mediumstringqueryutm_campaignstringqueryreferrerstringqueryComma separated referring domains.
countrystringqueryComma separated ISO country codes.
languagestringqueryscreenstringqueryComma separated resolutions (
1920x1080).entry_pagestringqueryExact path of the session's first pageview.
exit_pagestringqueryvisitorstringquerynew (first session of the visitor) or returning.person_propertystringqueryWith
person_value: only sessions whose person has this property equal to the value.person_valuestringqueryexperiencestringqueryExperience bucket:
happy, neutral or unhappy (N-DXA-1).article_readstringqueryArticle read-through:
finished or abandoned_headline (N-DXA-6).reader_typestringqueryReader type:
single (1 article), few (2-3) or many (4+).project_idstringpathrequiredurlstringqueryrequiredbreakpointsstringqueryascending widths, e.g. 480,768,1024
fromstringquerytostringquerycohortstringqueryflagstringqueryvariantstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/fold?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"breakpoints": [
0
],
"data": [
{
"below_fold_rate": 0,
"below_fold_sessions": 0,
"bucket": "string",
"fold_px": 0,
"fold_px_p25": 0,
"fold_px_p75": 0,
"sessions": 0
}
],
"url": "string"
}Schema
breakpointsinteger[]requireddataHeatFoldBucket[]requiredShow child parameters
below_fold_ratenumberrequiredbelow_fold_sessionsintegerrequiredbucketstringrequiredmobile|tablet|desktop, or a breakpoint range such as 480-767.fold_pxintegerrequiredMedian viewport height in CSS px: the fold line.
fold_px_p25integerrequiredfold_px_p75integerrequiredsessionsintegerrequiredurlstringrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/recordings Scope replay:readUp to three recent recordings that visited the page: alternatives when the snapshot of the newest one cannot be shown (blocked frame, no full snapshot).
Parameters
project_idstringpathrequiredurlstringqueryrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/recordings?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{data: [{session_id, started_at, duration_ms}]}404
503
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshot Scope replay:readParameters
project_idstringpathrequiredurlstringqueryrequiredsession_idstringquerythis recording instead of the newest one visiting the page
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshot?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 audited as replay.viewed
Example
{
"chunk": {
"expires_at": "2024-01-01T00:00:00Z",
"presigned": true,
"seq": 0,
"url": "string",
"window": 0,
"window_id": "string"
},
"session_id": "string",
"started_at": "2024-01-01T00:00:00Z",
"url": "string"
}Schema
chunkobjectrequiredShow child parameters
expires_atstringrequiredpresignedbooleanrequiredseqintegerrequiredurlstringrequiredwindowintegerrequiredBrowser tab (window) of the chunk, 0 for the first; each window is played on its own.
window_idstringrequiredSDK window id of the tab the chunk was recorded in; empty for chunks stored before it was indexed.
session_idstringrequiredstarted_atstringrequiredurlstringrequired404
503
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/snapshots Scope insight:readParameters
project_idstringpathrequiredurlstringqueryrequiredfromstringquerytostringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Newest day first
Example
{
"data": [
{
"clicks": 0,
"created_at": "2024-01-01T00:00:00Z",
"day": "string",
"sessions": 0,
"url": "string",
"x_bins": 0,
"y_bin_px": 0
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
clicksintegerrequiredcreated_atstringrequireddaystringrequiredUTC day the snapshot covers.
sessionsintegerrequiredSessions that clicked.
urlstringrequiredx_binsintegerrequiredy_bin_pxintegerrequirednext_cursorstring400
404
Updated