---
title: "Fetch usage for an account"
method: GET
path: "/usage/account"
tags: ["usage_account"]
---

# Fetch usage for an account

`GET /usage/account`

(Available from version 1.8) This operation returns CDN usage details for the account related to the JSON web token used for API authentication. Defaults: from = last billing date, to = end of current day.

## Query parameters

- `filter` string
- `from` string, date-time
- `to` string, date-time
- `include` string

## Response `200`

Success

- UsageAccount
  - `account` object — Data for the account.
    - `id` string, int32 — The unique alphanumeric string that identifies an account.
    - `viewing_seconds` integer — The total length of time, in seconds, that the stream was played at the target. May be longer than the duration of the stream.
    - `viewing_bytes` integer — The amount of content, in bytes, that went through the stream target during the selected time frame.
    - `egress_seconds` integer — The length of time, in seconds, that Wowza CDN on Fastly pulled from storage during the selected time frame.
    - `egress_seconds_additional_targets` integer — The length of time, in seconds, that additional stream targets pulled from storage during the selected time frame. Subscriptions prices include egress for one target; additional targets incur additional charges.
    - `egress_bytes` integer — The amount of content, in bytes, that Wowza CDN on Fastly pulled from storage during the selected time frame.
    - `trend` object — An array of viewer trend data. The granularity of sampled data changes based on the from and to query values you use: Requests made for data within the past 30 days, return the following sample intervals: <ul><li>0 minutes to 3 hours - Samples returned per minute</li> <li>3 hours, 1 second to 24 hours - Samples returned per hour</li> <li>24 hours, 1 second to 90 days - Samples returned per day</li></ul> <strong>Defaults</strong>: from = last billing date, to = end of current day
      - `sampled_at` string, date-time — The date and time the trend data was sampled.
      - `viewing_seconds` integer — The total length of time, in seconds, that the stream was played at the target. May be longer than the duration of the stream.
      - `viewing_bytes` integer — The amount of content, in bytes, that went through the transcoder during the selected time frame.
  - `limits` object — The query parameters applied to the request.
    - `resources` object — The resources represented in the response.
      - `transcoders` string — The response includes transcoders.
      - `vod_streams` string — The response includes VOD streams.
    - `from` string, date-time — The start of the range of time represented in the response.
    - `to` string, date-time — The end of the range of time represented in the response.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `410` — Gone
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/wowza/apis/wowza-video-rest-api-reference-documentation.md) · [All operations](https://skmtc.net/wowza/apis/wowza-video-rest-api-reference-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wowza/wowza-video-rest-api-reference-documentation/revisions/157b6f741f2a/schema)
