Bits cheered starting at a specific date?


#1

I need to create a list of what my viewers have cheered. I only want a list from this year (Jan 1, 2019) until today (or a specific date).

How can I do this? I would also like a way to see a persons total bits cheered during this time. IE: user1 cheers 100 ten times over 4 months, I want it to say user1 cheered 1000 bits.

Thank you for any help.


#2

I’ve been messing with this a few days and still coming up short.

Looking at the documentation for “Get Bits Leaderboard”

https://api.twitch.tv/helix/bits/leaderboard?count=100&period=year

Is what I need. How can I do this without being an app developer?

I dont have/need an app. I just need that response. Any way I can do that myself?

From the example on the dev docs page I can run
curl -H ‘Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y’
from my terminal but how can I get a token for my channel?

TIA, obviously I’m trying to cobble together something here with limited knowledge.


#3

You can’t make any API requests without creating an app to get a client-id, and not only that but the endpoint you want to use requires the channel you want to get data from go through an auth process and grant your app a token with the bits:read scope so that it has permission to access that endpoint.

If you want historical data through the API, your options are very limited. If you want to collect data going forward then your best option is to create an app that connects to Twitch Chat and listens for cheers on your channel, or channels that have given you permission, and log those cheers.