# Getting twitch channel from id

**URL:** <https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259>\
**Category:** API\
**Created:** [May 22, 2019, 5:52am UTC](https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259 "2019-05-22T05:52:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswinrathees](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@aswinrathees](https://staging-discuss.dev.twitch.com/u/aswinrathees)\
**Post date:** [May 22, 2019, 5:52am UTC](https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259/1 "2019-05-22T05:52:00Z")

</div>

I need twitch channel details like channel name,channel id etc…All i have is the twitch username or name ,\_id etc…How can i get the channel details with this information ?

---

<div class="post-metadata">

**Author:** ![Breci](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/breci/32/5635_2.png) [@Breci](https://staging-discuss.dev.twitch.com/u/Breci)\
**Post date:** [May 22, 2019, 10:10am UTC](https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259/2 "2019-05-22T10:10:26Z")

</div>

You can use [https://dev.twitch.tv/docs/api/reference/#get-users](https://dev.twitch.tv/docs/api/reference/#get-users)  
Just use the “login” query param

---

<div class="post-metadata">

**Author:** ![aswinrathees](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@aswinrathees](https://staging-discuss.dev.twitch.com/u/aswinrathees)\
**Post date:** [May 22, 2019, 11:44am UTC](https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259/3 "2019-05-22T11:44:57Z")

</div>

Hi Breci,  
Thanks for your response.  
Right now, i have verified my twitch username and has received a json as below:

```auto
{
"mature":false,
"status":null,
"broadcaster_language":null,
"broadcaster_software":"",
"display_name":"aswinrathees",
"game":null,"language":"en",
"_id":150314191,
"name":"aswinrathees",
"created_at":"2017-03-13T12:05:31Z",
"updated_at":"2019-05-21T09:15:47Z",
"partner":false,
"logo":"https://static-cdn.jtvnw.net/user-default-pictures/b83b1794-7df9-4878-916c-88c2ad2e4f9f-profile_image-300x300.jpg",
"video_banner":null,
"profile_banner":null,
"profile_banner_background_color":null,
"url":"https://www.twitch.tv/aswinrathees",
"views":10,
"followers":0,
"_links":{"self":"https://api.twitch.tv/kraken/channels/aswinrathees",
"follows":"https://api.twitch.tv/kraken/channels/aswinrathees/follows",
"commercial":"https://api.twitch.tv/kraken/channels/aswinrathees/commercial",
"stream_key":"https://api.twitch.tv/kraken/channels/aswinrathees/stream_key",
"chat":"https://api.twitch.tv/kraken/chat/aswinrathees",
"features":"https://api.twitch.tv/kraken/channels/aswinrathees/features",
"subscriptions":"https://api.twitch.tv/kraken/channels/aswinrathees/subscriptions",
"editors":"https://api.twitch.tv/kraken/channels/aswinrathees/editors",
"teams":"https://api.twitch.tv/kraken/channels/aswinrathees/teams",
"videos":"https://api.twitch.tv/kraken/channels/aswinrathees/videos"},
"delay":null,"banner":null,
"background":null
}

```

My requirement is to get the live stream urls of any twitch users. is it possible to get live stream url from any of the above info like \_id or anything ?

---

<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:** [May 22, 2019, 3:27pm UTC](https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259/4 "2019-05-22T15:27:20Z")

</div>

The live stream URL for a user, if you have their username is

`https://twitch.tv/username`

No need to do a API request, if you have their username

---

<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:** [June 21, 2019, 3:27pm UTC](https://staging-discuss.dev.twitch.com/t/getting-twitch-channel-from-id/21259/5 "2019-06-21T15:27:26Z")

</div>

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