Skip to main content

Xbox Python API

Xbox Python API wrapper based on https://xbl.io.

Installation

pip install xbox-python-api

Usage

Create an instance of the XPA class with your API key.

from xpa import XPA

xpa = XPA(api_key="YOUR_API_KEY")

Code example

from xpa import XPA

xpa = XPA(api_key="YOUR_API_KEY")

# Get account gamertag
account_info = xpa.get_account_info_xuid(xuid="xuid")
print(account_info.Gamertag)


# Get user presence
presence = xpa.get_presence(xuid="xuid")
print(presence.devices)

Full documentation can be found here.

Release files for xbox-python-api 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xbox-python-api 0.2.2
File Size Uploaded
xbox_python_api-0.2.2.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xbox-python-api 0.2.2
File Interpreter ABI Platform
xbox_python_api-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / xbox_python_api-0.2.2.tar.gz

Download URL xbox_python_api-0.2.2.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22efd6ed8fe43bea6d8242cf1cb53241270d6d1a7af2a46346244638854739c8
BLAKE2b-256 checksum
How to use checksums
88ee1994aedc560fed84add334420918eb35b7680119bb985537c3922704cb55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / xbox_python_api-0.2.2-py3-none-any.whl

Download URL xbox_python_api-0.2.2-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5371b535b54e4c8131de9e521f360e8191991f560c8ebca077e1a254f9d3eeb
BLAKE2b-256 checksum
How to use checksums
0e8561252868c4c6e46a1a2985806a528d678fef46f4a190cbf862e5bf0fe532
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.3

2 release files

0.1

2 release 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