provider experiment_saved_metrics GET /api/projects/{project_id}/experiment_saved_metrics/
@utdk/posthog /api/projects/{project_id}/experiment_saved_metrics/
experiment_saved_metrics_list
event query
Filter to shared metrics whose query references this event name. Matches events used directly in metric queries as well as events behind any actions those metrics reference. Use this for reuse discovery (find a metric by what it measures); distinct from 'search', which matches the metric's own name/description/tags.
string
limit query
Number of results to return per page.
integer
offset query
The initial index from which to return the results.
integer
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
search query
A search term.
string

Try it

Authentication
Configure credentials for PostHog API
experimentSavedMetricsList
GET/api/projects/{project_id}/experiment_saved_metrics/

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/.

Filter to shared metrics whose query references this event name. Matches events used directly in metric queries as well as events behind any actions those metrics reference. Use this for reuse discovery (find a metric by what it measures); distinct from 'search', which matches the metric's own name/description/tags.

Number of results to return per page.

The initial index from which to return the results.

A search term.

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