over 7 years
ago -
Vitaliy
-
Direct link
We have added a WebAPI for public access to official playtime distribution on Operation Hydra maps in Competitive and Casual game modes. This allows map creators and the CS:GO community to track the relative popularity of Operation Hydra maps.
In order to access the WebAPI you would need to obtain a Steam WebAPI key, if you don't have one yet, as described in this document.
Here's an example WebAPI call:
https://api.steampowered.com/ICSGOServers_730/GetGameMapsPlaytime/v1/?format=json&key=YOURKEYHERE&mapgroup=operation&gamemode=competitive&interval=week
Supported parameters:
WebAPI response:
We encourage callers to cache the response for 24 hours, as aggregated data doesn't change until next daily aggregation cycle happens after midnight GMT.
In order to access the WebAPI you would need to obtain a Steam WebAPI key, if you don't have one yet, as described in this document.
Here's an example WebAPI call:
https://api.steampowered.com/ICSGOServers_730/GetGameMapsPlaytime/v1/?format=json&key=YOURKEYHERE&mapgroup=operation&gamemode=competitive&interval=week
Supported parameters:
- gamemode={competitive|casual}, used to filter playtime tracking to the requested game mode
- interval={day|week|month}, used to aggregate playtime across the requested interval. Data aggregation interval used in this WebAPI always ends at midnight GMT that has already occurred. For example, when requesting playtime for the day on July 4th at 09:00:00 GMT, the aggregated data returned will be for the 24 hour period between July 3rd 00:00:01 GMT and July 3rd 23:59:59 GMT. Playtime for the week covers 7 days period ending at last midnight GMT, and playtime for the month covers 31 days period ending at last midnight GMT.
WebAPI response:
- WebAPI response contains relative percentages of player-minutes played on the Operation Hydra maps in requested game mode for the requested aggregation interval.
We encourage callers to cache the response for 24 hours, as aggregated data doesn't change until next daily aggregation cycle happens after midnight GMT.