# Twitch Chat Non-IRC API

**URL:** <https://discuss.dev.twitch.com/t/twitch-chat-non-irc-api/6928>\
**Category:** Chat and IRC\
**Created:** [July 23, 2016, 12:18am UTC](https://discuss.dev.twitch.com/t/twitch-chat-non-irc-api/6928 "2016-07-23T00:18:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoWW](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/leoww/32/4011_2.png) [@LeoWW](https://discuss.dev.twitch.com/u/LeoWW)\
**Post date:** [July 23, 2016, 12:18am UTC](https://discuss.dev.twitch.com/t/twitch-chat-non-irc-api/6928/1 "2016-07-23T00:18:31Z")

</div>

Hi,

I’m trying to build a Twitch channel for the Roku platform and they have an SDK that does not have an IRC client nor web browsing capability. They handle XML and Json fine but nothing HTML/CSS/Javascript based. Is there a special API for Twitch chat that doesn’t involve IRC – like sending json responses with the 20 most recent messages? If not, how difficult would it be to build an IRC client?

I noticed that authentication on non-web devices is done by displaying a code on the device and having the user enter the code on [https://www.twitch.tv/activate](https://www.twitch.tv/activate). This is done to bypass the problem of having to redirect the user to the Twitch login page which is made for web browsers and thought there might be something similar for Twitch chat.

Any help/suggestions would be greatly appreciated!

Thank you!  
LeoWW

---

<div class="post-metadata">

**Author:** ![DallasNChains](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dallasnchains/32/1608_2.png) [@DallasNChains](https://discuss.dev.twitch.com/u/DallasNChains)\
**Post date:** [July 25, 2016, 3:05pm UTC](https://discuss.dev.twitch.com/t/twitch-chat-non-irc-api/6928/2 "2016-07-25T15:05:40Z")

</div>

Hey, @LeoWW!

IRC is our supported protocol for There is a [community-created project called TMI.js](https://tmijs.org/) that might help you out. Otherwise, rebuilding an IRC client would take some time. You’d have to read over the RFC and implement it.

---

<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:** [August 24, 2016, 3:05pm UTC](https://discuss.dev.twitch.com/t/twitch-chat-non-irc-api/6928/3 "2016-08-24T15:05:52Z")

</div>

Closed on August 24, 2016, 3:05pm UTC

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