Number of Current Players
SteamWebAPIs.get_number_of_current_players
— Functionget_number_of_current_players(appid::Int)::Int
Summary: get_number_of_current_players
returns number of current players by appid.
Arguments
appid
: The ID for the game you're requesting.
Example
julia> get_number_of_current_players(440)
70000
Achievement Percentage
SteamWebAPIs.get_global_achievement_percentages_for_app
— Functionget_global_achievement_percentages_for_app(gameid::Int)::Dict{String,Float16}
Summary: get_global_achievement_percentages_for_app
returns on global achievements overview of a specific game in percentages.
Arguments
gameid
: GameID to retrieve the achievement percentages for.
Example
julia> get_global_achievement_percentages_for_app(440)
Dict{String, Float16}("TF_MAPS_DOOMSDAY_PUSH_INTO_EXHAUST" => 7.9...)
Player Achievements
SteamWebAPIs.get_player_achievements
— Functionget_player_achievements(steamid::Int,appid::Int;l::String)::PlayerAchievements
Summary: get_player_achievements
returns a list of achievements for this user by app id.
Arguments
steamid
: 64 bit Steam ID to return friend list for.appid
: The ID for the game you're requesting.l
: Language. If specified, it will return language data for the requested language.
Example
julia> dump(get_player_achievements(76561198309475951,553850;l="japanese"))
SteamWebAPIs.PlayerAchievements
gameName: String "HELLDIVERS™ 2"
achievements: Array{SteamWebAPIs.Achievement}((38,))
1: SteamWebAPIs.Achievement
apiname: String "1"
achieved: Bool false
unlocktime: Nothing nothing
name: String "ヘルダイブ"
description: String "難易度がエクストリーム以上のミッションを、誰も死ぬことなく完了する"
2: SteamWebAPIs.Achievement
apiname: String "2"
achieved: Bool false
unlocktime: Nothing nothing
name: String "武器はいらない"
description: String "難易度がハード以上のミッションを、誰一人メインウェポンまたは支援武器を発砲せずに完了する"
...
38: SteamWebAPIs.Achievement
apiname: String "38"
achieved: Bool true
unlocktime: DateTime
instant: Dates.UTInstant{Millisecond}
periods: Millisecond
value: Int64 63846249161000
name: String "管理民主主義を広めよ"
description: String "1つのミッション中に敵を150体倒す"
SteamWebAPIs.PlayerAchievements
— Typestruct PlayerAchievements
gameName::String
achievements::Vector{Achievement}
end
Return type of get_player_achievements
.
Fields:
gameName
: Name of the game.achievements
: Vector ofAchievement
.
SteamWebAPIs.Achievement
— Typestruct Achievement
apiname::String
achieved::Bool
unlocktime::Union{DateTime,Nothing}
name::Union{String,Nothing}
description::Union{String,Nothing}
end
Achievement item.
Fields:
apiname
: The API name of the achievement.achieved
: Whether or not the achievement has been completed.unlocktime
: Date when the achievement was unlocked.name
: Localized achievement name.description
: Localized description of the achievement.
User Stats For Game
SteamWebAPIs.get_user_stats_for_game
— Functionget_user_stats_for_game(steamid::Int,appid::Int)::PlayerStats
Summary: get_user_stats_for_game
returns a list of achievements and stats for this user by app id.
Arguments
steamid
: 64 bit Steam ID to return friend list for.appid
: The ID for the game you're requesting.
Example
julia> get_user_stats_for_game(76561198309475951,1238810)
SteamWebAPIs.PlayerStats("Battlefield ™ V", ["Achievement_GOSCC_1"...], Dict{String, Real}("stat_4" => 1...))
SteamWebAPIs.PlayerStats
— Typestruct PlayerStats
gameName::String
achievements::Vector{String}
stats::Dict{String,Real}
end
Return type of get_user_stats_for_game
.
Fields:
gameName
: Name of the game.achievements
: Vector of achievements api name, all unlocked by user.stats
: Dict of game stats, key is stats name, value is stats value.