The VOD stream operations are deprecated in 2.0.Operations related to video on demand (VOD) stream analytics.
The VOD stream operations are deprecated in 2.0.
This operation returns detailed CDN usage data for all VOD streams in the account. CDN usage is the amount of data that went through every Fastly stream target, including unique viewers, viewing time, and bytes of content.
Success
object (Array of VOD streams) An array of VOD streams 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/v2.0/usage/vod_streams"
{- "vod_streams": [
- {
- "id": "poatq15",
- "name": "My VOD Stream on Mar 25, 2021 @ 05:09pm PDT",
- "archived": true,
- "type": "fastly",
- "viewing_seconds": 44925498,
- "viewing_bytes": 22886
}, - {
- "id": "nts8765",
- "name": "My Other VOD Stream on Mar 26, 2021 @ 01:15pm PDT",
- "archived": false,
- "type": "fastly",
- "viewing_seconds": 593275043,
- "viewing_bytes": 22886
}
], - "pagination": {
- "payload_version": "2.0",
- "total_records": 150,
- "next_page_key": "1yr9pykn",
- "per_page": 10,
- "total_pages": 15
}, - "limits": {
- "from": "2021-01-07T00:00:00.000Z",
- "to": "2021-10-05T00:00:00.000Z"
}
}
The VOD stream operations are deprecated in 2.0.
This operation returns CDN usage details for a specific VOD stream. CDN usage is the amount of data that went through every Fastly stream target, including unique viewers, viewing time, and bytes of content.
Success
object (vod_stream) | |
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/v2.0/usage/vod_streams/1ndgfc11"
{- "vod_stream": {
- "id": "tvctq36g",
- "name": "My VOD Stream",
- "archived": true,
- "type": "fastly",
- "viewing_seconds": 44925498,
- "viewing_bytes": 22886,
- "egress_bytes": 1783702,
- "egress_seconds": 97058,
- "trend": [
- {
- "sampled_at": "2019-10-01T08:00:00.000Z",
- "viewing_seconds": 45,
- "viewing_bytes": 20
}
]
}, - "limits": {
- "from": "2021-01-07T00:00:00.000Z",
- "to": "2021-10-05T00:00:00.000Z"
}
}
The VOD stream operations are deprecated in 2.0.
This operation returns a summary of CDN usage for all VOD streams in the account. CDN usage is the amount of data that went through every Fastly stream target, including unique viewers, viewing time, and bytes of content.
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/v2.0/usage/vod_streams/summary"
{- "summary": {
- "viewing_seconds": 67925498,
- "viewing_bytes": 22886,
- "egress_seconds": 6348,
- "egress_bytes": 1928166892
}, - "limits": {
- "from": "2021-01-07T00:00:00.000Z",
- "to": "2021-10-05T00:00:00.000Z"
}
}