Wired API Python
A Python wrapper for the Habbo public API.
Installation
Install from source (this package is not yet published to PyPI):
pip install -e .
or install the only runtime dependency directly:
pip install -r requirements.txt
Basic Usage
Initializing the API Client
from wired_api_python import HabboPublicAPI, Hotel
# Create an instance targeting the .COM hotel
api = HabboPublicAPI.from_hotel(Hotel.COM)
Accessing Standard Endpoints
Once instantiated, use the resource methods to query public data, for example:
# Fetch the achievements list
achievements = api.achievements().all()
# Fetch room details by ID
room = api.rooms().by_id(room_id)
Wired Variables Endpoints
To interact with WIRED variables, call .variables() on your API instance with
the room ID and your read/write keys:
var_api = api.variables(room_id, wired_read_key, wired_write_key)
# Access variable data for the specified room
all_var_names = var_api.list_all()
user_var_profile = var_api.user().get_profile_by_username("WiredSpast")
Error Handling
API requests raise HabboApiException on failure. Wrap your calls in a
try/except block:
from wired_api_python import HabboApiException
try:
room = api.rooms().by_id(room_id)
except HabboApiException as e:
# Handle API-specific errors (e.g., 404 Not Found, 500 Server Error)
print(e.code, e.response_body)
Supported Feature Overview
- Public Endpoints:
- Achievements --
api.achievements() - Badge owner count --
api.badges() - Groups --
api.groups() - Marketplace statistics --
api.marketplace() - Ping --
api.ping() - Rooms --
api.rooms() - Lists (hot looks) --
api.lists() - Users --
api.users()
- Achievements --
- Variable Endpoints (
api.variables(room_id, read_key, write_key)):- Read and manage permanent user variables --
.user() - Read and manage permanent furni variables --
.furni() - Read and manage permanent global variables --
.global_()
- Read and manage permanent user variables --
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wired_api_python-0.1.0.tar.gz.
File metadata
- Download URL: wired_api_python-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f037672134da3a0bb8653f31bf078134c1c693eb70806b0d911a593dcbc7ae
|
|
| MD5 |
aeccf6dd110b1d6fc61d77ca18014e5c
|
|
| BLAKE2b-256 |
6490783477b20fee63647508c0ee7f1af54cfdf789bdfb463e917b6f04aac8e9
|
File details
Details for the file wired_api_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wired_api_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70e2ffb917d74050e072eb5495a5636baf95bb17dad632b84166d1671c31f816
|
|
| MD5 |
8ed5109095d2c388c08785995431c1c1
|
|
| BLAKE2b-256 |
095b68f2237bffb69a7cc048455a32f02376d82d8df56bda5f9bf4d29b2d3247
|