provider web_vitals GET /api/projects/{project_id}/web_vitals/
@utdk/posthog /api/projects/{project_id}/web_vitals/
web_vitals_retrieve
Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators).
pathname query required
Filter web vitals by pathname
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
webVitalsRetrieve
GET/api/projects/{project_id}/web_vitals/
Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators).

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

Filter web vitals by pathname

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.webVitalsRetrieve()