Skip to main content
GET
Returns metric values bucketed over time. Granularity is automatic: hourly for ranges of 24 hours or less, daily otherwise.

Path parameters

string
required
Metric to query. See Metrics Overview for the full list.

Query parameters

string
Aggregation function: sum or avg. Only applies to aggregate metrics. Count metrics ignore this parameter.
string
default:"7:days"
Time range. Relative (7:days, 24:hours) or absolute (two Unix timestamps).

Examples

Hourly completions over 24 hours:
Daily total watch time over 7 days: