# Tmi.twitch.tv json

**URL:** <https://staging-discuss.dev.twitch.com/t/tmi-twitch-tv-json/15102>\
**Category:** API\
**Created:** [April 5, 2018, 9:47am UTC](https://staging-discuss.dev.twitch.com/t/tmi-twitch-tv-json/15102 "2018-04-05T09:47:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fontany\_Brandon](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@Fontany\_Brandon](https://staging-discuss.dev.twitch.com/u/Fontany_Brandon)\
**Post date:** [April 5, 2018, 9:47am UTC](https://staging-discuss.dev.twitch.com/t/tmi-twitch-tv-json/15102/1 "2018-04-05T09:47:28Z")

</div>

Hello,

I try to use the answer of a [tmi.twitch.tv](http://tmi.twitch.tv) request but javascript dont see it as Json answer !  
Let me explain :

My Javascript works correctly with answers of [api.twitch.tv](http://api.twitch.tv) but not with tmi answers.  
I have verified the tmi request with Restlet Client and is correct.

I use $.getJSON fonction

thank you in advance

---

<div class="post-metadata">

**Author:** ![george](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/george/32/120_2.png) [@george](https://staging-discuss.dev.twitch.com/u/george)\
**Post date:** [April 5, 2018, 9:56am UTC](https://staging-discuss.dev.twitch.com/t/tmi-twitch-tv-json/15102/2 "2018-04-05T09:56:35Z")

</div>

Since [tmi.twitch.tv](http://tmi.twitch.tv) is not intended for use by 3rd party devs it does not support CORS (access-control-allow-origin header) thus it cannot be accessed directly by a browser Javascript application. You will need to “proxy” the request through a server-side script if you need that data in Javascript.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [May 5, 2018, 9:56am UTC](https://staging-discuss.dev.twitch.com/t/tmi-twitch-tv-json/15102/3 "2018-05-05T09:56:46Z")

</div>

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