How can I retrieve last added vods?
i.e.
_https://www.twitch.tv/gsl/profile has many 2016 vods.
However, when I call
curl -H ‘Accept: application/vnd.twitchtv.v3+json’ -X GET https://api.twitch.tv/kraken/channels/gsl/videos?limit=100&broadcasts=true
I don’t have any 2016 vods.
george
June 22, 2016, 9:56am
2
I’m seeing current vods at the endpoint you posted:
{
"title": "2016 Hot6 GSL Season 2",
"description": null,
"broadcast_id": 21970615952,
"broadcast_type": "archive",
"status": "recording",
"tag_list": "",
"views": 13,
"created_at": "2016-06-22T09:03:03Z",
"url": "https://www.twitch.tv/gsl/v/73844504",
"_id": "v73844504",
"recorded_at": "2016-06-22T09:02:41Z",
"game": "StarCraft II",
"length": 3198.80608151,
"preview": "https://static-cdn.jtvnw.net/v1/AUTH_system/vods_834d/gsl_21970615952_473497704/thumb/thumb0-320x240.jpg",
"thumbnails": [
{
"url": "https://static-cdn.jtvnw.net/v1/AUTH_system/vods_834d/gsl_21970615952_473497704/thumb/thumb0-320x240.jpg",
"type": "generated"
}
],
"fps": {
"audio_only": 0,
"chunked": 30,
"high": 30,
"low": 30,
"medium": 30,
"mobile": 30
},
"resolutions": {
"chunked": "1920x1080",
"high": "1280x720",
"low": "640x360",
"medium": "852x480",
"mobile": "400x226"
},
"_links": {
"self": "https://api.twitch.tv/kraken/videos/v73844504",
"channel": "https://api.twitch.tv/kraken/channels/gsl"
},
"channel": {
"name": "gsl",
"display_name": "GSL"
}
}
Agree with @george . I see 2016 VODs when I use this endpoint.
@george @DallasNChains
I curl
ed in os X, and I have only 2015-2014 vods. However, when I directly go to a browser with just a link everything looks fine, and I see 2016 data
.
terminal screenshot:
Is it because of the header message (curl’s -H flag)? I got it from github manual.
https://github.com/justintv/Twitch-API/blob/master/v3_resources/videos.md#get-channelschannelvideos
The header shouldn’t be a problem. I copy and pasted your command above and get all of your 2016 videos. zsh wouldn’t accept the URL without the quotes around it, so I added those.
@DallasNChains
It was quotes; I am good now. Thanks
In my defence, there are now quotes on the github page as well
system
Closed
July 22, 2016, 4:56pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.