Profile - Get Userprofile information

Profile

Get Userprofiles by XUID or Gamertag

class xbox.webapi.api.provider.profile.ProfileProvider(client)[source]

Bases: BaseProvider

PROFILE_URL = 'https://profile.xboxlive.com'
HEADERS_PROFILE = {'x-xbl-contract-version': '3'}
SEPARATOR = ','
async get_profiles(xuid_list, **kwargs)[source]

Get profile info for list of xuids

Parameters:

xuid_list (list) – List of xuids

Returns:

Profile Response

Return type:

ProfileResponse

async get_profile_by_xuid(target_xuid, **kwargs)[source]

Get Userprofile by xuid

Parameters:

target_xuid (str) – XUID to get profile for

Returns:

Profile Response

Return type:

ProfileResponse

async get_profile_by_gamertag(gamertag, **kwargs)[source]

Get Userprofile by gamertag

Parameters:

gamertag (str) – Gamertag to get profile for

Returns:

Profile Response

Return type:

ProfileResponse