Skip to main content

Unofficial Python SDK for the Habbo public Web API

Project description

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

Habbo Web API Swagger UI

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhabbo-0.1.0.tar.gz (146.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhabbo-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file pyhabbo-0.1.0.tar.gz.

File metadata

  • Download URL: pyhabbo-0.1.0.tar.gz
  • Upload date:
  • Size: 146.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pyhabbo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbfe1ff0aa88810e7919c4bcd192fb4aaf4f00f4a014d1898855613d803cd0aa
MD5 668d3abd19d96aa5e5ebef2a4f25a06c
BLAKE2b-256 e92332b7c12d0c3b673d12509f7add5384949abbeb02b17ad95631ce5d66a4b6

See more details on using hashes here.

File details

Details for the file pyhabbo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyhabbo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pyhabbo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2413cee140abaa975febaa9962d0a7d81dbacab887f5c0f71f21b86a576313c1
MD5 2a2a34ae4103db6184d3c0882788afbb
BLAKE2b-256 a84da305e44674bed23b2bb9fc136d4b40c391093acfbac7e2ec04c0a50dc20f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page