Get a users blocked users

Is there possibly another endpoint other than api.roblox.com/userblock/getblockedusers ?
Any functions would also help;

3 Likes

Surprisingly, you can. I thought this would be a privacy concern, but it appears there is built in functionality to do this.

StarterGui::GetCore has a “GetBlockedUserIds” option.

local BlockedUserIds = game:GetService("StarterGui"):GetCore("GetBlockedUserIds")

https://developer.roblox.com/en-us/api-reference/function/StarterGui/GetCore

There is also “PlayerBlockedEvent” and “PlayerUnblockedEvent” which you can listen on for in the situation a player unblocks or blocks a player during runtime.

10 Likes

I didn’t actually realise this existed, thankyou kind stranger! I tought it would’ve been in a different service (e.g. FriendService)

1 Like

Yes! FriendService or a direct method of Player makes more sense than StarterGui…

I found the answer by looking at a thread posted by @BenSBk. I just opened his code and looked around to see how it works. Thanks Ben!

1 Like

The problem now is when I do it, I do it so quickly it isn’t even registered yet.
Edit: fixed it by making it yield

1 Like