Fetch usage for a single transcoder
(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.
Path parameters
The unique alphanumeric string that identifies the transcoder.
Query parameters
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
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
Specify the data you want returned in the response. You can send a comma-separated list of values.
Valid value is: trend.
Example: trend
Response
Success
Example response
{
"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"
}
}