A simple Python wrapper around the xapi.us Xbox API service.
pip install xapy
Import the library and initialize a Client:
from xapy import Client client = Client("my api token")
You can sign up for a free API token at https://xapi.us/register. Change your plan to 'Free' ('Silver' is selected by default) to access the free plan. The free plan limits you to 60 requests per hour. For personal purposes that may be more than enough.
After signing up you'll find your API token on your profile page at https://xapi.us/profile.