Skip to main content

Crate steam_webapi_rust_sdk

Crate steam_webapi_rust_sdk 

Source
Expand description

§Steam Web API Rust SDK

steam-webapi-rust-sdk is a set of utility functions to access Steam Web API.

In order to use this library make sure to set STEAM_WEB_API_KEY system environment variable.

The library itself tries to minimize number of networks calls through the caching relevant responses to the ‘steam-webapi-cache’ folder.

There is already prebuilt cache for all steam apps, in order to use it, simply clone steam-webapi-cache into the root folder of your project.

Modules§

idota2match_570
iplayer_service
isteam_apps
isteam_news
isteam_user
isteam_user_stats
store_steampowered_com
util

Functions§

convert_32bit_account_id_to_64bit
Converts given 32 bit Steam account id to 64 bit
convert_64bit_account_id_to_32bit
Converts given 64 bit Steam account id to 32 bit
get_app_details
Retrieves details for the given app id. It will make an API call to Steam and cache response. It may return an error if API responded with error response. As an example it may be exceeding the limit of calls from one IP address or if the response contains not valid UTF-8 characters. Usually Steam API allows 200 requests from single IP address within 5 minutes range.
get_app_list
Retrieves list of apps available on Steam. Each item consists of 2 fields: appid and name
get_badges
Retrieves a Steam account’s badges and badge XP progress.
get_cached_app_details
Retrieves details for the given app id from the local cache. It may return an error if requested resource is absent, malformed or not readable from local cache.
get_cached_app_list
Retrieves list of apps available on Steam. First tries to get it from local cache. Each item consists of 2 fields: appid and name
get_cached_dota2_match_details
Retrieves match details for the given Dota2 match id from the local cache. It may return an error if requested resource is absent, malformed or not readable from local cache.
get_dota2_heroes
Retrieves the list of all Dota2 heroes.
get_dota2_league_listing
Retrieves the list of Dota2 leagues.
get_dota2_live_league_games
Retrieves currently live Dota2 league games.
get_dota2_match_details
Retrieves match details for the given Dota2 match id. It will make an API call to Steam and cache the response.
get_dota2_match_history
Retrieves list of matches from Dota2
get_dota2_team_info_by_team_id
Retrieves Dota2 team info, paginated by team id.
get_friend_list
Retrieves a Steam account’s friend list. Returns an error if the profile’s friends list is not public.
get_global_achievement_percentages_for_app
Retrieves the global completion percentage for each achievement of a given app. Does not require a Steam Web API key.
get_news_for_app
Retrieves news items for a given app. Does not require a Steam Web API key.
get_number_of_current_players
Retrieves the current number of players in-game for a given app. Does not require a Steam Web API key.
get_owned_games
Retrieves the games a Steam account owns, and optionally their playtime.
get_player_achievements
Retrieves a Steam account’s achievement status for a given app. Returns an error if the account’s stats for the game aren’t public.
get_player_bans
Retrieves VAC/game/community ban status for up to 100 SteamIDs.
get_player_summaries
Retrieves public profile summaries (up to 100 SteamIDs per call) via ISteamUser/GetPlayerSummaries.
get_recently_played_games
Retrieves games played by a Steam account in the last two weeks.
get_schema_for_game
Retrieves the stat and achievement schema (names, display names, descriptions) for a given app.
get_steam_level
Retrieves a Steam account’s Steam level.
get_user_stats_for_game
Retrieves a Steam account’s stats and achievements for a given app.
resolve_vanity_url
Resolves a Steam Community vanity URL (e.g. steamcommunity.com/id/<vanity>) to a 64-bit SteamID.