provider metricsmetrics GET /api/environments/{environment_id}/metrics/attribute_values/
@utdk/posthog /api/environments/{environment_id}/metrics/attribute_values/
environments_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
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
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
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
environmentsMetricsAttributeValuesRetrieve
GET/api/environments/{environment_id}/metrics/attribute_values/
Observed values for one metric attribute key, most frequent first. Backs the filter bar's value autocomplete.

Parameters

required

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

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