Difference between revisions of "WebAPI/GetGlobalStatsForGame"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "== URL == <nowiki>http://api.steampowered.com/ISteamUserStats/GetGlobalStatsForGame/v0001</nowiki> == Method-specific Parameters == ;appid: The ID of the game to retrieve global...")
 
(Method-specific Parameters)
Line 5: Line 5:
 
;appid: The ID of the game to retrieve global stats for. This can be the ID of any Steamworks game with global stats available.
 
;appid: The ID of the game to retrieve global stats for. This can be the ID of any Steamworks game with global stats available.
 
;count: Number of stats to get data for.
 
;count: Number of stats to get data for.
;name: Names of the stats to get (comma separated). Developer must mark the stat as globally aggregated.
+
;name[0]: Names of the stats to get. For more than one value, use a parameter for each request. (name[0], name[1], ...)
 +
:Not all stats are globally aggregated. The developer of the game must mark the stat as globally aggregated.
 
;{{API optional|startdate}}: Start date for daily totals (unix epoch timestamp).
 
;{{API optional|startdate}}: Start date for daily totals (unix epoch timestamp).
 
;{{API optional|enddate}}: End date for daily totals (unix epoch timestamp).
 
;{{API optional|enddate}}: End date for daily totals (unix epoch timestamp).

Revision as of 22:00, 30 April 2013

URL

http://api.steampowered.com/ISteamUserStats/GetGlobalStatsForGame/v0001

Method-specific Parameters

appid
The ID of the game to retrieve global stats for. This can be the ID of any Steamworks game with global stats available.
count
Number of stats to get data for.
name[0]
Names of the stats to get. For more than one value, use a parameter for each request. (name[0], name[1], ...)
Not all stats are globally aggregated. The developer of the game must mark the stat as globally aggregated.
startdate (Optional)
Start date for daily totals (unix epoch timestamp).
enddate (Optional)
End date for daily totals (unix epoch timestamp).

Result Data