Read Single Metric Value
Read Single Metric Value
get
https://statsigapi.net/console/v1/metricsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Query parameters
idstringrequiredThe unique identifier of the metric with format <metric_id>::<type>
datestringrequiredExpected valid date in the form of YYYY-MM-DD
Example:
2024-01-01Response
application/json200· Get metric data on given date response
messagestringrequiredA simple string explaining the result of the operation.
dataobject[]requiredShow child attributes
valuenumberrequiredMetric value for the given unit_type
Constraints:
format: doubleunit_typestringrequiredUnit of the metric: stableID, userID, and other custom ids
row_countnumberRow count for imported metric, optional
Constraints:
format: doublenumeratornumberNumerator of a ratio metric, optional
Constraints:
format: doubledenominatornumberDenominator of a ratio metric, optional
Constraints:
format: doublepaginationobjectrequiredPagination metadata for checking if there is next page for example.
Show child attributes
itemsPerPagenumberrequiredConstraints:
format: doublepageNumbernumberrequiredConstraints:
format: doublenextPagestringrequiredConstraints:
nullablepreviousPagestringrequiredConstraints:
nullabletotalItemsnumberConstraints:
format: doubleallstring401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequiredAllowed values:
401messagestringrequiredWas this helpful?