Hello,
I am currently searching for the Roblox web API to get an user’s place visits.
Is there one? If yes, which is it?
Thanks in advance,
MeaxisDev
Hello,
I am currently searching for the Roblox web API to get an user’s place visits.
Is there one? If yes, which is it?
Thanks in advance,
MeaxisDev
Perhaps you could give the following API a universeId to get the place visits: https://games.roblox.com/docs#!/Games/get_v1_games
You could use it with HttpService if you want to get that in the game, otherwise;
https://games.roblox.com/docs#!/Games/get_v1_games_multiget_place_details ← Obtain UniverseID as you can only get the visits with the UniverseID.
https://games.roblox.com/docs#!/Games/get_v1_games ← Insert the UniverseID and then it’ll get this from this website:
https://games.roblox.com/v1/games?universeIds=1234567890
An example of what it gets is:
{
"data": [
{
"id": 1261892273,
"rootPlaceId": 3590456755,
"name": "Robloxian782556660's Place",
"description": "This is your very first Roblox creation. Check it out, then make it your own with Roblox Studio!",
"creator": {
"id": 1189278466,
"name": "princessfranz01",
"type": "User"
},
"price": null,
"allowedGearGenres": [
"All"
],
"allowedGearCategories": [],
"playing": 0,
"visits": 0,
"maxPlayers": 10,
"created": "2019-08-04T01:19:29.067Z",
"updated": "2019-08-04T01:19:29.097Z",
"studioAccessToApisAllowed": false,
"createVipServersAllowed": false,
"universeAvatarType": "MorphToR15",
"genre": "All"
}
]
}
There’s a more simple solution to getting the universeId (game.GameId) for a place. You can put the placeId in this API: https://api.roblox.com/universes/get-universe-containing-place?placeid={Place ID}
Hope this helps (:
@anon2793720 @Instantmeboys
Please note that using Roblox API requires usage of an internet proxy. Trying to directly call API from Roblox will result in an HTTP security error.
I’m fairly sure that’d be a violation of privacy somehow
There’s probably not a way to single out an individual like that
I’m not aware of any API’s to read the place visits of a user. You’d need to load their profile up and search for the element that displays the place visits and read that value.
I mean, it’s on the default Roblox profile.
Or count all visits of the user’s places.
I’m pretty sure roblox wouldn’t allow us to get an user’s places if they were actually private.
Oh I thought you meant the games a specific user has visited.
You’d use a combo of what’s posted above and this api
https://games.roblox.com/docs
games.roblox.com/v2/users/ userId /games
Yes, but I mean, for public places, like on the user’s roblox profile.