Murlidhar Fichadia
Murlidhar Fichadia

Reputation: 2609

Twitch API call to get affiliate related stats

I am looking for the list of api's I can use to get the Logged-in User's affiliate status (Path to Affiliate). I have seen some websites doing it but I checked Twitch official api version 5 and latest version of the api and I dont find api's that could help me retrieve this info.

There are 3 stats I am interested in:

  1. No. of hours streamed in past 30 days
  2. No. of days (different days) user streamed in past 30 days
  3. No. of viewers(average viewers) in hours streamed in past 30 days.

Check image below for reference. twitch stats for affiliate program

Upvotes: 0

Views: 255

Answers (2)

Barry Carlyon
Barry Carlyon

Reputation: 1058

You can't there are no documented endpoints that present this information for third parties to consume.

Based on back and forth comments:

You can achieve similar resutls by use the Streams API to collect the information yourself into a database. And then correlate it yourself.

You would probably use EventSub (a webhook type solution) to give you more accuarate stream down times.

But still long poll the streams endpoint to monitor the viewer count.

Upvotes: -1

henry3980
henry3980

Reputation: 1

im fairly new to this twitch and programming in genral but isnt there a way to pull the data off their servers the ame way it must pull it to show it you on your insights tab in the 30 day progress box?

Upvotes: -1

Related Questions