# How to find out if a channel is live using the API?

**URL:** <https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450>\
**Category:** API\
**Created:** [September 6, 2022, 10:02pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450 "2022-09-06T22:02:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Utekal](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/peter_utekal/32/19766_2.png) [@Peter\_Utekal](https://staging-discuss.dev.twitch.com/u/Peter_Utekal)\
**Post date:** [September 6, 2022, 10:02pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/1 "2022-09-06T22:02:15Z")

</div>

It is ridiculous that such simple task is completely unclear from the documentation, but I need help.

I need to be able to check if a certain channel is live or not.

What would the best way to do this be?

I tried using the EventSub, but after building the (ridiculously) complicated solution for such simple task I ran into issue with deleting the subscriptions.

---

<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:** [September 6, 2022, 10:07pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/2 "2022-09-06T22:07:09Z")

</div>

Call Get Streams

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

If the channel is live you get an array with data  
If the channel is not live you get an empty data array

---

<div class="post-metadata">

**Author:** ![Peter\_Utekal](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/peter_utekal/32/19766_2.png) [@Peter\_Utekal](https://staging-discuss.dev.twitch.com/u/Peter_Utekal)\
**Post date:** [September 6, 2022, 10:13pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/3 "2022-09-06T22:13:25Z")

</div>

Nice, thanks. What exactly is the user\_id though? if I get channel information I only get broadcaster\_id

---

<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:** [September 6, 2022, 10:13pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/4 "2022-09-06T22:13:58Z")

</div>

The user\_id is the broadcaster\_id

Different labels are used to help describe relationships between resources and entities

---

<div class="post-metadata">

**Author:** ![Peter\_Utekal](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/peter_utekal/32/19766_2.png) [@Peter\_Utekal](https://staging-discuss.dev.twitch.com/u/Peter_Utekal)\
**Post date:** [September 6, 2022, 10:18pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/5 "2022-09-06T22:18:18Z")

</div>

Thanks a lot mate you saved me a lot of time 👍 This is the most user un-friendly api I’ve ever used 😃

---

<div class="post-metadata">

**Author:** ![Dist](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://staging-discuss.dev.twitch.com/u/Dist)\
**Post date:** [September 6, 2022, 11:03pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/6 "2022-09-06T23:03:41Z")

</div>

If you have particular issues with the documentation please feel free to submit a feature request on UserVoice [https://twitch.uservoice.com/forums/310213-developers?category\_id=358000](https://twitch.uservoice.com/forums/310213-developers?category_id=358000) and include what changes you would like to see and how it will help you with what you’re struggling with.

---

<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:** [September 21, 2022, 5:33pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/7 "2022-09-21T17:33:02Z")

</div>

A post was split to a new topic: [Twitch/Discord bot help/features](https://staging-discuss.dev.twitch.com/t/twitch-discord-bot-help-features/40794)

---

<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:** [October 21, 2022, 5:33pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-find-out-if-a-channel-is-live-using-the-api/40450/8 "2022-10-21T17:33:39Z")

</div>

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