cURL
curl --request GET \ --url https://statsigapi.net/console/v1/metrics/values \ --header 'STATSIG-API-KEY: <api-key>'
{ "message": "Metric values listed successfully.", "data": [ { "value": 21377, "unitType": "overall", "numerator": null, "denominator": null, "metricName": "Page Loads", "metricType": "event_count_custom" }, { "value": 21377, "unitType": "stableID", "numerator": null, "denominator": null, "metricName": "Page Loads", "metricType": "event_count_custom" }, { "value": 21355, "unitType": "userID", "numerator": null, "denominator": null, "metricName": "Page Loads", "metricType": "event_count_custom" }, { "value": 646524, "unitType": "stableID", "numerator": null, "denominator": null, "metricName": "Average Time Spent on Page", "metricType": "event_user" }, { "value": 5676, "unitType": "stableID", "numerator": null, "denominator": null, "metricName": "Page Latency", "metricType": "mean" } ], "pagination": { "itemsPerPage": 5, "pageNumber": 1, "totalItems": 5767, "nextPage": "/console/v1/metrics/values?date=2024-02-04&page=2&limit=5", "previousPage": null } }
List all metric values
Optional header to respect review settings for mutation endpoints.
Expected valid date in the form of YYYY-MM-DD
"2024-01-01"
Results per page
10
Page number
1
List All Metric Values Response
A simple string explaining the result of the operation.
Array of results returned by pagination limit.
Show child attributes
Pagination metadata for checking if there is next page for example.
Was this page helpful?