Roboat
The best Python wrapper for the Roblox API — OAuth, async, typed models, datastores, events, marketplace tools
Install / Use
/learn @Addi9000/RoboatREADME
<br/><br/>
<br/> </div><div align="center">
⚡ Install
</div>pip install roboat-utils
pip install "roboat-utils[async]" # async support via aiohttp
pip install "roboat-utils[all]" # everything + test tools
<div align="center">
🚀 Quick Start
</div>from roboat import RoboatClient
client = RoboatClient()
# User lookup
user = client.users.get_user(156)
print(user)
# Builderman (@builderman) ✓ [ID: 156]
# Game stats
game = client.games.get_game(2753915549)
print(f"{game.name} — {game.visits:,} visits | {game.playing:,} playing")
# Catalog search
items = client.catalog.search(keyword="fedora", category="Accessories", sort_type="Sales")
for item in items:
print(f"{item.name} — {item.price}R$")
<div align="center">
🖥️ Interactive Terminal
</div>roboat
# or: python -m roboat
____ _ _ _ ____ ___
| _ \ ___ | |__ | | _____ __/ \ | _ \_ _|
| |_) / _ \| '_ \| |/ _ \ \/ / _ \ | |_) | |
| _ < (_) | |_) | | (_) > < ___ \| __/| |
|_| \_\___/|_.__/|_|\___/_/\_/_/ \_|_| |___|
roboat v2.1.0 — roboat.pro — type 'help' to begin
» start 156
» auth
» game 2753915549
» inventory 156
» rap 156
» likes 2753915549
» friends 156
<div align="center">
🔐 OAuth Authentication
</div>roboat uses Roblox OAuth 2.0 — no cookie extraction, no browser DevTools.
from roboat import OAuthManager, RoboatClient
manager = OAuthManager(
on_success=lambda token: print("✅ Authenticated!"),
on_failure=lambda err: print(f"❌ Failed: {err}"),
timeout=120,
)
token = manager.authenticate() # opens browser, 120s countdown
if token:
client = RoboatClient(oauth_token=token)
print(f"Logged in as {client.username()}")
In the terminal, type auth. A browser window opens, you log in, and you're done. A live 120-second countdown is shown while waiting.
<div align="center">
📦 Repository Structure
</div>roboat/
├── roboat/ Source package (35 modules)
│ ├── utils/ Cache, rate limiter, paginator
│ └── *.py All API modules
├── examples/ 8 ready-to-run example scripts
├── tests/ Unit tests — no network required
├── benchmarks/ Performance benchmarks
├── docs/ Architecture, endpoints, models, FAQ
├── tools/ CLI utilities (bulk lookup, RAP snapshot, game monitor)
├── integrations/ Discord bot, Flask REST API
├── typestubs/ .pyi type stubs for IDE autocomplete
├── scripts/ Dev scripts (env check, stub generator)
└── .github/ CI/CD workflows, issue templates
<div align="center">
🧠 Clients
</div>Sync — RoboatClient
from roboat import RoboatClient, ClientBuilder
# Simple
client = RoboatClient()
# Builder — full control
client = (
ClientBuilder()
.set_oauth_token("TOKEN")
.set_timeout(15)
.set_cache_ttl(60) # cache responses for 60 seconds
.set_rate_limit(10) # max 10 requests/second
.set_proxy("http://proxy:8080")
.build()
)
Async — AsyncRoboatClient
import asyncio
from roboat import AsyncRoboatClient
async def main():
async with AsyncRoboatClient() as client:
# Parallel fetch — all at once
game, votes, icons = await asyncio.gather(
client.games.get_game(2753915549),
client.games.get_votes([2753915549]),
client.thumbnails.get_game_icons([2753915549]),
)
# Bulk fetch 500 users — auto-chunked into batches of 100
users = await client.users.get_users_by_ids(list(range(1, 501)))
print(f"Fetched {len(users)} users")
asyncio.run(main())
Open Cloud — RoboatCloudClient
from roboat import RoboatCloudClient
cloud = RoboatCloudClient(api_key="roblox-KEY-xxxxx")
cloud.datastores.set(universe_id, "PlayerData", "player_1", {"coins": 500})
<div align="center">
📡 API Coverage
</div> <div align="center">| API | Endpoint | Methods |
|:---|:---|:---:|
| Users | users.roblox.com | 7 |
| Games | games.roblox.com | 15 |
| Catalog | catalog.roblox.com | 8 |
| Groups | groups.roblox.com | 22 |
| Friends | friends.roblox.com | 11 |
| Thumbnails | thumbnails.roblox.com | 7 |
| Badges | badges.roblox.com | 4 |
| Economy | economy.roblox.com | 5 |
| Presence | presence.roblox.com | 3 |
| Avatar | avatar.roblox.com | 5 |
| Trades | trades.roblox.com | 7 |
| Messages | privatemessages.roblox.com | 7 |
| Inventory | inventory.roblox.com | 8 |
| Develop | develop.roblox.com | 14 |
| DataStores | apis.roblox.com/datastores | 7 |
| Ordered DS | apis.roblox.com/ordered-data-stores | 5 |
| Messaging | apis.roblox.com/messaging-service | 3 |
| Bans | apis.roblox.com/cloud/v2 | 4 |
| Notifications | apis.roblox.com/cloud/v2 | 3 |
| Asset Upload | apis.roblox.com/assets | 5 |
<div align="center">
👤 Users
</div>user = client.users.get_user(156)
users = client.users.get_users_by_ids([1, 156, 261]) # up to 100 at once
users = client.users.get_users_by_usernames(["Roblox", "builderman"])
page = client.users.search_users("builderman", limit=10)
page = client.users.get_username_history(156)
ok = client.users.validate_username("mycoolname")
<div align="center">
🎮 Games
</div>game = client.games.get_game(2753915549)
game = client.games.get_game_from_place(6872265039)
visits = client.games.get_visits([2753915549, 286090429]) # {id: count}
votes = client.games.get_votes([2753915549])
servers = client.games.get_servers(6872265039, limit=10)
page = client.games.search_games("obby", limit=20)
page = client.games.get_user_games(156)
page = client.games.get_group_games(2868472)
count = client.games.get_favorite_count(2753915549)
<div align="center">
👥 Groups
</div>group = client.groups.get_group(7)
roles = client.groups.get_roles(7)
role = client.groups.get_role_by_name(7, "Member")
members = client.groups.get_members(7, limit=100)
is_in = client.groups.is_member(7, user_id=156)
# Management (auth required)
client.groups.set_member_role(7, user_id=1234, role_id=role.id)
client.groups.kick_member(7, user_id=1234)
client.groups.post_shout(7, "Welcome everyone!")
client.groups.accept_all_join_requests(7) # accepts ALL pending
client.groups.pay_out(7, user_id=1234, amount=500)
<div align="center">
💰 Marketplace & Economy
</div>from roboat.marketplace import MarketplaceAPI
market = MarketplaceAPI(client)
# Full limited data — RAP, trend, remaining supply
data = market.get_limited_data(1365767)
print(f"{data.name} RAP: {data.recent_average_price:,}R$ Trend: {data.price_trend}")
# Profit estimator — includes Roblox 30% fee
profit = market.estimate_resale_profit(1365767, purchase_price=12000)
print(f"Net profit: {profit.estimated_profit:,}R$ ROI: {profit.roi_percent}%")
# Find underpriced limiteds (below 85% of RAP)
deals = market.find_underpriced_limiteds([1365767, 1028606, 19027209])
# RAP tracker — snapshot and diff over time
tracker = market.create_rap_tracker([1365767, 1028606])
tracker.snapshot()
# ... wait some time ...
tracker.snapshot()
print(tracker.summary())
<div align="center">
🤝 Social Graph
</div>from roboat.social import SocialGraph
sg = SocialGraph(client)
mutuals = sg.mutual_friends(156, 261)
is_following = sg.does_follow(follower_id=156, target_id=261)
snap = sg.presence_snapshot([156, 261, 1234])
online_ids = sg.who_is_online([156, 261, 1234])
nodes = sg.most_followed_in_group([156, 261, 1234]) # parallel fetch
suggestions = sg.follow_suggestions(156, limit=10)
<div align="center">
🔧 Open Cloud — Developer Tools
</div>API_KEY = "roblox-KEY-xxxxx"
UNIVERSE = 123456789
# DataStores
client.develop.set_datastore_entry(UNIVERSE, "PlayerData", "player_1", {"coins": 500}, API_KEY)
client.develop.get_datastore_entry(UNIVERSE, "PlayerData", "player_1", API_KEY)
client.develop.increment_datastore_entry(UNIVERSE, "Stats", "deaths", 1, API_KEY)
client.develop.list_datastore_keys(UNIVERSE, "PlayerData", API_KEY)
# Ordered DataStores (leaderboards)
client.develop.list_ordered_datastore(UNIVERSE, "Leaderboard", API_KEY, max_page_size=10)
client.develop.set_ordered_datastore_entry(UNIVERSE, "Leaderboard", "player_1", 9500, API_KEY)
# Messag
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
