pyTwitchAPI

github.com/Teekeks/pyTwitchAPI Twitch Tools Open-source projectOpen source

A Python 3.7 compatible implementation of the Twitch API, EventSub and Chat

github.com/Teekeks/pyTwitchAPI
pyTwitchAPI homepage screenshot

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
Best for: Python developers building Twitch integrations that need API access, EventSub events, and chat bots.
Good for
  • 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
Watch out for
  • 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

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.

All 24 alternatives

DouyinLiveRecorder

github.com/ihmily/DouyinLiveRecorder

可循环值守和多人录制的直播录制软件,支持抖音、TikTok、Youtube、快手、虎牙、斗鱼、B站、小红书、pandatv、sooplive、flextv、popkontv、twitcasting、winktv、百度、微博、酷狗、17Live、Twitch、Acfun、CHZZK、shopee等40+平台直播录制

Open source
24 alternatives

Popular in Twitch Tools

Well-known listings from the same topic.

All 110

pyTwitchAPI FAQ

How do I install pyTwitchAPI?
Install using pip: pip install twitchAPI
Which authentication types are supported?
App authentication and user authentication. Which one is needed depends on the calls used, and authenticated calls have better rate limits.
How does user authentication work?
The user must click Authorize on the Twitch website. You can use online services to generate a token or use the built-in authenticator after adding http://localhost:17563 as an OAuth Redirect URL.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing