This is an undocumented API that we just launched for the horde/alliance badge selection (and will be used for other badges in chat)
The way our chat parses this is loads this data on startup, and then when the
badges tag is encountered in a TMI privmsg tag, it looks at the key that matches it in this API response.
Current TMI tag format:
Would appreciate any feedback!