# Twitch API help

**URL:** <https://discuss.dev.twitch.com/t/twitch-api-help/16092>\
**Category:** Chat and IRC\
**Created:** [June 6, 2018, 3:51am UTC](https://discuss.dev.twitch.com/t/twitch-api-help/16092 "2018-06-06T03:51:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![irontriggor](https://avatars.discourse-cdn.com/v4/letter/i/9e8a1a/32.png) [@irontriggor](https://discuss.dev.twitch.com/u/irontriggor)\
**Post date:** [June 6, 2018, 3:51am UTC](https://discuss.dev.twitch.com/t/twitch-api-help/16092/1 "2018-06-06T03:51:31Z")

</div>

Hi everyone,

I’m new here. I’m a Masters student and starting to look for ideas for my final thesis. One idea came across my mind was to text mine twitch chat during Esports events and look at different patterns. Now I have to be honest I am not a good programmer and don’t have much software background.

All I wanted to know if Its possible to use twitch’s API and grab the chat from any channel I want? or only from my channel? I have been searching forums and youtube videos but not getting an unambiguous/straight answer.

Thanks

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [June 6, 2018, 6:00pm UTC](https://discuss.dev.twitch.com/t/twitch-api-help/16092/2 "2018-06-06T18:00:34Z")

</div>

You can connect to the Twitch Chat (TMI - Twitch Messaging Interface) via IRC or websockets. The conversational chat is not in the API.

---

<div class="post-metadata">

**Author:** ![irontriggor](https://avatars.discourse-cdn.com/v4/letter/i/9e8a1a/32.png) [@irontriggor](https://discuss.dev.twitch.com/u/irontriggor)\
**Post date:** [June 6, 2018, 6:47pm UTC](https://discuss.dev.twitch.com/t/twitch-api-help/16092/3 "2018-06-06T18:47:00Z")

</div>

Thanks Matt.

But it is possible right?

I’m trying to connect to a twitch channel’s chat (mainly an esports event) and grab the live chat. I will be using that for data analysis.

---

<div class="post-metadata">

**Author:** ![matt\_thomas](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/matt_thomas/32/710_2.png) [@matt\_thomas](https://discuss.dev.twitch.com/u/matt_thomas)\
**Post date:** [June 7, 2018, 12:12am UTC](https://discuss.dev.twitch.com/t/twitch-api-help/16092/4 "2018-06-07T00:12:41Z")

</div>

> **[Twitch.tv - Developer Agreement](https://www.twitch.tv/p/legal/developer-agreement/)**
>
> Twitch Developer Services Agreement This is an agreement between Twitch Interactive, Inc. and its affiliates (“Twitch”) and you (if registering a...

You will want to make sure you don’t breach this agreement. As you have described your usage I don’t think you would though.

---

<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:** [July 7, 2018, 12:12am UTC](https://discuss.dev.twitch.com/t/twitch-api-help/16092/5 "2018-07-07T00:12:49Z")

</div>

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