Get channel_id by user_id or display_name API V5

Hey,

For API 5 passing a username doesn’t work like that anymore I don’t believe.
For it to be passed in that form it aught to work as either :
https://api.twitch.tv/kraken/channels/<userID>
https://api.twitch.tv/kraken/users?login=<channelName>
The “Invalid format” response is due to it not being a userID.
Your use of “https://api.twitch.tv/kraken/channels/elynia_gaming” does still work for v3 though.

(While I’m at it, for future use by either yourself or someone who comes here at a later point, I might aswell say that for the v5 use, you can also get multiple channels returned using
https://api.twitch.tv/kraken/users?login=<channelName>,<channelName2>,<channelName3> … etc etc)

Hope I’ve been of some help!

edit: Fixed link terms not being visible
edit2+3: Accidentally put channel?channels instead of users?login … twice

2 Likes