TwitchIO provides an asynchronous Python library for the Twitch API and EventSub.
pyTwitchAPI
A Python 3.7 compatible implementation of the Twitch API, EventSub and Chat

About pyTwitchAPI
pyTwitchAPI is an open-source Python library for Python 3.7 and newer that implements the Twitch Helix API, EventSub, and Chat. It installs with pip and supports app authentication and user authentication, token refresh, event listening, and chat bots that can join channels and respond to messages, commands, and subscriptions.
Use requires Twitch app credentials, and user authentication requires explicit authorization on the Twitch website. The built-in authenticator requires http://localhost:17563 to be set as an OAuth redirect URL.
Key features
- Implements Twitch Helix API calls in Python 3.7+
- Supports EventSub listening with callback in separate thread
- Supports multiple EventSub transports for different use cases
- Provides chat bot that joins channels and replies to messages
- Handles app authentication and user authentication with scopes
- Supports token refresh with optional refresh callbacks
- Covers Helix API, EventSub, and Chat in one Python package
- Installs with pip and supports Python 3.7 and newer
- Includes built-in user authenticator with token refresh and refresh callbacks
- Requires Python 3.7 or newer
- Requires Twitch app ID and secret, with explicit user authorization for user tokens
- Built-in authenticator requires configuring http://localhost:17563 as redirect URL
pyTwitchAPI at a glance
- Category
- Social & Communities › Twitch Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
pyTwitchAPI alternatives
Tools and sites you could use instead, ranked by how closely they match.
Twitch YouTube bot. Automatically make video compilations of the most viewed Twitch clips and upload them to YouTube using Python 3.
vidgear provides a Python framework for video processing that works across platforms.
Moderate Twitch chat with pajbot, a bot project described by its repository as a Twitch moderation tool.
可循环值守和多人录制的直播录制软件,支持抖音、TikTok、Youtube、快手、虎牙、斗鱼、B站、小红书、pandatv、sooplive、flextv、popkontv、twitcasting、winktv、百度、微博、酷狗、17Live、Twitch、Acfun、CHZZK、shopee等40+平台直播录制
Record Twitch broadcasts while they are live with this Twitch stream recorder project.
Popular in Twitch Tools
Well-known listings from the same topic.
pyTwitchAPI FAQ
How do I install pyTwitchAPI?
Which authentication types are supported?
How does user authentication work?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












