Duplicate Regex on emoticons endpoint

Hello!

I am working on pretty chat display for a streamer friend. It seems that the api endpoint https://api.twitch.tv/kraken/chat/emoticons has some regex fields that are the same.

Specifically “Kappa” is in a two places:
blowek’s channel and the global one.

Is this intended? I don’t think there should be duplicates in the response there as that makes it difficult to use?

Thanks!
Danny

You should use https://api.twitch.tv/kraken/chat/emoticon_images instead where possible. There are some legitimate cases where same regex exists twice under different emote sets, and yes, they can be complicated to handle. There aren’t many and new ones aren’t possible as far as I know.

It can happen so your application should be able to handle it gracefully. Most really old channels or an occasional bug in the system that doesn’t prepend the prefix.

You can check the set ID to see if it is a global emote or not.

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