Skip to main content

Wired API Python

A Python wrapper for the Habbo public API.

Installation

Add the wrapper to your project using pip:

pip install wired-api-python

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.2.tar.gz (20.6 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.2-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file wired_api_python-0.1.2.tar.gz.

File metadata

  • Download URL: wired_api_python-0.1.2.tar.gz
  • Upload date:
  • Size: 20.6 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.2.tar.gz
Algorithm Hash digest
SHA256 dae1f4ac2cab2ef8e253dafaf0c8bae3b0c0badead41eafa908968f4750e1a64
MD5 4001bb8cb5741652e38ecfc8b410206e
BLAKE2b-256 cf4b4c917e826391e7b8783e3b17b76ec048e9518cbe0ab5c90a815bd4195ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wired_api_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43b06fa9420f644651aa8e5846df200f93396f33e2bc547ca0f6ac14fcb8c127
MD5 61c9e677dbbc5a435ee1f22bf0a4dfef
BLAKE2b-256 b2969610e1b32ab705f21b07eca66094aefaaa6d5af9f21aaf3e6a879cf999f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.0

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