A tiny, dependency-light Python client for Roblox's public, unauthenticated stats endpoints: game/universe visit counts and favorites, concurrent-player counts, group game rosters, and basic user/group lookups.
No login. No cookie. No .ROBLOSECURITY. Nothing that can get an account
banned, because there is no account involved -- these are the same read-only
JSON endpoints www.roblox.com itself calls to render a game page, called
directly.
This exists because every other "Roblox API" package on PyPI is built around the authenticated web API (trading, inventory, messaging -- things that need a login cookie and carry real ban risk for the account behind it). If you just want visit counts, favorite counts, or a group's list of games for analytics, none of that machinery is necessary, and pulling it in is pure risk for no benefit. This package is the other half: read-only, public, no credentials.
pip install roblox-public-statsfrom roblox_public_stats import get_games, get_group_games, get_group_info
# One or many universe IDs -> visits, playing, favoritedCount, etc.
games = get_games([383310974, 994732206]) # Adopt Me, Blox Fruits
for g in games:
print(g["name"], g["visits"], g["playing"])
# Every public game a group has published. NB: different shape than
# get_games() above -- this endpoint returns placeVisits, not visits/playing.
group_games = get_group_games(295182) # Uplift Games
for g in group_games:
print(g["name"], g["placeVisits"])
# Basic group metadata (name, member count, description)
info = get_group_info(295182)games.roblox.com/v1/games?universeIds=...-- batch game details (visits, playing, favoritedCount, maxPlayers, created/updated, genre)games.roblox.com/v2/groups/{groupId}/games-- paginated list of a group's published games (fields: id, name, placeVisits, created, updated -- a different shape than the endpoint above, confirmed against the live API)groups.roblox.com/v1/groups/{groupId}-- group name/description/member countusers.roblox.com/v1/users/{userId}-- basic user profile fields
All of these are the same endpoints your browser fetches when you load a public Roblox game or group page. Nothing here requires or accepts a Roblox session cookie.
Built out of a running series of small scripts written to answer real questions about Roblox game economics (visit-count power laws, how much of a studio's traffic sits in one title) -- see roblox-brainrot-genre-economics for the analysis this grew out of. Packaged up because the ad-hoc version of this code had been rewritten three separate times across different scripts.
MIT