Expand description
Roblox HTTP flows and strict launch-URI construction.
Structsยง
- Friend
Response ๐ - One online friend.
- Friends
Envelope ๐ - The online friends API response. Only IDs are read. Other details come from the users and presence APIs.
- Game
Creator ๐ - The user or group that owns a game.
- Game
Response ๐ - One gameโs details. Fields other than
idandnameare only used by place search. - Games
Envelope ๐ - The games API response.
- Online
Friend - A friend who is online, as the dashboard shows it.
- Place
Match - A game found by name, with the place a join opens.
- Player
Match - A player found by name.
- Player
Response ๐ - A user from the user search and username APIs.
- Players
Envelope ๐ - The username API response.
- Presence
Detail - Presence plus the game an in-game account is playing. Roblox omits the place for accounts the viewing session isnโt allowed to see.
- Presence
Envelope ๐ - The presence API response.
- Presence
Response ๐ - One userโs presence.
- Profile
- A Roblox userโs public profile.
- Relationship
- The session userโs relationship to another player. Fields Roblox didnโt answer are
None. - Search
Envelope ๐ - The game search response.
- Search
Game ๐ - One game in the search results.
- Search
Group ๐ - One group of search results. Only
Gamegroups are used. - Search
User ๐ - One user in the player search results.
- Thumbnail
Envelope ๐ - The thumbnails API response.
- Thumbnail
Response ๐ - One avatar or game icon image.
- Universe
Response ๐ - The place universe API response.
- User
Response ๐ - A user from the users API.
- User
Search ๐Envelope - The player search response, grouped like the game search.
- User
Search ๐Group - One group of player search results. Only
Usergroups are used. - Users
Envelope ๐ - The batch users API response.
Enumsยง
- Friend
Status - Where a friendship stands between the sessionโs user and another player.
- Join
Target - What a join opens: a place, or the game a player is in.
- Roblox
Error - Why a Roblox request failed. Displays as a user-facing message.
- Social
Action - A change to the session userโs relationship with another player.
Constantsยง
- AUTH_
URL ๐ - Returns the user a session belongs to.
- BLOCKING_
URL ๐ - Blocking, by user ID.
- FOLLOWING_
EXISTS_ ๐URL - Follow lookups for the sessionโs user.
- FRIENDS_
LIMIT ๐ - Most online friends shown. Robloxโs batch lookups accept about this many IDs.
- FRIENDS_
URL ๐ - Friends of a user, by ID. The online list requires that userโs session.
- GAMES_
URL ๐ - Game details, by universe ID.
- GAME_
ICONS_ ๐URL - Game icon images, by universe ID.
- PLACE_
LAUNCHER_ ๐URL - Roblox place launcher, passed to the client in the launch URI.
- PLACE_
UNIVERSE_ ๐URL - The universe a place belongs to.
- PLAYER_
SEARCH_ ๐LIMIT - Most players a player search returns.
- PRESENCE_
URL ๐ - User presence. Requires a signed-in session.
- SEARCH_
LIMIT ๐ - Most games a place search returns.
- SEARCH_
URL ๐ - Game search, as used by roblox.com. Undocumented, so failures return no results.
- THUMBNAIL_
URL ๐ - Avatar headshot images.
- TICKET_
URL ๐ - Issues one-time authentication tickets for launching the Roblox client.
- USERNAMES_
URL ๐ - Exact username lookup.
- USERS_
URL ๐ - Public user profiles, by ID.
Staticsยง
- TRACKER_
SEQUENCE ๐ - Keeps browser tracker IDs distinct for joins in the same instant.
Functionsยง
- apply_
game_ ๐details - Copies visits, creator, and other details onto the matching places.
- authenticated_
profile - Returns the profile of the user a session belongs to, validating the session.
- build_
join_ uri - Builds a
roblox-player:URI that joins the place, or follows the player into their game, as the sessionโs user. - change_
relationship - Changes the session userโs relationship with
user_id. - clean_
game_ ๐name - Trims a Roblox-supplied game name and caps its length for display.
- clean_
text ๐ - Trims Roblox-supplied text and caps its length. Blank text is
None. - cookie_
header ๐ - Builds the session cookie header, marked sensitive so it isnโt logged.
- fetch_
avatars ๐ - Looks up avatar headshots by user ID. Failures return no avatars because theyโre display-only.
- fetch_
game_ ๐details - Fetches the games API response for the matchesโ universes. Failures return
None. - fetch_
game_ ๐icons - Looks up icons for the matchesโ universes. Failures return no icons because theyโre display-only.
- fetch_
game_ names - Looks up game names by universe ID. Failures return no names because theyโre display-only.
- fetch_
online_ friends - Returns the online friends of the user a session belongs to, in-game friends first.
- fetch_
place_ universe - Finds the universe for a place.
Ok(None)means Roblox has no universe for that place. - fetch_
presence - Returns each requested userโs presence state.
- fetch_
presence_ details - Returns each requested userโs presence and game.
- fetch_
relationship - Returns the relationship between the sessionโs user,
account_id, anduser_id. Only the friend status is required. Follow and block lookups that fail areNone. - fetch_
users ๐ - Looks up public profiles by ID. Roblox leaves out banned users.
- join_
uri ๐ - Formats the launch URI for a ticket and target.
- merge_
friends ๐ - Combines profiles with presence, dropping friends who have since gone offline. Friends in game come first, then the rest, each sorted by name.
- parse_
blocked ๐ - Reads the is-blocked API, which answers with a bare boolean or an
isBlockedfield. - parse_
following ๐ - Reads whether the sessionโs user follows
user_idfrom the following-exists API. - parse_
friend_ ๐ids - Reads friend IDs, dropping duplicates and keeping at most
FRIENDS_LIMIT. - parse_
friend_ ๐status - Reads one userโs friend status from the friend statuses API.
- parse_
games_ ๐response - Keeps names for requested universes only.
- parse_
icon_ ๐response - Keeps
https:image URLs, by universe or user ID. - parse_
join_ target - Reads a join target:
@and a user ID, anhttps://www.roblox.com/users/<id>/โฆlink, or anythingparse_place_idaccepts. - parse_
place_ id - Extracts a place ID from digits or an
https://www.roblox.com/games/<id>/รขโฌยฆlink. - parse_
players ๐ - Reads players from the username lookup, then the player search, dropping duplicates, malformed
bodies, and invalid IDs, and keeping at most
PLAYER_SEARCH_LIMIT. - parse_
presence_ ๐response - Maps each requested user to a presence. Users missing from the response are
Unknown, and game details are kept only for users in game. - parse_
search_ ๐response - Keeps unsponsored games with a place and a name, without repeats, up to
SEARCH_LIMIT. - parse_
user_ ๐id - A user ID: 1 to 20 ASCII digits, not zero.
- profile_
with_ ๐avatar - Adds the userโs avatar headshot URL. A missing avatar isnโt an error.
- public_
profile - Returns a userโs public profile, rejecting a response for a different user.
- roblox_
error_ ๐reason - Reads the first error code and message from a Roblox error body, at most 200 characters.
- search_
places - Searches Roblox for games by name. Failures return no results because search is optional.
- search_
players - Finds players by username or display name with the search roblox.com uses, which isnโt rate limited like the users API search. An exact username match comes first. Failures return no results.
- search_
request ๐ - Roblox returns no results without a
sessionId. Any value works, so a fixed one keeps searches unlinkable. - send_
with_ ๐session - Sends a request with the session to a Roblox URL, retrying once with the CSRF token Roblox
returns on the first request. A verification challenge fails with
Challenged.