# \[Request\] - Check if a specific user is online

**URL:** <https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645>\
**Category:** Chat and IRC\
**Created:** [April 7, 2016, 10:12pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645 "2016-04-07T22:12:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Whois](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/whois/32/1562_2.png) [@Whois](https://discuss.dev.twitch.com/u/Whois)\
**Post date:** [April 7, 2016, 10:12pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/1 "2016-04-07T22:12:03Z")

</div>

Hi,  
I’m working on a chat bot that needs to know if a specific user is currently online in twitch (regardless to a specific channel), right now I’m creating an ‘Online Users’ list by periodically calling:

[https://tmi.twitch.tv/group/user/channel\_name/chatters](https://tmi.twitch.tv/group/user/channel_name/chatters) to generate a list per channel \* list of channels my bot is sitting in.  
that works, but is kinda of an overkill to what I need and not so reliable.

I’ve been looking online trying to find an undocumented api call to query user state (on twitch/offline) but I don’t think there is one…

Is there a way I can get access to query the API for this data?

Thanks!

---

<div class="post-metadata">

**Author:** ![tournymasterbotCurse](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tournymasterbotCurse](https://discuss.dev.twitch.com/u/tournymasterbotCurse)\
**Post date:** [April 7, 2016, 10:23pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/2 "2016-04-07T22:23:55Z")

</div>

No, you can’t find out whether a user is online or not. /Chatters only contains the users name if they are actually online and active in chat. If they have chat disabled you will not see them. There is no endpoint that is a yes/no flag for a user being online.

---

<div class="post-metadata">

**Author:** ![Whois](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/whois/32/1562_2.png) [@Whois](https://discuss.dev.twitch.com/u/Whois)\
**Post date:** [April 7, 2016, 10:32pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/3 "2016-04-07T22:32:34Z")

</div>

Thanks for the reply @tournymasterbotCurse I understand what /Chatters return, it’s ok and I can use it for what I need but its messy and I only need a small portion of the return users list.

Thanks for clarifying that currently there’s no API end point for user state.

This is a feature request… so I’m hoping twitch will be able to implement this on their end, but I’m not very optimistic about it 😄

---

<div class="post-metadata">

**Author:** ![tournymasterbotCurse](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tournymasterbotCurse](https://discuss.dev.twitch.com/u/tournymasterbotCurse)\
**Post date:** [April 7, 2016, 10:34pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/4 "2016-04-07T22:34:40Z")

</div>

Requests are generally better place at uservoice or github,

[https://twitch.uservoice.com/forums/310213-developers-api-embeds](https://twitch.uservoice.com/forums/310213-developers-api-embeds) (uservoice)  
[https://github.com/justintv/Twitch-API/issues](https://github.com/justintv/Twitch-API/issues) (github)

---

<div class="post-metadata">

**Author:** ![Whois](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/whois/32/1562_2.png) [@Whois](https://discuss.dev.twitch.com/u/Whois)\
**Post date:** [April 7, 2016, 10:39pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/5 "2016-04-07T22:39:21Z")

</div>

Cool Ill post it there. thanks!

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [April 7, 2016, 10:41pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/6 "2016-04-07T22:41:30Z")

</div>

It’s invasion of privacy…

If I’m NOT in your channel I don’t want you to know where I am (or even if I’m online at all).

And horrible to lookup if x is online anywhere on the site at all.  
Let alone wildly inaccurate.

---

<div class="post-metadata">

**Author:** ![Whois](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/whois/32/1562_2.png) [@Whois](https://discuss.dev.twitch.com/u/Whois)\
**Post date:** [April 7, 2016, 10:50pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/7 "2016-04-07T22:50:26Z")

</div>

@BarryCarlyon thanks for replying. my bot service users who logged in (via twitch) to my website, the reason I want this end point is so my bot will have access ONLY to users who signed up and are aware to the bot, therefore reducing privacy issues (which matter a lot to me and to my business logic).  
I’m not sure why you think it’s horrible to lookup if X is online… it’s what I need in order to serve data to my users.

Can you elaborate on this?

---

<div class="post-metadata">

**Author:** ![tournymasterbotCurse](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tournymasterbotCurse](https://discuss.dev.twitch.com/u/tournymasterbotCurse)\
**Post date:** [April 8, 2016, 3:09pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/8 "2016-04-08T15:09:29Z")

</div>

@BarryCarlyon In general I’d agree, but having the ability to gate with a user oauth token would provide legitimate services an avenue to get your online state. It would probably be pretty low on the priority queue if it was picked up at all, but I can see legitimate (and illegitimate) uses for the feature.

@Whois - Generally, defining ‘online’ is difficult. Usually the best you’re going to get is ‘did some action within the last time period’, which in terms of twitch, people lurk on chat all the time, leave video streams open, etc. None of it actually indicates the user is there, other than their computer exists in some fashion in the intarwebs.

---

<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:** [May 8, 2016, 3:09pm UTC](https://discuss.dev.twitch.com/t/request-check-if-a-specific-user-is-online/5645/9 "2016-05-08T15:09:35Z")

</div>

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