Read Single Metric Value

gethttps://statsigapi.net/console/v1/metrics

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Query parameters

idstringrequired

The unique identifier of the metric with format <metric_id>::<type>

datestringrequired

Expected valid date in the form of YYYY-MM-DD

Response

application/json
200· Get metric data on given date response
messagestringrequired

A simple string explaining the result of the operation.

dataobject[]required
Show child attributes
value[]numberrequired

Metric value for the given unit_type

unit_type[]stringrequired

Unit of the metric: stableID, userID, and other custom ids

row_count[]number

Row count for imported metric, optional

numerator[]number

Numerator of a ratio metric, optional

denominator[]number

Denominator of a ratio metric, optional

paginationobjectrequired

Pagination metadata for checking if there is next page for example.

401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
messagestringrequired

Was this helpful?