Metric Query API
Use metricquery API endpoint to get video session & ad related metrics and breakdowns by dimension values.
Endpoint
GET /mm-apis/metricquery/{customerId}
As of July 2025, /mm-apis/qbrData/vod and /mm-apis/session are deprecated. Use /mm-apis/metricquery instead. Backward compatibility remains available, but /mm-apis/metricquery provides access to newer features.
Path parameters
customerId
integer
Yes
Numeric tenant identifier from your SmartSight profile
Query parameters
period
string
Yes
—
start=<epoch>,end=<epoch>
Time range in Unix epoch seconds
metrics
string
Yes
—
metric1,metric2,...
Comma-separated metric field names
aggby
string
No
—
<dimension>, timestamp
Group by dimension or time
sessiontype
string
No
ended
ended , started
Sessions to include in the response.
started: Add sessions that started in theperiodended: Add sessions that ended in theperiod
allstatus
integer
No
0
0 , 1
1 includes sessions with any viewstatus value including RUNNING and LOADED sessions
granularity
string
No
auto
auto, minute, 5minute, 10minute, hour, day
Time bucket size.
Set this parameter only with aggby=timestamp
filter
string
No
—
[dimension=value]
Dimension-level filters
qoefilter
string
No
—
metric1>value1 AND metric2>value2
Session-level metric filters
orderby
string
No
—
metric or dimension
Sort reocrds by the value of the metric or dimension
order
string
No
desc
asc or desc
Sort direction
limit
integer
No
1000
integer
Max records per page/query
offset
integer
No
0
integer
Pagination offset
concurrency
integer
No
0
0 , 1
1 indicates the metric value calculated is based on the metric related event occurrence in the requested time range.
0 indicates the metric value calculated is cumulative of all the occurrences of that metric related events.
businesserror
boolean
No
false
true , false
Include business exception errors in error metrics
API Considerations
Always request metric data for completed time buckets. For real-time monitoring, set the
periodstart and end time interval to the most recently completed time bucket. For example, request2026-05-25 10:00:00to2026-05-25 10:00:59if the current time is2026-05-25 10:01:35.Set API response timeouts based on the requested time range. For example, use a
10stimeout when theperiodcovers1 minto30 mins. Use higher timeout values for longer ranges such as1 day,7 days, or30 days.Use pagination with
limitandoffset, especially for high-cardinality breakdown queries. For example, Rebuffering % breakdown bycdn,asn, andregioncan return100k+records. A good practice is to fetch5kto10krecords per API call.
Example requests
Time-series graph - Rebuffering % over time
Dimension breakdown — Startup time by country (P95)
Filtered query — Buffering by CDN on Android
Example response
Last updated