Fetch usage for all transcoders
GET {{baseUrl}}/usage/transcoders
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.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | 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 | | 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
| number | | 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
| number | | 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. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"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"}}