This operation shows the amount of usage (egress) for all transcoders in the account. The default time frame is from the last billing date to the end of the current day.
from | string <date-time> The start of the range of time you want to view. Specify YYYY-MM-DD HH:00:00 where HH is a 24-hour clock in UTC. The range doesn't include minutes and seconds and rounds minutes up to the hour. The maximum difference between from and to is 90 days. If you set the from query parameter without setting the to query parameter, the data returned will reflect 90 days starting at the from date, or data up to to the current day, whichever is shorter. You can also specify last_bill_date. Default: last billing date |
to | string <date-time> The end of the range of time you want to view. Specify YYYY-MM-DD HH:00:00 where HH is a 24-hour clock in UTC. The range doesn't include minutes and seconds and rounds minutes up to the hour. The maximum difference between from and to is 90 days. If you set the to query parameter without setting the from query parameter, the data returned will be from the past 90 days or from your last invoice date, whichever is shorter. You can also specify last_bill_date. Default: end of the current day |
page | integer Returns a paginated view of results from the HTTP request. Specify a positive integer to indicate which page of the results should be displayed. The default is 1. For more information and examples, see Get paginated query results with the Wowza Video REST API. |
per_page | integer For use with the page parameter. Indicates how many records should be included in a page of results. A valid value is any positive integer. The default and maximum value is 1000. |
Success
object | |
object Page information for the results generated by the query. | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/usage/transcoders"
{- "transcoders": [
- {
- "id": "bbrjj3ml",
- "name": "transcoder name",
- "archived": false,
- "transcoder_type": "transcoded",
- "billing_mode": "pay_as_you_go",
- "egress_bytes": 0,
- "egress_seconds": 44,
- "egress_seconds_additional_targets": 23
}, - {
- "id": "mertj8nd",
- "name": "my other transcoder",
- "archived": false,
- "transcoder_type": "transcoded",
- "billing_mode": "pay_as_you_go",
- "egress_bytes": 80384481,
- "egress_seconds": 158,
- "egress_seconds_additional_targets": 0
}
], - "pagination": {
- "payload_version": "1.0",
- "total_records": 2130,
- "page": 3,
- "per_page": 3,
- "total_pages": 710,
- "page_first_index": 6,
- "page_last_index": 8
}, - "limits": {
- "from": "2019-10-01T07:00:00.000Z",
- "to": "2019-10-16T11:00:00.000Z"
}
}
(Available from version 1.4) This operation shows the amount of usage (egress) for a specific transcoder. The default time frame is from the last billing date to the end of the current day.
Success
object | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/usage/transcoders/2adffc17"
{- "transcoder": {
- "id": "bbrjj3ml",
- "name": "transcoder name",
- "archived": false,
- "transcoder_type": "transcoded",
- "billing_mode": "pay_as_you_go",
- "egress_bytes": 0,
- "egress_seconds": 44,
- "egress_seconds_additional_targets": 23,
- "viewing_seconds": 90,
- "viewing_bytes": 49,
- "trend": [
- {
- "sampled_at": "2019-10-01T08:00:00.000Z",
- "viewing_seconds": 45,
- "viewing_bytes": 20
}
]
}, - "limits": {
- "from": "2019-10-01T07:00:00.000Z",
- "to": "2019-10-16T11:00:00.000Z"
}
}
(Available from version 1.4) This operation shows a summary of the amount of usage (egress) for all transcoders in the account. The default time frame is from the last billing date to the end of the current day.
Success
object | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/usage/transcoders/summary"
{- "summary": {
- "egress_bytes": 3000,
- "egress_seconds": 300,
- "configurations": [
- {
- "transcoder_type": "transcoded",
- "billing_mode": "pay_as_you_go",
- "egress_bytes": 1000,
- "egress_seconds": 200
}, - {
- "transcoder_type": "passthrough",
- "billing_mode": "twentyfour_seven",
- "egress_bytes": 2000,
- "egress_seconds": 100
}
]
}, - "limits": {
- "from": "2019-02-15T00:00:00.000Z",
- "to": "2019-09-24T00:00:00.000Z"
}
}
The GET /usage/transcoders/{id}/trend operation is deprecated and no longer available. To retrieve trend data for a transcoder, use GET /usage/transcoders/{id} endpoint.
Success
object (Array of trends) An array of trend data | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/usage/transcoders/2adffc17/trend"
{- "trend": [
- {
- "sampled_at": "2022-03-01T00:00:00.000Z",
- "unique_viewers": 358,
- "viewing_seconds": 1288800,
- "viewing_bytes": 8483993
}, - {
- "sampled_at": "2022-03-02T00:00:00.000Z",
- "unique_viewers": 75,
- "viewing_seconds": 270000,
- "viewing_bytes": 6937994
}, - {
- "sampled_at": "2022-03-03T00:00:00.000Z",
- "unique_viewers": 400,
- "viewing_seconds": 1440000,
- "viewing_bytes": 3958503
}
], - "limits": {
- "from": "2022-03-01T00:00:00.000Z",
- "to": "2022-03-05T00:00:00.000Z"
}
}
The GET /usage/transcoders/live operation is deprecated and no longer available. To retrieve live viewer data for a transcoder, use GET /analytics/viewers/live_streams/{id}.
Success
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/usage/transcoders/2adffc17/live"
{- "transcoder": {
- "id": "tvctq36g",
- "unique_viewers": 7,
- "countries": [
- {
- "code": "US",
- "unique_viewers": 4
}, - {
- "code": "DE",
- "unique_viewers": 3
}
], - "viewer_trend": [
- {
- "sampled_at": "2023-05-26T12:01:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:02:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:03:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:04:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:05:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:06:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:07:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:08:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:09:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:10:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:11:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:12:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:13:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:14:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:15:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:16:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:17:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:18:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:19:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:20:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:21:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:22:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:23:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:24:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:25:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:26:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:27:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:28:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:29:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:30:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:31:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:32:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:33:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:34:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:35:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:36:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:37:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:38:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:39:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:40:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:41:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:42:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:43:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:44:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:45:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:46:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:47:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:48:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:49:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:50:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:51:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:52:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:53:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:54:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:55:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:56:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:57:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:58:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:59:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2023-05-26T12:60:00Z",
- "unique_viewers": 7
}
]
}
}
The GET /usage/transcoders/{id}/countries operation is deprecated and no longer available. To retrieve usage data for a transcoder by country, use GET /analytics/viewers/live_streams/{id}.
from | string <date-time> The start of the range of time you want to view. Specify YYYY-MM-DD HH:00:00 where HH is a 24-hour clock in UTC. The range doesn't include minutes and seconds and rounds minutes up to the hour. The maximum difference between from and to is 90 days. If you set the from query parameter without setting the to query parameter, the data returned will reflect 90 days starting at the from date, or data up to to the current day, whichever is shorter. You can also specify last_bill_date. Default: last billing date |
to | string <date-time> The end of the range of time you want to view. Specify YYYY-MM-DD HH:00:00 where HH is a 24-hour clock in UTC. The range doesn't include minutes and seconds and rounds minutes up to the hour. The maximum difference between from and to is 90 days. If you set the to query parameter without setting the from query parameter, the data returned will be from the past 90 days or from your last invoice date, whichever is shorter. You can also specify last_bill_date. Default: end of the current day |
Success
object (countries) | |
object The time frame represented in the response. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/usage/transcoders/2adffc17/countries"
{- "countries": [
- {
- "code": "US",
- "name": "United States",
- "unique_viewers": 1,
- "viewing_seconds": 222,
- "avg_viewing_seconds": 222,
- "viewing_bytes": 12886
}, - {
- "code": "CA",
- "name": "Canada",
- "unique_viewers": 14,
- "viewing_seconds": 222,
- "avg_viewing_seconds": 16,
- "viewing_bytes": 22886
}
], - "limits": {
- "from": "2021-01-07T00:00:00.000Z",
- "to": "2021-10-05T00:00:00.000Z"
}
}