# Connecting to twitch api - Python 3

**URL:** <https://discuss.dev.twitch.com/t/connecting-to-twitch-api-python-3/24614>\
**Category:** Chat and IRC\
**Created:** [March 26, 2020, 12:36pm UTC](https://discuss.dev.twitch.com/t/connecting-to-twitch-api-python-3/24614 "2020-03-26T12:36:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fluxcabury](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Fluxcabury](https://discuss.dev.twitch.com/u/Fluxcabury)\
**Post date:** [March 26, 2020, 12:36pm UTC](https://discuss.dev.twitch.com/t/connecting-to-twitch-api-python-3/24614/1 "2020-03-26T12:36:53Z")

</div>

Hi Im trying to get my Twitch bot to connect to the Twitch API so I can edit the stream title and game from the bot. However after hours of looking through the documentation I have no clue. My bot can currently connect to Twitch and interact with the chat but it would be nice if I can get it to act more as a moderator.

So How do I get it to connect to the Twitch API with Python 3?

Thanks for any help 🙂

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [March 26, 2020, 12:38pm UTC](https://discuss.dev.twitch.com/t/connecting-to-twitch-api-python-3/24614/2 "2020-03-26T12:38:41Z")

</div>

Updating game/title is documented here

> **[Reference](https://dev.twitch.tv/docs/api/reference/)**
>
> Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv.

You need to be able to make HTTP Put requests from your code, or use an existing Python Twitchj Library to help.

You can’t update title/game “via chat” as chat doesn’t have that power, so it’s not a “stream” like chat is but just a HTTP PUT request

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [April 25, 2020, 12:38pm UTC](https://discuss.dev.twitch.com/t/connecting-to-twitch-api-python-3/24614/3 "2020-04-25T12:38:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
