Xbox Python API wrapper based on https://xbl.io.
pip install xbox-python-apiCreate an instance of the XPA class with your API key.
fromxpaimportXPAxpa=XPA(api_key="YOUR_API_KEY")fromxpaimportXPAxpa=XPA(api_key="YOUR_API_KEY")
# Get account gamertagaccount_info=xpa.get_account_info_xuid(xuid="xuid")
print(account_info.Gamertag)
# Get user presencepresence=xpa.get_presence(xuid="xuid")
print(presence.devices)Full documentation can be found here.