curl --request GET \
--url https://youtube.zilodata.com/api/v1/video/streaming-data \
--header 'x-api-key: <api-key>'{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"paginationToken": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": {
"formats": [
{
"itag": 18,
"mimeType": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
"hasVideo": true,
"hasAudio": true,
"quality": "360p",
"qualityLabel": "360p",
"container": "mp4",
"width": 640,
"height": 360,
"contentLength": 1400741,
"bitrate": 500000
}
],
"selectedFormat": {
"itag": 18,
"url": "https://rr8---sn-42u-i5olk.googlevideo.com/videoplayback?...",
"mimeType": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
"quality": "360p",
"container": "mp4",
"hasVideo": true,
"hasAudio": true,
"width": 640,
"height": 360,
"contentLength": 1400741
}
}
}Get streaming data and available formats for a YouTube video
curl --request GET \
--url https://youtube.zilodata.com/api/v1/video/streaming-data \
--header 'x-api-key: <api-key>'{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"paginationToken": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": {
"formats": [
{
"itag": 18,
"mimeType": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
"hasVideo": true,
"hasAudio": true,
"quality": "360p",
"qualityLabel": "360p",
"container": "mp4",
"width": 640,
"height": 360,
"contentLength": 1400741,
"bitrate": 500000
}
],
"selectedFormat": {
"itag": 18,
"url": "https://rr8---sn-42u-i5olk.googlevideo.com/videoplayback?...",
"mimeType": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
"quality": "360p",
"container": "mp4",
"hasVideo": true,
"hasAudio": true,
"width": 640,
"height": 360,
"contentLength": 1400741
}
}
}API Key
YouTube video ID
"kJQP7kiw5Fk"
Video quality preference (e.g., highest, best, 720p, 480p, 360p)
"highest"
Success
"Success"
200
Show child attributes
Array of available video formats
Show child attributes
Format itag identifier
18
MIME type of the format
"video/mp4; codecs=\"avc1.42001E, mp4a.40.2\""
Whether the format has video
true
Whether the format has audio
true
Video quality label
"360p"
Video quality label
"360p"
Container format (mp4, webm)
"mp4"
Video width in pixels
640
Video height in pixels
360
Content length in bytes
1400741
Bitrate in bits per second
500000
Selected format based on quality preference
Show child attributes
Format itag identifier
18
Download URL for the video
"https://rr8---sn-42u-i5olk.googlevideo.com/videoplayback?..."
MIME type of the format
"video/mp4; codecs=\"avc1.42001E, mp4a.40.2\""
Video quality
"360p"
Container format
"mp4"
Whether the format has video
true
Whether the format has audio
true
Video width in pixels
640
Video height in pixels
360
Content length in bytes
1400741
Was this page helpful?