# Get Hosted channel name

**URL:** <https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943>\
**Category:** API\
**Created:** [February 8, 2019, 4:22pm UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943 "2019-02-08T16:22:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarXector](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/darxector/32/5730_2.png) [@DarXector](https://staging-discuss.dev.twitch.com/u/DarXector)\
**Post date:** [February 8, 2019, 4:22pm UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/1 "2019-02-08T16:22:56Z")

</div>

Hi,

I am currently looking for a way to get the the name or ID of a channel being hosted on some other channel.

Since I need this API to work in a browser the unofficial API that I found reference to on the forum:  
[https://tmi.twitch.tv/hosts?include\_logins=1&host=149747285](https://tmi.twitch.tv/hosts?include_logins=1&host=149747285)  
is not working for me because of CORS.

Is there any other way to do this?

Thank you.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 8, 2019, 4:38pm UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/2 "2019-02-08T16:38:30Z")

</div>

All of the host stuff is basically undocumented so whatever you find that works works and if it doesn’t doesn’t. Hence the no cors 😃

---

<div class="post-metadata">

**Author:** ![QuaranteTrois](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/quarantetrois/32/5766_2.png) [@QuaranteTrois](https://staging-discuss.dev.twitch.com/u/QuaranteTrois)\
**Post date:** [February 9, 2019, 1:23am UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/3 "2019-02-09T01:23:49Z")

</div>

It’s not the API but with IRC you got : `tmi.twitch.tv HOSTTARGET #<channel> :<hosted_channel_name>` when you connect on the channel.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 9, 2019, 10:27am UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/4 "2019-02-09T10:27:12Z")

</div>

> [@QuaranteTrois](#):
>
> It’s not the API but with IRC you got : `tmi.twitch.tv HOSTTARGET #<channel> :<hosted_channel_name>` when you connect on the channel.

That’s for outbound hosts, not inbound hosts

---

<div class="post-metadata">

**Author:** ![DarXector](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/darxector/32/5730_2.png) [@DarXector](https://staging-discuss.dev.twitch.com/u/DarXector)\
**Post date:** [February 11, 2019, 9:22am UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/5 "2019-02-11T09:22:54Z")

</div>

So, there is no way we can access this info using something like:

`https://api.twitch.tv/kraken/users/...`  
`https://api.twitch.tv/kraken/channels/...`  
`https://api.twitch.tv/kraken/streams/...`

Documented or not.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 11, 2019, 10:23am UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/6 "2019-02-11T10:23:25Z")

</div>

The hosts endpoint is sorta duplicated on

> [https://api.twitch.tv/kraken/channels/TwitchID/hosts](https://api.twitch.tv/kraken/channels/TwitchID/hosts)

but

> [https://tmi.twitch.tv/hosts?include\_logins=1&target=TWITCHID](https://tmi.twitch.tv/hosts?include_logins=1&target=TWITCHID)

is a little more useful

But again, it’s not a documented endpoint. There are no documented/supported endpoints to fetch host data over the API at this time. Which means it can break or change at any time

---

<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:** [March 13, 2019, 10:23am UTC](https://staging-discuss.dev.twitch.com/t/get-hosted-channel-name/19943/7 "2019-03-13T10:23:25Z")

</div>

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