provider metricsmetrics GET /api/projects/{project_id}/metrics/attribute_values/
@utdk/posthog /api/projects/{project_id}/metrics/attribute_values/
metrics_attribute_values_retrieve
Observed values for one metric attribute key, most frequent first. Backs the filter bar's value autocomplete.
dateFrom query
Lower bound (inclusive) of the window values are suggested from. ISO 8601. Defaults to 7 days ago.
stringnull
dateTo query
Upper bound (exclusive) of the window. ISO 8601. Defaults to now.
stringnull
key query required
Attribute key to list values for (e.g. 'env'). 'service_name'/'service.name' list service names.
string
limit query
Max number of values to return. Defaults to 100; maximum 1000.
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
value query
Substring filter (case-insensitive) applied to values. Named 'value' to match the property-values autocomplete convention.
string

Try it

Authentication
Configure credentials for PostHog API
metricsAttributeValuesRetrieve
GET/api/projects/{project_id}/metrics/attribute_values/
Observed values for one metric attribute key, most frequent first. Backs the filter bar's value autocomplete.

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

Lower bound (inclusive) of the window values are suggested from. ISO 8601. Defaults to 7 days ago.

Upper bound (exclusive) of the window. ISO 8601. Defaults to now.

required

Attribute key to list values for (e.g. 'env'). 'service_name'/'service.name' list service names.

Max number of values to return. Defaults to 100; maximum 1000.

Substring filter (case-insensitive) applied to values. Named 'value' to match the property-values autocomplete convention.

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.metricsAttributeValuesRetrieve({
  "limit": 100
})