Skip to main content
View as Markdown

report.getGraphs - Analytics

report.getGraphs​

Retrieves time-series data for charting. Returns an array of KalturaReportGraph objects, one per metric.

Parameters

ParameterTypeRequiredDescription
reportTypeintYesKalturaReportType integer ID (see Report Types Reference)
reportInputFilter[objectType]stringYesAlways KalturaEndUserReportInputFilter
reportInputFilter[fromDate]intYesStart date as Unix timestamp in seconds
reportInputFilter[toDate]intYesEnd date as Unix timestamp in seconds
reportInputFilter[timeZoneOffset]intNoTimezone offset in minutes. Default: 0
reportInputFilter[interval]stringNoGranularity: days, months, hours, tenSeconds, years. Default: days
reportInputFilter[entryIdIn]stringNoFilter by entry IDs (pipe-separated)
reportInputFilter[virtualEventIdIn]stringNoScope to virtual event(s)
responseOptions[objectType]stringNoKalturaReportResponseOptions
responseOptions[delimiter]stringNoField delimiter. Default: , (use | for consistency)
curl -X POST "$KALTURA_SERVICE_URL/service/report/action/getGraphs" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "reportType=38" \
-d "reportInputFilter[objectType]=KalturaEndUserReportInputFilter" \
-d "reportInputFilter[fromDate]=$FROM_TIMESTAMP" \
-d "reportInputFilter[toDate]=$TO_TIMESTAMP" \
-d "reportInputFilter[interval]=days" \
-d "responseOptions[objectType]=KalturaReportResponseOptions" \
-d "responseOptions[delimiter]=|"

Use interval=hours for intraday granularity, interval=months for long-term trends, and interval=tenSeconds for live/realtime views.