metrics
metrics
Observed values for one metric attribute key, most frequent first. Backs the filter bar's value autocomplete.
get/api/projects/{project_id}/metrics/attribute_values/
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/metrics/attribute_values/
- 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 values 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.
keystring required
Attribute key to list values for (e.g. 'env'). 'service_name'/'service.name' list service names.
limitinteger
Max number of values to return. Defaults to 100; maximum 1000.
valuestring
Substring filter (case-insensitive) applied to values. Named 'value' to match the property-values autocomplete convention.
Response
Changes
No recorded changes to this operation across all 1 revision of this API.