# Host information

**URL:** <https://staging-discuss.dev.twitch.com/t/host-information/17152>\
**Category:** Chat and IRC\
**Created:** [August 15, 2018, 10:54pm UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152 "2018-08-15T22:54:47Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lilrex](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/lilrex/32/4782_2.png) [@Lilrex](https://staging-discuss.dev.twitch.com/u/Lilrex)\
**Post date:** [August 21, 2018, 3:28pm UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152/21 "2018-08-21T15:28:23Z")

</div>

so since you dont use broadcaster login chat, are you using PubSub to trigger all your events?

---

<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:** [August 21, 2018, 3:33pm UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152/22 "2018-08-21T15:33:34Z")

</div>

There is no host information on pubsub.

But for all other events I use a mix of IRC and PubSub and APICalls

---

<div class="post-metadata">

**Author:** ![Lilrex](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/lilrex/32/4782_2.png) [@Lilrex](https://staging-discuss.dev.twitch.com/u/Lilrex)\
**Post date:** [August 21, 2018, 3:33pm UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152/23 "2018-08-21T15:33:55Z")

</div>

thanks Barry

---

<div class="post-metadata">

**Author:** ![Lilrex](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/lilrex/32/4782_2.png) [@Lilrex](https://staging-discuss.dev.twitch.com/u/Lilrex)\
**Post date:** [August 22, 2018, 6:26am UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152/24 "2018-08-22T06:26:36Z")

</div>

Is it possible in Helix to lookup a stream by the username or someone or do i have to have their ID number?

this is how i am currently trying to do it.

twitchHelper.callTwitchAPI(’/streams?user\_login=’ + hostername, function (response)

i am wanting to get the viewer count of the channel so i can display the number of viewers coming from the host.

so can i do it by username or do i have to take the name and lookup the id so i can look up the stream?

---

<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:** [August 22, 2018, 7:35am UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152/25 "2018-08-22T07:35:19Z")

</div>

Please refer to the documentation

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

Yes you can specify a username or a userID consider also that a host does not neccasailty come from a stream that is live or still currently live

---

<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:** [September 21, 2018, 7:35am UTC](https://staging-discuss.dev.twitch.com/t/host-information/17152/26 "2018-09-21T07:35:19Z")

</div>

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

[Previous page](https://staging-discuss.dev.twitch.com/t/host-information/17152.md?page=1)
