Roblox Friends Web API Error

When using a GET request on certain Roblox users’ profiles, the web API gives an error:

{"errors":[{"code":1,"message":"The target user is invalid or does not exist.","userFacingMessage":"Something went wrong."}]}

For example, when accessing https://friends.roblox.com/v1/users/2532471179/friends, this error occurs. This does not happen very often. The user I am sending a GET request to does not have be blocked.
I am using a Windows 10 machine running the latest version of Chrome (User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36).

Furthermore, when testing on another browser (Microsoft’s Edge), the same error appears. Changing IP address did not resolve this problem either. Using the Roblox documentation page (https://create.roblox.com/docs/cloud/reference/domains/friends#friends_get_v1_users__userId__friends) gives the same error when using UserId 2532471179 with any user sort type.

Expected behavior

The API should be returning JSON data like this:

{"data":[{"id":1234567890,"name":"","displayName":""}]}
1 Like

The user you are trying to view the friend list for likely lives in a country where friend lists are hidden. Therefore this is not a bug.

I live in the UK and you cannot see my friend list either (I hate it because this law is only supposed to apply to children and I’m an adult)
https://friends.roblox.com/v1/users/55495469/friends

Unauthenticated:

Authenticated:

2 Likes

because as a developer, having connections and mutuals is the best way to meet new people and it doesn’t help that no one can see who my mutuals are. people are more likely to accept friend requests if they see mutuals or they see you have notable people added

example: roblox tells me who this user is friends with


however I cannot view this information for a friend living in the UK (it only shows a preview no names)

Hi!
Thanks for the information. You are probably correct in your assumption.
/r Why does Roblox always have to be so vague? The error message makes it appear like the user does not even exist.

Here’s the funny part about this, the friend count API still goes through! As per usual, Roblox being inconsistent.

https://friends.roblox.com/v1/users/55495469/friends/count returns

{"count":138}
1 Like

Great observation skills! Though, as I said, Roblox is “being inconsistent.” Roblox should limit all API requests for accounts that are restricted – just to be consistent.

(post deleted by author)