HeatmapsPages that have heatmap data

Pages that have heatmap data

Busiest first. Derived from the captured points themselves, so it can neither offer a page with nothing on it nor omit one that has something — which is what makes it safe to drive a page picker from.

clicks and scroll_sessions are reported separately because a page can legitimately have one and not the other: clicks land within seconds of happening, while scroll depth is only banked when the visitor leaves the page. Either one is enough for a page to be listed.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/data/heatmap/pages?location_id=example_string&date_from=2024-12-25T10%3A00%3A00Z&date_to=2024-12-25T10%3A00%3A00Z&limit=500&device_type=mobile&utm_source=facebook&utm_medium=cpc&utm_campaign=example_string&country=USA&segment_id=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {
      "url_key": "acme.com/pricing",
      "clicks": 4821,
      "scroll_sessions": 1204,
      "sessions": 1310,
      "last_seen": "2026-08-04 18:10:09",
      "page_height": 5200
    }
  ]
}
GET
/client/v1/data/heatmap/pages
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need heatmaps:read. See Using an mcp_ key over HTTP.

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need heatmaps:read. See Using an mcp_ key over HTTP.
query
location_idstring

Required with an agency key (ak_); ignored with a location key (sk_). Can also be sent as the X-Location-Id header.

query
date_fromstring

ISO 8601 or YYYY-MM-DD. Defaults to 30 days ago.

Format: date-time
query
date_tostring
Format: date-time
query
device_typestring

Session device — mobile, desktop, tablet. Resolved against the same session data /data/sessions reports, so the two agree.

query
utm_sourcestring

Session source. Includes the referrer fallback: an untagged but referred session reads as google.com, not blank.

query
segment_idstring

Stored segment. Scopes to sessions whose visitor is a member; membership resolves through the identity graph, so a person-level segment catches rows captured under any identity they used.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need heatmaps:read. See Using an mcp_ key over HTTP.

Query Parameters

location_idstring

Required with an agency key (ak_); ignored with a location key (sk_). Can also be sent as the X-Location-Id header.

date_fromstring

ISO 8601 or YYYY-MM-DD. Defaults to 30 days ago.

device_typestring

Session device — mobile, desktop, tablet. Resolved against the same session data /data/sessions reports, so the two agree.

Example:
mobile
utm_sourcestring

Session source. Includes the referrer fallback: an untagged but referred session reads as google.com, not blank.

Example:
facebook
utm_mediumstring
Example:
cpc
segment_idstring

Stored segment. Scopes to sessions whose visitor is a member; membership resolves through the identity graph, so a person-level segment catches rows captured under any identity they used.

Responses

successboolean
dataarray