Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Globals > Consumption → Consumption

AI-generated

Summary

Retrieve consumption statistics for an Infomaniak account

Inputs

  • authentication — Authentication method: OAuth2 or API Key
  • query_from (required) — Starting date for the consumption period
  • query_account_id (required) — Identifier of the account to query
  • queryParameters — Additional query parameters such as interval and end date
  • returnFullResponse — If true, the full raw response is returned; otherwise only a summary is returned

Output shape

object containing consumption statistics

The shape varies with query parameters; may include per‑interval data and optional fields

Examples

Example 1: Authenticate via OAuth2 and fetch monthly consumption for account 12345 from 2024‑01‑01 to 2024‑01‑31

authentication=oauth2; query_from=2024-01-01; query_account_id=12345; query_per=month; query_to=1704067200; returnFullResponse=false

Example 2: Use API Key to get daily consumption for account 9876, ending at timestamp 1704153600

authentication=apiKey; query_from=2024-01-01; query_account_id=9876; query_per=day; query_to=1704153600; returnFullResponse=false

Example 3: Request full consumption response for account 5555 over a quarter period

authentication=oauth2; query_from=2023-10-01; query_account_id=5555; query_per=quarter; returnFullResponse=true

Links

Discussion