Skip to content

Repository files navigation

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.

fromxpaimportXPAxpa=XPA(api_key="YOUR_API_KEY")

Code example

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.

About

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

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages