v51

latestOpenAPI 3.0.0AGPLv3 or laterraw.githubusercontent.com2026-08-0126276829.1 KB
statistics

Stats API

get/stats

Query parameters

typestring

The type of stat to return. Layout|Media|Widget

fromDtstring

The start date for the filter. Default = 24 hours ago

toDtstring

The end date for the filter. Default = now.

statDatestring

The statDate filter returns records that are greater than or equal a particular date

statIdstring

The statId filter returns records that are greater than a particular statId

displayIdinteger

An optional display Id to filter

displayIdsinteger[]

An optional array of display Id to filter

layoutIdinteger[]

An optional array of layout Id to filter

parentCampaignIdinteger

An optional Parent Campaign ID to filter

mediaIdinteger[]

An optional array of media Id to filter

campaignIdinteger

An optional Campaign Id to filter

returnDisplayLocalTimeboolean

true/1/On if the results should be in display local time, otherwise CMS time

returnDateFormatstring

A PHP formatted date format for how the dates in this call should be returned.

embedstring

Should the return embed additional data, options are layoutTags,displayTags and mediaTags

Response

successful operation

typestring

Class Stats

displaystring
displayIdinteger
layoutstring
layoutIdinteger
mediastring
mediaIdinteger
widgetIdinteger
scheduleIdinteger
numberPlaysinteger
durationinteger
startstring
endstring
statDatestring
tagstring