WebAPI/GetBadges

From Team Fortress Wiki
Jump to: navigation, search

Main article about WebAPI.

URL

GET http://api.steampowered.com/IPlayerService/GetBadges/v1

Method-specific parameters

steamid (uint64)
The 64 bit ID of the player.

Result data

response
badges
Array of badges
badgeid
Badge ID. Currently no official badge schema is available.
appid (Optional)
Provided if the badge relates to an app (trading cards).
level
completion_time
Unix timestamp of when the steam user acquired the badge.
xp
The experience this badge is worth, contributing toward the steam account's player_xp.
communityitemid (Optional)
Provided if the badge relates to an app (trading cards); the value doesn't seem to be an item in the steam accounts backpack, however the value minus 1 seems to be the item ID for the emoticon granted for crafting this badge, and the value minus 2 seems to be the background granted.
border_color (Optional)
Provided if the badge relates to an app (trading cards).
scarcity
The amount of people who has this badge.
player_xp
player_level
player_xp_needed_to_level_up
player_xp_needed_current_level