provider metricsmetrics GET /api/environments/{environment_id}/metrics/attributes/
@utdk/posthog /api/environments/{environment_id}/metrics/attributes/
environments_metrics_attributes_retrieve
Distinct attribute keys seen on the team's metrics (datapoint and resource attributes merged), most frequent first. Backs the filter bar's key autocomplete.
dateFrom query
Lower bound (inclusive) of the window keys 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
limit query
Max number of keys to return. Defaults to 100; maximum 1000.
integer
search query
Substring filter (case-insensitive) applied to attribute keys.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsMetricsAttributesRetrieve
GET/api/environments/{environment_id}/metrics/attributes/
Distinct attribute keys seen on the team's metrics (datapoint and resource attributes merged), most frequent first. Backs the filter bar's key autocomplete.

Parameters

required

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

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

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

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

Substring filter (case-insensitive) applied to attribute keys.

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