---
title: "Fetch usage for all stream targets"
method: GET
path: "/usage/stream_targets"
tags: ["usage"]
---

# Fetch usage for all stream targets

`GET /usage/stream_targets`

(Available from version 1.4) This operation returns detailed CDN usage data for all stream targets in the account. Defaults: from = last billing date, to = end of current day.

## Query parameters

- `from` string, date-time
- `to` string, date-time
- `next_page_key` string
- `per_page` integer

## Response `200`

Success

- UsageStreamTargets
  - `stream_targets` object — An array of stream targets and the details of their CDN usage.
    - `id` string, int32 — The unique alphanumeric string that identifies the stream target.
    - `name` string — A descriptive name for the stream target. Maximum 255 characters.
    - `archived` boolean — A value of **true** indicates that the stream target has been removed from Wowza Video.
    - `type` 'fastly' — The type of stream target. <br/> **fastly** is a Wowza CDN on Fastly target.
    - `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.
  - `pagination` object — Page information for the results generated by the query.
    - `payload_version` integer — The pagination object version.
    - `total_records` integer — The total number of records in the database that match the query.
    - `next_page_key` string — The key ID of the next page of results.
    - `per_page` integer — The number of records included on each page of results.
    - `total_pages` integer — The total number of pages generated by the query.
  - `limits` object — The time frame represented in the response.
    - `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)
