publ betaReference (MCP guide)
Open publ console

publ Reference

shorts_statistics_get

Reads short viewing statistics for a period, or the statistics overview in the Shorts app (pApp C00015). format csv also returns the page as the original CSV download.

Inputs

Field Required here Contract
view Yes one of: shorts-statistics, shorts-overview (by kind)
view.query No When view.kind is shorts-statistics: object; default {"page":1,"limit":15}
view.query.start No When view.kind is shorts-statistics: string; pattern ^\d{4}-\d{2}-\d{2}$; Period start (YYYY-MM-DD). Give start and end together (YYYY-MM-DD, from 2022-01-01); end is on or after start and less than 93 days after it (at most 93 calendar days), as the statistics date range allows. For a longer span, read consecutive periods.
view.query.end No When view.kind is shorts-statistics: string; pattern ^\d{4}-\d{2}-\d{2}$; Period end (YYYY-MM-DD). Give start and end together (YYYY-MM-DD, from 2022-01-01); end is on or after start and less than 93 days after it (at most 93 calendar days), as the statistics date range allows. For a longer span, read consecutive periods.
view.query.page No When view.kind is shorts-statistics: integer; minimum 1; maximum 10000; default 1
view.query.limit No When view.kind is shorts-statistics: 15 or 30 or 50 or 100; default 15
view.format No When view.kind is shorts-statistics: csv; csv: also return this page as the original CSV download (same page only).
view.query No When view.kind is shorts-overview: object; default {}
view.query.start No When view.kind is shorts-overview: string; pattern ^\d{4}-\d{2}-\d{2}$; Period start (YYYY-MM-DD). Give start and end together (YYYY-MM-DD, from 2022-01-01); end is on or after start and less than 93 days after it (at most 93 calendar days), as the statistics date range allows. For a longer span, read consecutive periods.
view.query.end No When view.kind is shorts-overview: string; pattern ^\d{4}-\d{2}-\d{2}$; Period end (YYYY-MM-DD). Give start and end together (YYYY-MM-DD, from 2022-01-01); end is on or after start and less than 93 days after it (at most 93 calendar days), as the statistics date range allows. For a longer span, read consecutive periods.
view.includePlayCounts No When view.kind is shorts-overview: boolean; Also read total play counts (an endpoint the console defines but shows on no screen).