Actions92
- Channel Actions
- Channel > Config Actions
- Event Actions
- Integrations Actions
- Live Actions
- Misc > Countries Actions
- Misc > Stream Actions
- Option Actions
- Option > Record Actions
- Option > Record > Instant Actions
- Option > Record > Storage Actions
- Option > Timeshift Actions
- Option > Watermarking Actions
- Option > Simulcast Actions
- Players Actions
- Players > Ads Actions
- Players > Embeds Actions
- Players > Pictures Actions
- Prices Actions
- Restrictions Actions
- Stats > Channel > Connection History Actions
- Stats > Channel > Consumption Actions
- Stats > Channel > Export Stats Actions
- Stats > Channel > Geolocation Actions
- Stats > Channel > Technologies Actions
- Stats > Channel > Viewers Actions
- Stats > Channel > Viewing Actions
- Stats > Globals > Consumption Actions
- Stats > Globals > Geolocation Actions
- Stats > Globals > Viewers Actions
- Stats > Globals > Viewing Actions
- Thumbnail Actions
- Order Actions
Stats > Channel > Viewing → Viewing Time
AI-generatedSummary
Retrieve viewing time statistics for a specified channel within a given date range.
Inputs
- authentication — Authentication method to use (OAuth2 or API Key).
- path_channel (required) — Channel identifier (Pack order ID).
- query_from (required) — Starting date for consumption data.
- query_to (required) — Ending date for consumption data.
- query_per (required) — Granularity of time aggregation (e.g., day, hour, minute, month).
- query_account_id (required) — Account identifier.
- returnFullResponse — If true, returns the full API response; otherwise only summary data.
Output shape
JSON object containing viewing time statistics for the specified channel
The response includes duration, aggregated counts, and timestamps; pagination is not indicated. Errors are propagated as standard n8n failures.
Examples
Example 1: Fetch daily viewing time for channel 12345 from Jan 1 to Jan 31, 2023, using OAuth2 and returning summary
authentication=oauth2, path_channel=12345, query_from=2023-01-01, query_to=2023-01-31, query_per=day, query_account_id=1, returnFullResponse=false
Example 2: Get monthly viewing time for channel 67890 using API Key, return full response
authentication=apiKey, path_channel=67890, query_from=2023-01-01, query_to=2023-12-31, query_per=month, query_account_id=1, returnFullResponse=true