API To check whether User is banned?

Hello,

Right now I am working with something where I am generating UserIDs randomly but trying to filtering them using information from APIs such as Friend count and checking their “Last Online” date, however it seems that this information can still be generated for users which were Terminated.

Is there some sort of API that can indicate whether a user has been terminated or not? This would help me filter them out.

Thank you.

The Users API has a /v1/users/ endpoint which returns a response with a boolean property of ‘isBanned’.

3 Likes

Use get useridfromname or use getnamefromuserid if nil then print(“Player banned”)

1 Like

Thanks a bunch I will try this out straight away!

@ThoseNamesAreGood will also try this out! Thank you.

1 Like

Seems like Names can also be generated from UserId’s of terminated Users.

Oh, i never knew… sorry about that.

How do you use this API? I’m curious.

1 Like