Skip to main content

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()
  • 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_()

Download files

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

Source Distribution

wired_api_python-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

wired_api_python-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for wired_api_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7f037672134da3a0bb8653f31bf078134c1c693eb70806b0d911a593dcbc7ae
MD5 aeccf6dd110b1d6fc61d77ca18014e5c
BLAKE2b-256 6490783477b20fee63647508c0ee7f1af54cfdf789bdfb463e917b6f04aac8e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wired_api_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70e2ffb917d74050e072eb5495a5636baf95bb17dad632b84166d1671c31f816
MD5 8ed5109095d2c388c08785995431c1c1
BLAKE2b-256 095b68f2237bffb69a7cc048455a32f02376d82d8df56bda5f9bf4d29b2d3247

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page