JSON- Streams-MetaData - Any way to convert USER_ID into USER_NAME?

I’m able to retrieve games metadata containing the field user_id.
Results comeback as:

user_id: “39383020” <-- made up number

How do you go about converting this user_id into a user_name that can be typed into a url?

Thanks in advance!

https://api.twitch.tv/helix/users?id=39383020

Results in:

{
"data": [
{
"id": "39383020",
"login": "ironx011979",
"display_name": "ironx011979",
"type": "",
"broadcaster_type": "",
"description": "",
"profile_image_url": "https://static-cdn.jtvnw.net/user-default-pictures/4cbf10f1-bb9f-4f57-90e1-15bf06cfe6f5-profile_image-300x300.jpg",
"offline_image_url": "",
"view_count": 0
}
]
}

So we learn that “made up number” is actually ironx011979 at twitch.tv/ironx011979.

1 Like

Great thanks!
https://api.twitch.tv/helix/users?id=xxxx

Was exactly what I was looking for.

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