Xbox Python API wrapper based on https://xbl.io.
pip install xbox-python-apiCreate an instance of the XPA class with your API key.
from xpa import XPA
xpa = XPA(api_key="YOUR_API_KEY")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.