A couple days ago I noticed that the Clips API does not return some clips that were created on the channel.
For example:
https://api.twitch.tv/helix/clips?broadcaster_id=61325532&started_at=2019-10-01T00:00:00Z&ended_at=2019-10-02T00:00:00Z&first=100
missing this clip:
https://api.twitch.tv/helix/clips?id=EphemeralCleverChickenSpicyBoy
As a result, one of the channels I checked recently is missing about 15-20% of the clips
I also noticed this. I am trying to fetch all clips for a streamer, and it’s only returning about 1000 results (I’m running a loop that requests 100, the maximum, each time). That seemed low, so I checked for some recent clips, and some are definitely missing.
private static List<Clip> GetClips(ref string cursor)
{
string clipsURL = @"https://api.twitch.tv/helix/clips";
string clipsData = "broadcaster_id=" + GetBroadcasterID("barbarousking");
clipsData += "&after=" + cursor;
clipsData += "&first=100";
clipsData += "&started_at=" + "2016-01-01T00:00:00Z";
clipsData += "&ended_at=" + DateTime.Now.ToString("yyyy-MM-dd'T'HH:mm:ss.fffzzz", DateTimeFormatInfo.InvariantInfo);
GetClipsResponse responseObject;
HttpWebRequest clipsRequest = GenerateHTTPRequest(clipsURL, clipsData);
using (WebResponse clipsResponse = clipsRequest.GetResponse())
{
using (Stream stream = clipsResponse.GetResponseStream())
{
string clipsResponseString = new StreamReader(stream).ReadToEnd();
responseObject = JsonConvert.DeserializeObject<GetClipsResponse>(clipsResponseString);
cursor = responseObject.pagination.cursor;
}
}
return responseObject.data;
}
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.