Thanks for the info. That's unfortunate since I need to get the top 3 in each category (cheer, subs, donations).
I saw that there is an API endpoint for it (<https://api.streamelements.com/kappa/v2/session/<channel>/top>). If I use that endpoint with my own data (API Key and my Account ID) it works fine. I get the top 3 cheers for example.
If I now use the API Key and Account ID of the streamer, for who'm I'm creating this, I get an empty array. Kind of weird is that the streamer had donations in the past.
const accountId = "ID";
const apiKey =
"apikey";
const apiUrl = "https://api.streamelements.com/kappa/v2";
const types = ["cheer", "tip"];
const interval = "alltime";
const axios = require('axios').default;
axios
.get(
`${apiUrl}/sessions/${accountId}/top?limit=100&offset=0&interval=${interval}&type=cheer`,
{
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
}
)
.then((response) => {
console.log(response.data);
}).catch((error) => {
console.log(error);
})
^ that's now for testing purpose in Node.js.



.
if I want to add back ground color as same Twitch name on chat box overlay






that might be able to answer why it isn't working.



