I have an API and I would like to call the new twitch API. Basically I want to get a URL of a stream, for example I want a streaming URL for the userId 1234 or URL streams for the game cs:go.
I found in the old version(v5) the endpoints
Get Stream by User and Get Live Streams returns a URL and when I click I have a video streaming.
But in the new API that I want to call, the endpoint
Get Streams has no URL in response, and there isn’t the endpoint get stream By User.
Finally how I get a streaming video URL in the new API?
Add the user_name to the end of the URL
var url = ‘
http://twitch.tv/’ + (resp.data.user_name).toLowerCase()
07:45PM - 06 Dec 19 UTC
Streams API returns the `user_name` as the users `displ
and for a “fix” when the user_name != login
This is a often reported issue! Did you search the forums first?
You can obtain the correct “login” by parsing the “thumbnail_url” or making an additional call to the users API with the user id from the streams endpoint
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.