provider heatmap_screenshots GET /api/environments/{environment_id}/heatmap_screenshots/{id}/content/
@utdk/posthog /api/environments/{environment_id}/heatmap_screenshots/{id}/content/
environments_heatmap_screenshots_content_retrieve
Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
id path required
A UUID string identifying this saved heatmap.
string
width query
Viewport width (CSS pixels) to fetch. Defaults to 1024. If no exact render exists for this width the closest available one is returned.
integer

Try it

Authentication
Configure credentials for PostHog API
environmentsHeatmapScreenshotsContentRetrieve
GET/api/environments/{environment_id}/heatmap_screenshots/{id}/content/
Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

required

A UUID string identifying this saved heatmap.

Viewport width (CSS pixels) to fetch. Defaults to 1024. If no exact render exists for this width the closest available one is returned.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsHeatmapScreenshotsContentRetrieve()