Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Channel > Viewing → Viewing Time

AI-generated

Summary

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

Links

Discussion