/Xbox-Python-API

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

Primary LanguagePythonMIT LicenseMIT

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.