pyhabbo
Unofficial Python SDK for the Habbo public Web API.
Not affiliated with or endorsed by Sulake Oy or Habbo.
Install
pip install pyhabbo
Requires Python 3.11+.
Install from source
git clone https://github.com/0xChron/pyhabbo
cd pyhabbo
pip install -r requirements.txt
pip install .
Quick start
from pyhabbo import HabboClient, Hotel
client = HabboClient(hotel=Hotel.COM)
client.ping()
user = client.users.get_by_name("Habbo")
print(user.name, user.current_level)
profile = client.users.get_profile(user.unique_id)
print(len(profile.badges), len(profile.friends))
Hotels
Pass a Hotel to target a specific Habbo hotel:
client = HabboClient(hotel=Hotel.DE) # habbo.de
client = HabboClient(hotel=Hotel.FI) # habbo.fi
client = HabboClient(hotel=Hotel.COM) # habbo.com (default)
Available hotels: COM, DE, ES, FI, FR, IT, NL, BR, TR.
You can also pass a custom base_url if needed.
API
Users
| Method | Endpoint |
|---|---|
client.users.get_by_name(name) |
GET /users?name= |
client.users.get(user_id) |
GET /users/{id} |
client.users.get_profile(user_id) |
GET /users/{id}/profile |
client.users.list_friends(user_id) |
GET /users/{id}/friends |
client.users.list_groups(user_id) |
GET /users/{id}/groups |
client.users.list_rooms(user_id) |
GET /users/{id}/rooms |
client.users.list_badges(user_id) |
GET /users/{id}/badges |
Achievements
| Method | Endpoint |
|---|---|
client.achievements.list_all() |
GET /achievements |
client.achievements.list_for_user(user_id) |
GET /achievements/{user_id} |
Groups
| Method | Endpoint |
|---|---|
client.groups.get(group_id) |
GET /groups/{id} |
client.groups.list_members(group_id) |
GET /groups/{id}/members |
Badges
| Method | Endpoint |
|---|---|
client.badges.get_owners(badge_code) |
GET /badge/owners/{badgeCode} |
Rooms
| Method | Endpoint |
|---|---|
client.rooms.get(room_id) |
GET /rooms/{roomId} |
Lists
| Method | Endpoint |
|---|---|
client.lists.list_hotlooks() |
GET /lists/hotlooks |
Marketplace
| Method | Endpoint |
|---|---|
client.marketplace.batch_stats(room_items=[], wall_items=[]) |
POST /marketplace/stats/batch |
Examples
Runnable scripts for each endpoint are in examples/.
git clone https://github.com/0xChron/pyhabbo
cd pyhabbo
pip install .
python examples/public/users/get_by_name.py
Official API docs
Development
For contributors — clone the repo and install dev dependencies:
git clone https://github.com/0xChron/pyhabbo
cd pyhabbo
pip install -e ".[dev]"
pytest
ruff check src tests
CI runs on push/PR to main (pytest + ruff on Python 3.11–3.13).
Versioning: bump src/pyhabbo/_version.py only — hatch reads it for PyPI builds.
License
MIT — see LICENSE.
Changelog
See CHANGELOG.md.
Release files for pyhabbo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhabbo-0.1.0.tar.gz | 146.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhabbo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:159.5 kB
Release files / pyhabbo-0.1.0.tar.gz
| Download URL | pyhabbo-0.1.0.tar.gz |
|---|---|
| Size | 146.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbfe1ff0aa88810e7919c4bcd192fb4aaf4f00f4a014d1898855613d803cd0aa
|
|
BLAKE2b-256 checksum How to use checksums |
e92332b7c12d0c3b673d12509f7add5384949abbeb02b17ad95631ce5d66a4b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pyhabbo-0.1.0-py3-none-any.whl
| Download URL | pyhabbo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2413cee140abaa975febaa9962d0a7d81dbacab887f5c0f71f21b86a576313c1
|
|
BLAKE2b-256 checksum How to use checksums |
a84da305e44674bed23b2bb9fc136d4b40c391093acfbac7e2ec04c0a50dc20f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|