Infomaniak Vod icon

Infomaniak Vod

Interact with Infomaniak Vod API

Actions349

General → Get Media Unique Viewers

AI-generated

Summary

Retrieve the number of unique viewers for a specified media item within a channel on Infomaniak VOD.

Inputs

  • authentication — Choose the authentication method: OAuth2 or API Key. Defaults to OAuth2.
  • path_channel (required) — Specify the channel identifier from which to retrieve the media unique viewers.
  • path_media (required) — Specify the media identifier for which to get unique viewer statistics.
  • query_medias (required) — Provide one or more valid media identifiers separated by commas to target specific media items.
  • queryParameters — Optionally add additional query parameters, such as 'From' (begin date timestamp) to filter results by date.
  • returnFullResponse — Toggle to return the full API response instead of just the extracted data.

Output shape

a JSON object containing the count of unique viewers or the full API response if requested

The response includes unique viewer metrics for the specified media. If 'Return Full Response' is true, the entire API response is returned, otherwise the data is extracted and simplified. No pagination applies for this operation.

Examples

Example 1: Get unique viewers for a single media in a channel using OAuth2 authentication

Set authentication to OAuth2, specify the target channel and media IDs, provide media IDs in 'Medias' field, optionally add a 'From' date, and set 'Return Full Response' to false to receive processed data.

Links

Discussion