Документация за Steam уеб приложно-програмният интерфейс

Valve provides these APIs so website developers can use data from Steam in new and interesting ways. They allow developers to query Steam for information that they can present on their own sites. At the moment the only APIs we offer provide item data for Team Fortress 2, but this list will grow over time.


Steam Web APIs available

ISteamNews: Steam provides methods to fetch news feeds for each Steam game.

ISteamUserStats: Steam provides methods to fetch global stat information by game.

ISteamUser: Steam provides API calls to provide information about Steam users.

ITFItems_440: Team Fortress 2 provides API calls to use when accessing player item data.


Obtaining an Steam Web API Key

All use of the Steam Web API requires the use of an API Key. You can acquire one by filling out this form. Use of the APIs also requires that you agree to the Steam API Terms of Use.


Output Formats

All API calls take the form http://api.steampowered.com/<interface name>/<method name>/v<version>/?key=<api key>&format=<format>.

Format can be any of:

  • json - The output will be returned in the JSON format
  • xml - Output is returned as an XML document
  • vdf - Output is returned as a VDF file.

If you do not specify a format, your results will be returns in the JSON format.


Steam OpenID Provider

Steam can act as an OpenID provider. This allows your application to authenticate a user's SteamID without requiring them to enter their Steam username or password on your site (which would be a violation of the API Terms of Use.) Just download an OpenID library for your language and platform of choice and use http://steamcommunity.com/openid as the provider. The returned Claimed ID will contain the user's 64-bit SteamID. The Claimed ID format is: http://steamcommunity.com/openid/id/<steamid>


Valve Brand and Links

Each page that uses the Steam Web API must contain a link to http://steampowered.com with the text "Powered by Steam". We suggest that you put this link in your footer so it is out of the way but still visible to interested users.

If you are using OpenID on your site, we request that you use one of the following buttons as your link to the Steam sign in page. These images represent the Steam brand to users, underscoring that Steam account credentials may be used to sign in to your site.


Go to Registration page