
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
xboxapi
Advanced tools
This is a Python wrapper for the unofficial Xbox API
For now you will have to install manually, as I didn't upload the initial version to pypi (pip).
xboxapi directory in your projectThe only dependency is requests library.
This is a basic example of how to create a client and fetch a gamers profile information from their gamertag.
from xboxapi import Client
client = Client(api_key=<api_key>)
gamer = client.gamer('voidpirate')
profile = gamer.get('profile')
Client class constructor takes the following optional arguments except api_key.
| Argument | Value | Short Description |
|---|---|---|
| api_key | string | api token from Xbox API |
| timeout | int | how long until the request times out (seconds) |
| lang | string | country language code (e.g. for German (de-DE)) |
Client class public methods.
| Method | Value | Optional | Short Description |
|---|---|---|---|
gamer(gamertag=<string>) | string | xuid=<string> | gamertag to lookup |
calls_remaining() | n/a | n/a | Return headers about api rate limits |
A note about the gamer method. If you already know the gamers xuid you can use that instead to avoid an additional api call when using only a gamertag.
Gamer class public methods, returned from gamer method in Client.
| Method | Value | Optional | Short Description |
|---|---|---|---|
get(method=<string>) | string | term=<string> | API calls. |
send_message(message=<string>) | string | n/a | Send a message to gamer |
send_activity(message=<string>) | string | n/a | Update your activity feed with a message |
Pagination is supported in this client and all handled through get method. It works by detecting the response header for pagination, any subsequent calls to the same api endpoint will return paged data. If another api call is made to a different endpoint, the pagination token will be cleared and results will not be paged.
FAQs
XBOX One API
We found that xboxapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.