# How do I get the user\_id, because the links I find don't seem to work

**URL:** <https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149>\
**Category:** API\
**Created:** [August 15, 2018, 7:19pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149 "2018-08-15T19:19:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jop\_Laane](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jop_laane/32/6409_2.png) [@Jop\_Laane](https://discuss.dev.twitch.com/u/Jop_Laane)\
**Post date:** [August 15, 2018, 7:19pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149/1 "2018-08-15T19:19:15Z")

</div>

I’ve been trying to simply find a channel’s user\_id. I’ve been googling and been finding links like these: `https://api.twitch.tv/v5/users?login=channel_name`. I always get `{"error":"Bad Request","status":400,"message":"No client id specified"}` when inserting this into the browser. If this is supposed to be done via curl only, I will have to find out how that works.  
I’d appreciate any help!

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [August 15, 2018, 7:22pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149/2 "2018-08-15T19:22:55Z")

</div>

You need to register an application via [dev.twitch.tv](http://dev.twitch.tv) to get a Client ID. This needs to be sent in the HTTP headers with the request. You cannot do this in browser without extensions.

---

<div class="post-metadata">

**Author:** ![Jop\_Laane](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jop_laane/32/6409_2.png) [@Jop\_Laane](https://discuss.dev.twitch.com/u/Jop_Laane)\
**Post date:** [August 15, 2018, 7:40pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149/3 "2018-08-15T19:40:51Z")

</div>

I have the client ID. How would I go about sending with the request? yes, I am very new to this part of programming.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [August 15, 2018, 7:45pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149/4 "2018-08-15T19:45:00Z")

</div>

That’s going to depend on the language and any libraries you might be using. I’d start from the language documentation for HTTP requests, if there is one, and move to looking into HTTP or Twitch libraries for the language after that.

---

<div class="post-metadata">

**Author:** ![Jop\_Laane](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jop_laane/32/6409_2.png) [@Jop\_Laane](https://discuss.dev.twitch.com/u/Jop_Laane)\
**Post date:** [August 15, 2018, 7:53pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149/5 "2018-08-15T19:53:06Z")

</div>

I am using NodeJS at the moment. I’ll have a look at it. If you have any experience with Nodejs, please enlighten me.

---

<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:** [September 14, 2018, 7:53pm UTC](https://discuss.dev.twitch.com/t/how-do-i-get-the-user-id-because-the-links-i-find-dont-seem-to-work/17149/6 "2018-09-14T19:53:08Z")

</div>

Closed on September 14, 2018, 7:53pm UTC

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