This is a Python wrapper for the unofficial Xbox API
This package supports Python Package Index installation:
pip install xboxapi
To make any API request it requires Xbox LIVE authentication to get the data using your Xbox account. It means
that you need to log into your account and get API key. Then pass this key to create XboxApi
instance:
from xboxapi import XboxApi
api = XboxApi(api_key="Your API key")
Then you can make Xbox API requests with this object. For example, get API key owner profile info:
profile_info = api.get_profile() # returns dictionary of objects
print(profile_info)
{ u'locale': u'en-US', # Unicode strings u'midasConsole': None, ...Other fields... }