Twitch Chat API

Manage chat settings, emotes, badges, and announcements

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /chat/emotes List a channel's emotes · Twitch Get Channel Emotes #
Ask an LLM
“Which emotes does a specific streamer have in their chat?”
“Can I get the emotes a broadcaster has uploaded?”
Tell an agent
List the emotes for channel {broadcaster_id}.
Show the emotes available to streamer {broadcaster_id}.
GET /chat/emotes/global List global Twitch emotes · Twitch Get Global Emotes #
Ask an LLM
“What global emotes can anyone use in Twitch chat?”
“Which site-wide emotes are available on Twitch regardless of channel?”
Tell an agent
List all global emotes using client ID {client_id}.
Show every site-wide Twitch emote for my app with client ID {client_id}.
GET /chat/emotes/set Get emotes for emote sets · Twitch Get Emote Sets #
Ask an LLM
“Can I fetch emotes for several emote sets at once?”
“What emotes belong to a particular emote set?”
Tell an agent
Get the emotes for emote set {emote_set_id}.
Load emotes from emote set {emote_set_id}.
GET /chat/badges List a channel's chat badges · Twitch Get Channel Chat Badges #
Ask an LLM
“Which chat badges does a streamer have?”
“Can I see the badges a broadcaster uses in chat?”
Tell an agent
List the chat badges for channel {broadcaster_id}.
Show the badges streamer {broadcaster_id} uses in chat.
GET /chat/badges/global List global Twitch chat badges · Twitch Get Global Chat Badges #
Ask an LLM
“What global chat badges does Twitch offer?”
“Which site-wide badge sets show up in every Twitch chat?”
Tell an agent
List all global chat badges using client ID {client_id}.
Show the site-wide Twitch badge sets for my app with client ID {client_id}.
GET /chat/settings Get a channel's chat settings · Twitch Get Chat Settings #
Ask an LLM
“What chat settings are enabled on a streamer's channel?”
“Can I check a broadcaster's emote mode and follower mode settings?”
Tell an agent
Get the chat settings for channel {broadcaster_id}.
Show chat settings for streamer {broadcaster_id} as moderator {moderator_id}.
PATCH /chat/settings Update a channel's chat settings · Twitch Update Chat Settings #
Ask an LLM
“How do I turn on follower-only chat for a streamer?”
“Can I change the chat delay or subscriber mode on a channel?”
Tell an agent
Set emote mode to {emote_mode} for channel {broadcaster_id} as moderator {moderator_id}.
Set follower mode to {follower_mode} for {broadcaster_id} with moderator {moderator_id}.
POST /chat/announcements Send an announcement to a streamer's chat · Twitch Send Chat Announcement #
Ask an LLM
“Can I post a colored announcement in a streamer's chat?”
“How do I broadcast a message to a broadcaster's chat room?”
Tell an agent
Send announcement {message} to channel {broadcaster_id} as moderator {moderator_id}.
Post {message} in chat {broadcaster_id} as moderator {moderator_id} in {color} color.
GET /chat/chatters List users in a streamer's chat · Twitch Get Chatters #
Ask an LLM
“Who is currently in a streamer's chat room?”
“Can I get the chat user list for a broadcaster?”
Tell an agent
List the chatters in channel {broadcaster_id}, moderator {moderator_id}.
Show the chat user list for streamer {broadcaster_id} as moderator {moderator_id}.
POST /chat/messages Send a message to a streamer's chat · Twitch Send Chat Message #
Ask an LLM
“How do I post a message in a streamer's chat room?”
“Can I reply to a specific chat message as a broadcaster?”
Tell an agent
Send {message} to channel {broadcaster_id} as user {sender_id}.
Post {message} in chat {broadcaster_id} from {sender_id}, replying to {reply_parent_message_id}.

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/twitch:twitch-chat-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

twitch-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twitch Helix Chat API
  description: The Twitch Helix API provides programmatic access to Twitch platform features including streams, users, videos, clips, channels, chat, subscriptions, moderation, polls, predictions, and more.
  version: '1.0'
  contact:
    name: Twitch Developer Support
    url: https://dev.twitch.tv/support/
  termsOfService: https://www.twitch.tv/p/legal/terms-of-service/
servers:
- url: https://api.twitch.tv/helix
  description: Twitch Helix API Production
security:
- oauth2: []
- appAccessToken: []
tags:
- name: Chat
  description: Manage chat settings, emotes, badges, and announcements
paths:
  /chat/emotes:
    get:
      operationId: getChannelEmotes
      summary: Twitch Get Channel Emotes
      description: Gets the list of emotes available for the specified channel.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: broadcaster_id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Channel emotes returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Emote'
                  template:
                    type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
  /chat/emotes/global:
    get:
      operationId: getGlobalEmotes
      summary: Twitch Get Global Emotes
      description: Gets all global emotes available on Twitch.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      responses:
        '200':
          description: Global emotes returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Emote'
                  template:
                    type: string
  /chat/emotes/set:
    get:
      operationId: getEmoteSets
      summary: Twitch Get Emote Sets
      description: Gets emotes for one or more specified emote sets.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: emote_set_id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Emote sets returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Emote'
                  template:
                    type: string
  /chat/badges:
    get:
      operationId: getChannelChatBadges
      summary: Twitch Get Channel Chat Badges
      description: Gets the chat badges for the specified channel.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: broadcaster_id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Chat badges returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChatBadgeSet'
  /chat/badges/global:
    get:
      operationId: getGlobalChatBadges
      summary: Twitch Get Global Chat Badges
      description: Gets Twitch's list of global chat badges.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      responses:
        '200':
          description: Global chat badges returned
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChatBadgeSet'
  /chat/settings:
    get:
      operationId: getChatSettings
      summary: Twitch Get Chat Settings
      description: Gets the chat settings for the specified broadcaster's channel.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: broadcaster_id
        in: query
        required: true
        schema:
          type: string
      - name: moderator_id
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Chat settings returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChatSettings'
    patch:
      operationId: updateChatSettings
      summary: Twitch Update Chat Settings
      description: Updates the chat settings for the specified broadcaster's channel.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: broadcaster_id
        in: query
        required: true
        schema:
          type: string
      - name: moderator_id
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatSettingsUpdate'
      responses:
        '200':
          description: Chat settings updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChatSettings'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /chat/announcements:
    post:
      operationId: sendChatAnnouncement
      summary: Twitch Send Chat Announcement
      description: Sends an announcement to the broadcaster's chat room.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: broadcaster_id
        in: query
        required: true
        schema:
          type: string
      - name: moderator_id
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - message
              properties:
                message:
                  type: string
                  description: The announcement message
                color:
                  type: string
                  enum:
                  - blue
                  - green
                  - orange
                  - purple
                  - primary
      responses:
        '204':
          description: Announcement sent successfully
        '400':
          $ref: '#/components/responses/BadRequest'
  /chat/chatters:
    get:
      operationId: getChatters
      summary: Twitch Get Chatters
      description: Gets the list of users in the specified broadcaster's chat.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      - name: broadcaster_id
        in: query
        required: true
        schema:
          type: string
      - name: moderator_id
        in: query
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/first'
      - $ref: '#/components/parameters/after'
      responses:
        '200':
          description: Chatters returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Chatter'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                  total:
                    type: integer
  /chat/messages:
    post:
      operationId: sendChatMessage
      summary: Twitch Send Chat Message
      description: Sends a message to the broadcaster's chat room.
      tags:
      - Chat
      parameters:
      - $ref: '#/components/parameters/clientId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - broadcaster_id
              - sender_id
              - message
              properties:
                broadcaster_id:
                  type: string
                sender_id:
                  type: string
                message:
                  type: string
                reply_parent_message_id:
                  type: string
      responses:
        '200':
          description: Message sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        message_id:
                          type: string
                        is_sent:
                          type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    ChatSettingsUpdate:
      type: object
      properties:
        emote_mode:
          type: boolean
        follower_mode:
          type: boolean
        follower_mode_duration:
          type: integer
        non_moderator_chat_delay:
          type: boolean
        non_moderator_chat_delay_duration:
          type: integer
        slow_mode:
          type: boolean
        slow_mode_wait_time:
          type: integer
        subscriber_mode:
          type: boolean
        unique_chat_mode:
          type: boolean
    Pagination:
      type: object
      properties:
        cursor:
          type: string
          description: Cursor value for pagination
    ChatBadgeSet:
      type: object
      properties:
        set_id:
          type: string
        versions:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              image_url_1x:
                type: string
              image_url_2x:
                type: string
              image_url_4x:
                type: string
              title:
                type: string
              description:
                type: string
              click_action:
                type: string
              click_url:
                type: string
    Emote:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        images:
          type: object
          properties:
            url_1x:
              type: string
            url_2x:
              type: string
            url_4x:
              type: string
        tier:
          type: string
        emote_type:
          type: string
          enum:
          - bitstier
          - follower
          - subscriptions
        emote_set_id:
          type: string
        format:
          type: array
          items:
            type: string
            enum:
            - static
            - animated
        scale:
          type: array
          items:
            type: string
            enum:
            - '1.0'
            - '2.0'
            - '3.0'
        theme_mode:
          type: array
          items:
            type: string
            enum:
            - light
            - dark
    Error:
      type: object
      properties:
        error:
          type: string
        status:
          type: integer
        message:
          type: string
    ChatSettings:
      type: object
      properties:
        broadcaster_id:
          type: string
        emote_mode:
          type: boolean
        follower_mode:
          type: boolean
        follower_mode_duration:
          type: integer
          nullable: true
        moderator_id:
          type: string
        non_moderator_chat_delay:
          type: boolean
        non_moderator_chat_delay_duration:
          type: integer
          nullable: true
        slow_mode:
          type: boolean
        slow_mode_wait_time:
          type: integer
          nullable: true
        subscriber_mode:
          type: boolean
        unique_chat_mode:
          type: boolean
    Chatter:
      type: object
      properties:
        user_id:
          type: string
        user_login:
          type: string
        user_name:
          type: string
  parameters:
    after:
      name: after
      in: query
      schema:
        type: string
      description: Cursor for forward pagination
    clientId:
      name: Client-Id
      in: header
      required: true
      schema:
        type: string
      description: Your registered application's client ID
    first:
      name: first
      in: query
      schema:
        type: integer
        default: 20
        maximum: 100
      description: Maximum number of items to return
  responses:
    BadRequest:
      description: The request was invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication required or token is invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      description: OAuth 2.0 Authorization Code Flow
      flows:
        authorizationCode:
          authorizationUrl: https://id.twitch.tv/oauth2/authorize
          tokenUrl: https://id.twitch.tv/oauth2/token
          scopes:
            analytics:read:extensions: View analytics data for extensions
            analytics:read:games: View analytics data for games
            bits:read: View Bits information
            channel:edit:commercial: Run commercials on a channel
            channel:manage:broadcast: Manage a channel's broadcast configuration
            channel:manage:moderators: Add and remove channel moderators
            channel:manage:polls: Manage a channel's polls
            channel:manage:predictions: Manage a channel's predictions
            channel:manage:raids: Manage a channel's raids
            channel:manage:redemptions: Manage channel points custom rewards and their redemptions
            channel:manage:schedule: Manage a channel's stream schedule
            channel:manage:videos: Manage a channel's videos
            channel:read:editors: View a channel's editors
            channel:read:goals: View a channel's goals
            channel:read:hype_train: View Hype Train information
            channel:read:polls: View a channel's polls
            channel:read:predictions: View a channel's predictions
            channel:read:redemptions: View channel points custom rewards and their redemptions
            channel:read:stream_key: Read an authorized user's stream key
            channel:read:subscriptions: View a channel's subscribers
            chat:edit: Send live stream chat messages
            chat:read: View live stream chat messages
            clips:edit: Create clips
            moderation:read: View a channel's moderation data
            moderator:manage:announcements: Send announcements in channels
            moderator:manage:automod: Manage messages held by AutoMod
            moderator:manage:banned_users: Ban and unban users
            moderator:manage:blocked_terms: Manage blocked terms
            moderator:manage:chat_messages: Delete chat messages
            moderator:manage:chat_settings: Manage chat settings
            moderator:read:chatters: View the chatters in a channel
            moderator:read:followers: Read the followers of a channel
            user:edit: Manage a user's account
            user:manage:blocked_users: Manage user's block list
            user:manage:whispers: Send whisper messages
            user:read:blocked_users: View a user's block list
            user:read:broadcast: View a user's broadcasting configuration
            user:read:email: View a user's email address
            user:read:follows: View the list of channels a user follows
            user:read:subscriptions: View a user's subscriptions
            whispers:read: View whisper messages
    appAccessToken:
      type: http
      scheme: bearer
      description: App Access Token obtained via Client Credentials grant
externalDocs:
  description: Twitch API Reference
  url: https://dev.twitch.tv/docs/api/reference