JMunoa
February 24, 2021, 10:38am
1
I want to get all the streamings that a user has made on his channel.
For this I am using the following endpoint: https://api.twitch.tv/helix/videos?user_id={user_id}&first=100&type=archive
With this I get the first 100 streamings of the user and to access the next 100 records I get the value of the variable “cursor” from the previous request and indicate it to the current request as follows:
https://api.twitch.tv/helix/videos?user_id={user_id}&first=100&type=archive&after={cursor}
It turns out that this second request does not return anything and I find it strange since the user I am testing with has more than 100 streamings retransmitted.
Is there any limitation in the API?
What is the User ID you are trying?
JMunoa
February 24, 2021, 2:19pm
3
I’m trying with this one: 83232866
It’s working fine here
This use only has 65 videos of type archive
But it returns a cursor anyway
Then “page 2” has no videos as expected
I checked this users actual Twitch page
Only has 65 past broadcasts
JMunoa
February 24, 2021, 2:29pm
5
But if you see this link: https://twitchtracker.com/ibai you can see how this user started streaming since 2017, how can it be that the api does not return me this information?
Becuase past broadcasts do not last for ever
And may have been manually deleted.
See also, The VOD’s help article
https://help.twitch.tv/s/article/video-on-demand?language=en_US
Specifially: Archives/past broadcasts, at most last 60 days*
*Some exemptions apply for a longer period
system
Closed
March 26, 2021, 2:31pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.