WARNING: The community XML data is deprecated. We recommend using the web APIs whenever possible.
Steam provides access to community data in an XML format that can be consumed by game developers and other community sites. It is important to note that a player's data might be unavailable if the player's privacy settings prevent the data from being exposed.
http://steamcommunity.com/profiles/<SteamID>/?xml=1
http://steamcommunity.com/id/<CustomURL>/?xml=1
To retrieve game stats, you will need the game's Steam Community name. Developers can contact Valve to obtain the community name for their game.
You can retrieve stats and achievements for a player per game using the player's 64-bit Steam ID with:http://steamcommunity.com/profiles/<SteamID>/stats/<CommunityGameName>/?xml=1
http://steamcommunity.com/id/<CustomURL>/stats/<CommunityGameName>/?xml=1
Note: For most games, the Steam Community only exposes achievements a user has received. However, a player's game play stats are exposed for games that have a custom Steam Community stats page.
For games that are configured to expose raw stats data, you can retrieve stats for a user using their 64-bit Steam ID and the game's Application ID with:
http://steamcommunity.com/profiles/<SteamID>/statsfeed/<AppID>/?xml=1&schema=1
http://steamcommunity.com/id/<CustomURL>/statsfeed/<AppID>/?xml=1&schema=1
To retrieve entries for a leaderboard, you will need the leaderboard's ID. The ID for each leaderboard is returned in the list of leaderboards for a game.
You can retrieve the list of leaderboards for a game using the game's Steam Community name with:http://steamcommunity.com/stats/<CommunityGameName>/leaderboards/?xml=1
http://steamcommunity.com/stats/<CommunityGameName>/leaderboards/<LeaderboardID>/?xml=1&steamid=<SteamID>
StartRange
and EndRange
are integers):
http://steamcommunity.com/stats/<CommunityGameName>/leaderboards/<LeaderboardID>/?xml=1&start=<StartRange>&end=<EndRange>
http://steamcommunity.com/gid/<GroupID>/memberslistxml/?xml=1
http://steamcommunity.com/groups/<GroupName>/memberslistxml/?xml=1