Hi Everyone,
I want some Bit revenue data, viewers and unique viewers from twitch, Do I get it from twitch.
Hi Everyone,
I want some Bit revenue data, viewers and unique viewers from twitch, Do I get it from twitch.
If you are a developer of an extension. You can use this endpoint for bits usage in the extension:
Otherwise no, there are no historical API’s of use. You can collect some data in real time from chat/the API and store it yourself.
There is some information in the dashboard, but it’s not API’able
Thanks for the reply,
Do I need a paid account for accessing api’s
No
Thanks alot for your answers
Hi
One more thing i have to ask that, I have created the twitch account and get the ClientId, How would I get the Auth token, When I am using this
https://id.twitch.tv/oauth2/authorize
?client_id=<your client ID>
&redirect_uri=<your registered redirect URI>
&response_type=<type>
&scope=<space-separated list of scopes>
Getting 400
Could you please help me with this
Twitch uses standard oAuth.
For a user token the steps are, normally
code
from the URLThanks Alot
So, If I want the bits data and Viewers data, And if I have the Twitch account Client Id, Then I will be able to create Token with the same, and with that Auth token I will be able to access these api’s
https://api.twitch.tv/helix/bits/leaderboard
https://api.twitch.tv/helix/extensions/transactions
Or is there anything else required to access this data.
As long as the Token is for the correct type and with the relevant scopes and with correct permissions from the casters you wish to collect.
You’ll need an Access Token from the channel/users that you intend to collect, you can’t get my leaderboard, without permission/an access key from me
Again, the extensions/transactions endpoint is JUST FOR YOUR OWN EXTENSIONS THAT YOU ARE A DEVELOPER OF, given this thread I don’t think you’ve built and released an extension that is using bits yet. I included it for completeness
Hi
I am getting this data
{
“data”: [],
“date_range”: {
“started_at”: “”,
“ended_at”: “”
},
“total”: 0
}
When I hit the end point: https://api.twitch.tv/helix/bits/leaderboard
How could I got the Bit data.
That would suggest for the channel that you fetched information for, there has been no bits usage.
This:
https://api.twitch.tv/helix/bits/leaderboard?period=all&count=100
Gives you the top 100 leaderboard entries for all time on the authenticated channel, but it doesn’t support pagination, so you can’t get the next page. If you specify only
https://api.twitch.tv/helix/bits/leaderboard
This means
https://api.twitch.tv/helix/bits/leaderboard?period=all&count=10
as the documentation states
Is the best method to collect bits usage really.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.