All routes return JSON unless otherwise specified.
67 67
Original by jcxldn. This fork fixes the entire auth flow for Xbox auth v2, as well as fixing deprecated Python libraries that cause the original to fail.
- Added SSL verification bypass for Windows systems where certificate validation fails
- Implemented
aiohttp.TCPConnector(verify_ssl=False)in ClientSession - Added global SSL context override for compatibility with Xbox Live authentication endpoints
- These changes resolve
SSLErrorand certificate verification failures that prevented authentication
- Added new authentication script for initial token generation (although the command
xbox-authenticatecan still work sometimes) - Allows users to complete OAuth flow and generate initial
tokens.jsonfile
- Replaced deprecated
quart.flask_patchwith manualnest_asyncioimplementation quart.flask_patchis no longer available in Quart 0.19+- Manually implements
loop.sync_wait()method required by QuartDecoratorProvider nest_asyncioprovides better Windows event loop handling for nested async operations- Fixed
index()route to use async/await pattern consistently
- Corrected
register_batchparameter type hint fromdict[Type]toList[Type] - Parameter actually accepts a list of route classes, not a dictionary
The original implementation failed due to:
- SSL errors when connecting to Xbox Live authentication servers on Windows
- Import errors from
quart.flask_patchbeing removed in newer Quart versions - Missing initial authentication - no way to generate the first
tokens.jsonfile (although again,xbox-authenticatecan work in some cases)
This fork resolves all these issues while maintaining backward compatibility with the existing codebase.
-
/titleinfo/<int:titleid>Get title information by its title ID.
-
/legacysearch/<str:query>Search the Xbox 360 Marketplace.
-
/gamertag/check/<str:username>Check if the specified gamertag is available or taken.
-
/usercolors/define/<str:primary>/<str:secondary>/<str:tertiary>Get an SVG representation of the defined colors.
-
/usercolors/get/xuid/<int:xuid>Get an SVG representation of the user's colors.
-
/usercolors/get/gamertag/<gamertag>Get an SVG representation of the user's colors.
-
/profile/xuid/<int:xuid>Get a profile by the user's XUID.
-
/profile/gamertag<str:gamertag>Get a profile by the user's gamertag.
-
/profile/settings/xuid/<int:xuid>Get profile settings (less data) by the user's XUID.
-
/profile/settings/gamertag/<str:gamertag>Get profile settings (less data) by the user's gamertag.
-
/friends/summary/xuid/<int:xuid>Get a user's friend summary (followers and following count) by their XUID.
-
/friends/summary/gamertag/<gamertag>Get a user's friend summary (followers and following count) by their gamertag.
-
/presence/xuid/<int:xuid>Get a user's presence (status) by their XUID.
-
/presence/gamertag/<str:gamertag>Get a user's presence (status) by their gamertag.
-
/userstats/xuid/<int:xuid>/titleid/<int:titleid>Get a user's stats for a game by Title ID and user XUID.
-
/userstats/gamertag/<str:gamertag>/titleid/<int:titleid>Get a user's stats for a game by Title ID and user gamertag.
-
/xuid/<str:gamertag>Get a user's XUID by their gamertag.
-
/xuid/<str:gamertag>/rawGet a user's XUID by their gamertag and return as text.
-
/achievements/1/recent/<int:xuid>Get the recent Xbox One achievements for a user XUID.
-
/achievements/360/recent/<int:xuid>Get the recent Xbox 360 achievements for a user XUID.
-
/achievements/1/titleprogress/<int:xuid>/<int:titleid>Get all achievements (both unlocked and locked) for an Xbox One user from their XUID and the game's Title ID.
-
/achievements/360/titleprogress/all/<int:xuid>/<int:titleid>Get all available achievements for an Xbox 360 user from their XUID and the game's Title ID.
-
/achievements/360/titleprogress/earned/<int:xuid>/<int:titleid>Get all earned / unlocked achievements for an Xbox 360 user from their XUID and the game's Title ID.
-
/achievements/1/titleprogress/detail/<int:xuid>/<uuid:scid>/<int:achievementid>Get the achievement details for an Xbox One user from their XUID, the game's SCID (Service Config ID) and an achievement ID.