Steamworks документация
ISteamLeaderboards интерфейс
Used to access Steam leaderboards.

For more info on how to use the Steamworks Web API please see the Обзор на уеб приложно програмния интерфейс.

DeleteLeaderboard

POST https://partner.steam-api.com/ISteamLeaderboards/DeleteLeaderboard/v1/
ИмеТипИзискваноОписание
keystringSteamworks Web API publisher authentication key.
appiduint32№ на приложение за игра.
namestringname of the leaderboard to delete



ЗАБЕЛЕЖКА: This call requires a publisher API key to use this method. As such this API MUST be called from a secure server, and can never be used directly by clients!

FindOrCreateLeaderboard

POST https://partner.steam-api.com/ISteamLeaderboards/FindOrCreateLeaderboard/v2/
ИмеТипИзискваноОписание
keystringSteamworks Web API publisher authentication key.
appiduint32№ на приложение за игра.
namestringname of the leaderboard to create
sortmethodstringsort method to use for this leaderboard (defaults to Ascending)
displaytypestringdisplay type for this leaderboard (defaults to Numeric)
createifnotfoundboolif this is true the leaderboard will be created if it doesn't exist. Defaults to true.
onlytrustedwritesboolif this is true the leaderboard scores cannot be set by clients, and can only be set by publisher via SetLeaderboardScore WebAPI. По подразбиране е „false“;
onlyfriendsreadsboolif this is true the leaderboard scores can only be read for friends by clients, scores can always be read by publisher. По подразбиране е „false“.



This method has previous versions which are no longer officially supported. They will continue to be usable but it's highly recommended that you use the latest version.
Change history:
  • Version 2 - Fixes returning the leaderboard name in XML.

ЗАБЕЛЕЖКА: This call requires a publisher API key to use this method. As such this API MUST be called from a secure server, and can never be used directly by clients!

GetLeaderboardEntries

GET https://partner.steam-api.com/ISteamLeaderboards/GetLeaderboardEntries/v1/
ИмеТипИзискваноОписание
keystringSteamworks Web API publisher authentication key.
appiduint32№ на приложение за игра.
rangestartint32range start or 0
rangeendint32range end or max LB entries
steamiduint64SteamID used for friend & around user requests
leaderboardidint32ID of the leaderboard to view
datarequestuint32type of request: RequestGlobal, RequestAroundUser, RequestFriends



ЗАБЕЛЕЖКА: This call requires a publisher API key to use this method. As such this API MUST be called from a secure server, and can never be used directly by clients!

GetLeaderboardsForGame

GET https://partner.steam-api.com/ISteamLeaderboards/GetLeaderboardsForGame/v2/
ИмеТипИзискваноОписание
keystringSteamworks Web API publisher authentication key.
appiduint32№ на приложение за игра.



This method has previous versions which are no longer officially supported. They will continue to be usable but it's highly recommended that you use the latest version.
Change history:
  • Version 2 - Fixes returning the leaderboard name in XML.

ЗАБЕЛЕЖКА: This call requires a publisher API key to use this method. As such this API MUST be called from a secure server, and can never be used directly by clients!

ResetLeaderboard

POST https://partner.steam-api.com/ISteamLeaderboards/ResetLeaderboard/v1/
ИмеТипИзискваноОписание
keystringSteamworks Web API publisher authentication key.
appiduint32№ на приложение за игра.
leaderboardiduint32numeric ID of the target leaderboard. Can be retrieved from GetLeaderboardsForGame



ЗАБЕЛЕЖКА: This call requires a publisher API key to use this method. As such this API MUST be called from a secure server, and can never be used directly by clients!

SetLeaderboardScore

POST https://partner.steam-api.com/ISteamLeaderboards/SetLeaderboardScore/v1/
ИмеТипИзискваноОписание
keystringSteamworks Web API publisher authentication key.
appiduint32№ на приложение за игра.
leaderboardiduint32numeric ID of the target leaderboard. Can be retrieved from GetLeaderboardsForGame
steamiduint64Steam №, за който да се зададе резултатът.
scoreint32Резултатът, който да се зададе за този потребител.
scoremethodstringupdate method to use. Can be "KeepBest" or "ForceUpdate"
detailsrawbinarygame-specific details for how the score was earned. Up to 256 bytes.



ЗАБЕЛЕЖКА: This call requires a publisher API key to use this method. As such this API MUST be called from a secure server, and can never be used directly by clients!