I have twitch.tv/AndreMatosdeSousa, now how can I get the user ID of AndreMatosdeSousa?
the users API will let you do this.
https://api.twitch.tv/kraken/users?AndreMatosdeSousa
will return you JSON about the user, including their user id. A valid client id must be included in the headers. See https://dev.twitch.tv/docs/v5#translating-from-user-names-to-user-ids for more info
This endpoint doesn’t work if the channel/stream is offline though, right?
whistles and swaps streams for users
Totally copied the wrong url from me history
2 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.