Returns Twitch channel-specific chat badges. These include subscriber badges with tier levels, bits badges, and other channel-specific badges.
Requires the connections.twitch permission to be enabled on your API key, and you must have a Twitch account connected to your TeamBattles account.
You must provide either a username or id query parameter to identify the channel.
| Parameter | Description | Example |
|---|---|---|
username | Twitch channel username | ninja |
id | Twitch broadcaster ID | 123456789 |
id is more stable since usernames can change. However, username is more user-friendly for manual testing.set_id is subscriber, use the channel’s custom images. For moderator, use the global badge.
Cache-Control: public, max-age=3600 header. Channel badges can change when streamers update their artwork, but caching for 1 hour is generally safe.
API key authentication. Generate an API key from Settings > Developer in the TeamBattles app. Format: tb_xxxxxxxx...
Twitch channel username (e.g., 'ninja'). Mutually exclusive with id.
Twitch broadcaster ID. Mutually exclusive with username.