Wrong Username from API


#1

Hi everyone,
I’m calling the API to retrieve list of streamers from a specific game and listing it, its all okay to usernames that use the occidental alphabet, for oriental one its a bit different.

In this case a Korean username “리니지2주님” can not be accessed by
https://www.twitch.tv/리니지2주님 or url encoded
https://www.twitch.tv/리니지2주님

If I search it on twitch the username is not that returned by the API but “lovekg”

Sample of API Call:

GET https://api.twitch.tv/helix/streams?first=100&game_id=8901

May I’m doing something wrong, or the API is :slight_smile:
Thanks!


#2

This is a often reported issue! Did you search the forums first?

See also: https://github.com/twitchdev/issues/issues/3

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