Developer Documentation & APIs

Display a single viewing heatmap in an iframe

The heatmap iframe displays a recorded viewing session with its video and a timeline of playback activity. It is different from the aggregate heatmap for all viewers.

Endpoint and required context

The API endpoint is https://api.cincopa.com/v2/analytics.single_heatmap_iframe. It expects valid authorization and identifiers for an existing analytics session. Calling it without authorization returns a missing-token or signature message.

Build the request with the values for the session you intend to inspect:

  • api_token: an authorized Cincopa API token. Keep it private and restrict access to the tool that uses it.
  • date: the date associated with that recorded session, in YYYY-MM-DD format.
  • zone: the analytics timezone value used by the request; the legacy example uses 0.
  • hm: the recorded heatmap session ID, not an asset ID.
  • uid: the Cincopa account identifier associated with the session.
  • disable_editor=y: the display option used by the original read-only example.

Request example

Example code

https://api.cincopa.com/v2/analytics.single_heatmap_iframe?api_token=YOUR_API_TOKEN&date=YYYY-MM-DD&zone=0&hm=HEATMAP_SESSION_ID&uid=ACCOUNT_UID&disable_editor=y

Replace every placeholder with a value from the same session and URL-encode each value. Do not substitute today's date for an older viewing session or create a random heatmap ID.

The legacy runtime reference obtains a session ID from cincopa.cp_media_hm[accountUid][assetRid].hmid when that structure is available for the loaded player. This is runtime state, not a persistent lookup for any historical viewer. Confirm its availability before using it in an integration.

Embed and validate

Use the resulting URL as the source of an iframe in an authorized internal application. Allow sufficient space for the video and timeline. Play the video and check that the position indicator aligns with the recorded heatmap.

An API token placed in a browser URL or iframe source is visible to that browser's user. Do not put an account API token into a public page. Use an approved signed or otherwise protected integration for a wider audience; contact Cincopa support for the authentication method appropriate to your deployment.

Troubleshoot a missing heatmap

Confirm the token or signature, account UID, heatmap ID, date, and timezone context. An asset can have many sessions, and an aggregate analytics chart is not itself a single-session ID.

For normal account reporting, use Video Analytics or Live Feed. For other integrations, use the Developer Center.