metrics
metrics

Attribute keys ordered by distinct series count, from highest to lowest. metricName limits choices to one metric.

get/api/projects/{project_id}/metrics/attributes/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/metrics/attributes/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

dateFromstring date-time nullable

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

dateTostring date-time nullable

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

limitinteger

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

metricNamestring

Exact metric name to limit attribute keys to. Omit to list keys across all metrics.

searchstring

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

Response

countinteger required

Number of keys returned.

Changes

No recorded changes to this operation across all 1 revision of this API.