Roblox.py is a API wrapper for the Roblox API written in the Python programming language. It was developed in late 2019, and continues to be supported to this day.
- getAsset(assetId) - gets the asset of the given ID (returns a "Asset" object)
- getGroup(groupId) - gets the group of the given ID (returns a "Group" object)
- getUser(userId) - gets the user of the given ID (returns a "User" object)
- name - the name of the asset
- id - the AssetId of the asset
- productId - the product ID of the asset
- description - the description of the asset
- assetTypeId - the ID for the type of asset
- creator - the creator of the asset
- creatorType - the type of creator of the asset ("User" or "Group")
- iconImageAssetId - the Asset ID for the icon of the asset
- created - the timestamp of creation of the asset
- updated - the timestamp of the last update of the asset
- priceInRobux - the price of robux the asset
- sales - the amount of sales the asset has had
- isNew - whether or not the asset is new
- isForSale - whether or not the asset is for sale
- isPublicDomain
- isLimited - whether or not the asset is Limited
- isLimitedUnique - whether or not the asset is Limited Unique
- remaining - the amount of remaining copies of the asset
- minimumMembershipLevel - the minimum membership level required to purchase the asset
- contentTypeRatingId - the content type rating ID for the asset
- getOwners(sortOrder, limit) - gets all the owners of the asset within the limit, and in the given sort order "Asc" or "Desc" (returns an array of "User" objects)
- name - the name of the group
- id - the ID of the group
- owner - the owner of the group
- emblemUrl - the URL for the emblem of the group
- description - the description of the group
- roles -an array of "GroupRole" objects of the group
- getAllies() - gets all the allies of the group (returns an array of "Group" objects)
- getEnemies() - gets all the enemies of the group (returns an array of "Group" objects)
- getPosts(sortOrder, limit) - gets all the posts of the group within the limit, and in the given sort order "Asc" or "Desc" (returns an array of "GroupPost" objects)
- name - the name of the group role
- rank - the rank of the group role
- id - the ID of the group
- role - the role of the player ("GroupRole" object)
- isInClan - whether or not the user is in the clan
- isPrimary - whether or not the group is the user's primary group
- id - the ID of the post
- user - the author of the post ("User" object)
- role - the role of the author of the post ("GroupRole")
- body - the body of the post
- created - when the post was created
- updated - when the post was last updated
- id - the User ID of the user
- username - the username of the user
- avatarUrl - the url for the avatar of the user
- avatarFinal - whether or not the current avatar is the final one
- isOnline - whether or not the user is currently online on the platform
- getFriends() - gets all the friends of the user (returns an array of "User" objects)
- isFriendsWith(user) - gets the friendship status of the user of the object with the given user (returns a bool)
- canManageAsset(asset) - checks whether or not the user can manage the asset (returns a bool)
- getGroups() - gets all the groups the player is in (returns an array of "UserGroupStatus" objects)
- hasAsset(asset) - checks to see if the user has the asset (returns a bool)
- getWornAssets() - gets all the assets that is being worn by the user (returns an array of "Asset" objects)
user = Users.getUser(userId) # returns a "User" object
limitedItems = []
assetsOwned = user.getAssets() #returns an array of "Asset" objects
for asset in assetsOwned:
if asset.isLimited or asset.isLimitedUnique:
limitedItems.append(asset)
print(user.username + " owns " + len(limitedItems) + " limited items on Roblox!")user = Users.getUser(userId) # returns a "User" object
groups = []
groupsIn = user.getGroups() #returns an array of "UserGroupStatus" objects
for groupStatus in groupsIn:
group = Group(groupStatus.id)
groups.append(group
print(user.username + " is in " + len(groups) + " group(s)!")user = Groups.getGroup(groupId) # returns a "Group" object
enemies = group.getEnemies() #returns an array of "Group" objects
print(group.name + " has " + len(enemies) + " enemies on Roblox!")
if len(enemies) > 10:
print("Woah! That's a lot of enemies! Better not mess with " + group.creator.username + "!")