provider metricsmetrics GET /api/projects/{project_id}/metrics/attributes/
@utdk/posthog /api/projects/{project_id}/metrics/attributes/
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
limit query
Max number of keys 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
search query
Substring filter (case-insensitive) applied to attribute keys.
string

Try it

Authentication
Configure credentials for PostHog API
metricsAttributesRetrieve
GET/api/projects/{project_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

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