API can't provide user ID

If user was banned or something, I can’t get his ID via helix (returns {"data":[]}) or kraken (returns {"_total":0,"users":[ ]})

What is the call you are making to the API?
Which endpoint are you calling?

Sending a GET request to https://api.twitch.tv/helix/users?login= with headers (my client ID and Accept: application/vnd.twitchtv.v5+json)

This is for kraken only, you don’t need to for helix

That is correct, except you omitted the username, so no results will be returned.

(well an error

"error": "Bad Request",
"status": 400,
"message": "Invalid login names, emails or IDs in request"


So I assume you have omitted the name from the call, so whom are you looking up?

Also when you say banned, I assume you mean “banned from a channel” and not “banned from Twitch”

Random users from my ignore list, like: tytaniss, skiddlybo, dick420, h2p_efekt_motyla, crykinn2, etc

I assume you mean “banned from a channel” and not “banned from Twitch”

Sorry for not specify it, they got banned from Twitch. I can’t check their profiles like twitch.tv/username

If they are banned from Twitch, they generally don’t show in the API.

So it’s not broken.

TOS’ed/Twitch Banned users just don’t show up.

But then how I can remove a bunch of 600+ people from my ignore list, for example?
https://api.twitch.tv/kraken/users/<source user ID>/blocks/<target user ID> would work with ID only

You do do it via chat using the unignore command instead?

Which I bet will error as the user is TOS’ed

Or just don’t bother as they are TOS’ed (which could even be a temporary TOS-ing)

I just noticed that a large amount of ignored users can make Twitch really laggy.
Also just figured out that user block list contains all info about user (like getting info through https://api.twitch.tv/helix/users?login=), was he TOS’ed or not. So, if you want to get info about TOS’ed user, you can just add him to your ignore list and you will get same info. Thanks for replies!

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