Getting twitch channel from id

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 ?

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

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

{
"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 ?

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

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