Chat emotes endpoint not working for v5, example badges

GET https://api.twitch.tv/kraken/chat//badges gives no correct information for badges found on twitchemotes.com

Example for Dansgaming:

“subscriber”:{“image”:“https://static-cdn.jtvnw.net/jtv_user_pictures/badges/18374/18x18.png”}

Which is some very old pictures, not even found on https://twitchemotes.com/channel/DansGaming

Where are the correct badges / emotes found on twitchemotes?

It’s not documented but this is what I use.

https://badges.twitch.tv/v1/badges/channels/<channel_id>/display

2 Likes

Thanks. Typical. Is there a proper working endpoint too for all channel emotes?

Yes and no.

You already linked it.

As documented, V5 supports querying by emoteset eg.

https://api.twitch.tv/kraken/chat/emoticon_images?emotesets=46
https://api.twitch.tv/kraken/chat/emoticon_images?emotesets=24414
https://api.twitch.tv/kraken/chat/emoticon_images?emotesets=24415

and also supports comma separated lists:
https://api.twitch.tv/kraken/chat/emoticon_images?emotesets=46,24414,24415

You can get emote/emoteset information like so:

which should list every available emote as well as its corresponding emoteset.

A single channel will usually have multiple active emotesets, as with the tiered example above, while an increasing number of sets don’t belong to a channel product at all. The current Kraken API doesn’t map the emoteset ID -> channel name relationship in the way you’re thinking. This is something you would either have to do yourself, as others have done before you, or with credit to Twitchemotes.com if using their API.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.