cURL
curl --request GET \ --url https://statsigapi.net/console/v1/metrics \ --header 'STATSIG-API-KEY: <api-key>'
{ "message": "Metric read successfully.", "data": [ { "value": 0, "unit_type": "overall", "numerator": null, "denominator": null, "metric_name": "TestMetricCapi", "metric_type": "sum" }, { "value": 0, "unit_type": "userID", "numerator": null, "denominator": null, "metric_name": "TestMetricCapi", "metric_type": "sum" } ] }
Optional header to respect review settings for mutation endpoints.
The unique identifier of the metric with format <metric_id>::
Expected valid date in the form of YYYY-MM-DD
"2024-01-01"
Get metric data on given date response
A simple string explaining the result of the operation.
Array of results returned by pagination limit.
Show child attributes
Metric value for the given unit_type
Unit of the metric: stableID, userID, and other custom ids
Row count for imported metric, optional
Numerator of a ratio metric, optional
Denominator of a ratio metric, optional
Pagination metadata for checking if there is next page for example.
Was this page helpful?