Is there an API for place visits?

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

1 Like

Perhaps you could give the following API a universeId to get the place visits: https://games.roblox.com/docs#!/Games/get_v1_games

2 Likes

You could use it with HttpService if you want to get that in the game, otherwise;

{
  "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"
    }
  ]
}
7 Likes

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 (:

4 Likes

@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.

@instantmeboys @anon2793720 No, I meant the place visits for an user.

1 Like

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

1 Like

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.

1 Like

I mean, it’s on the default Roblox profile.

1 Like

Or count all visits of the user’s places.

1 Like

I’m pretty sure roblox wouldn’t allow us to get an user’s places if they were actually private.

1 Like

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

2 Likes

Yes, but I mean, for public places, like on the user’s roblox profile.