(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.
Success
object (Array of stream targets) An array of stream targets and the details of their CDN usage. | |
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.10/usage/stream_targets"
{- "stream_targets": [
- {
- "id": "tvctq36g",
- "name": "My Stream Target",
- "archived": true,
- "type": "fastly",
- "unique_viewers": 17058,
- "viewing_seconds": 44925498,
- "avg_viewing_seconds": 2634,
- "viewing_bytes": 22886
}, - {
- "id": "bac1256",
- "name": "My Other Stream Target",
- "archived": false,
- "type": "fastly",
- "unique_viewers": 84756,
- "viewing_seconds": 593275043,
- "avg_viewing_seconds": 7000,
- "viewing_bytes": 22886
}
], - "pagination": {
- "payload_version": "2.0",
- "total_records": 269,
- "next_page_key": "2jj8syfl",
- "per_page": 10,
- "total_pages": 27
}, - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}
(Available from version 1.4) This operation returns CDN usage details for a specific stream target. Defaults: from = last billing date, to = end of current day.
Success
object (stream_target) | |
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.10/usage/stream_targets/2adffc17"
{- "stream_target": {
- "id": "tvctq36g",
- "name": "My Stream Target",
- "archived": true,
- "type": "fastly",
- "unique_viewers": 17058,
- "viewing_seconds": 44925498,
- "avg_viewing_seconds": 2634,
- "viewing_bytes": 22886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 22886
}
]
}, - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}
(Available from version 1.4) This operation returns a summary of CDN usage for all stream targets in the account. Defaults: from = last billing date, to = end of current day.
Success
object (summary) | |
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.10/usage/stream_targets/summary"
{- "summary": {
- "unique_viewers": 756058,
- "viewing_seconds": 67925498,
- "avg_viewing_seconds": 90,
- "viewing_bytes": 22886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 12886
}
]
}, - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}
(Available from version 1.4) This operation returns CDN usage details for a specific stream target by country. Defaults: from = last billing date, to = end of 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.10/usage/stream_targets/2adffc17/countries"
{- "countries": [
- {
- "code": "US",
- "name": "United States",
- "unique_viewers": 1,
- "viewing_seconds": 222,
- "avg_viewing_seconds": 222,
- "viewing_bytes": 12886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 12886
}
]
}, - {
- "code": "CA",
- "name": "Canada",
- "unique_viewers": 14,
- "viewing_seconds": 222,
- "avg_viewing_seconds": 16,
- "viewing_bytes": 22886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 22886
}
]
}
], - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}
(Available from version 1.4) This operation returns CDN usage details for a specific stream target by output rendition. Defaults: from = last billing date, to = end of current day.
Success
object (renditions) | |
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.10/usage/stream_targets/2adffc17/renditions"
{- "renditions": [
- {
- "name": "360",
- "unique_viewers": 14,
- "viewing_seconds": 222,
- "avg_viewing_seconds": 16,
- "viewing_bytes": 22886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 22886
}
]
}, - {
- "name": "720",
- "unique_viewers": 14,
- "viewing_seconds": 222,
- "avg_viewing_seconds": 16,
- "viewing_bytes": 22886,
- "zones": [
- {
- "name": "global",
- "type": "fastly",
- "viewing_bytes": 22886
}
]
}
], - "limits": {
- "from": "2019-11-07T00:00:00.000Z",
- "to": "2019-12-05T00:00:00.000Z"
}
}
(Available from version 1.4) This operation returns the number of current viewers for a stream via a specific stream target.
Note: This operation currently supports stream targets with a type of fastly only.
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.10/usage/stream_targets/2adffc17/live"
{- "stream_target": {
- "id": "tvctq36g",
- "unique_viewers": 7,
- "countries": [
- {
- "code": "US",
- "unique_viewers": 4
}, - {
- "code": "DE",
- "unique_viewers": 3
}
], - "viewer_trend": [
- {
- "sampled_at": "2022-01-26T12:01:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:02:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:03:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:04:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:05:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:06:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:07:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:08:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:09:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:10:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:11:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:12:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:13:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:14:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:15:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:16:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:17:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:18:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:19:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:20:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:21:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:22:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:23:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:24:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:25:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:26:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:27:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:28:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:29:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:30:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:31:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:32:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:33:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:34:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:35:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:36:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:37:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:38:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:39:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:40:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:41:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:42:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:43:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:44:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:45:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:46:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:47:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:48:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:49:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:50:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:51:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:52:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:53:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:54:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:55:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:56:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:57:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:58:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:59:00Z",
- "unique_viewers": 7
}, - {
- "sampled_at": "2022-01-26T12:60:00Z",
- "unique_viewers": 7
}
]
}
}