Examples

Try out some of the other methods and compare the outputs to the given output. See if you Here is a few Examples of calls using the Steam API



  1. GetPlayerSummaries (v0002)URL:

    Returns basic profile information for a list of 64-bit Steam IDs. var url=' http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='+ key+'&steamids='+steamID;

    JSON OUTPUT

    { "response": { "players": [ { "steamid": "76561198097834797", "communityvisibilitystate": 3, "personaname": "khandakarshadid", "lastlogoff": 1477989808, "profileurl": "http://steamcommunity.com/profiles/76561198097834797/", "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb.jpg", "avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_medium.jpg", "avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg", "personastate": 0, "primaryclanid": "103582791429521408", "timecreated": 1373740920, "personastateflags": 0 } ] } }

  2. GetNewsForApp (v0002) URL:

    GetNewsForApp returns the latest of a game specified by its appID. var url='http://api.steampowered.com/ISteamNews/GetNewsForApp/v0002/?appid=440&count=3&maxlength=300&format=json';

    JSON OUTPUT

    { "appnews": { "appid": 440, "newsitems": [ { "gid": "1904306376092568991", "title": "Prince of Prolander Event ", "url": "http://store.steampowered.com/news/externalpost/tf2_blog/1904306376092568991", "is_external_url": true, "author": "", "contents": " This Sunday at 4:30pm EST RGL.gg is hosting their Prince of Prolander event. See legendary players Stabby and Uncle Dane duke it out to answer the age old question: Who is better? Spies or Engies? Come see them settle the score once and for all in the new competitive TF2 format, Pick/Ban Prolander...", "feedlabel": "TF2 Blog", "date": 1495218420, "feedname": "tf2_blog", "feed_type": 0, "appid": 440 }, { "gid": "1904306118438915507", "title": "Annoucing Highlander and 6v6 Seasons", "url": "http://store.steampowered.com/news/externalpost/tf2_blog/1904306118438915507", "is_external_url": true, "author": "", "contents": "TFCL is annoucing their official seasons for Highlander and 6v6! Both seasons will feature medals, a prize pool, and a single division. Both will also consist of 8 regular season rounds, plus a 16 team double elimination playoff. Registration is open now and ends June 13th! Learn more about register...", "feedlabel": "TF2 Blog", "date": 1495056600, "feedname": "tf2_blog", "feed_type": 0, "appid": 440 }, { "gid": "2423345440420818636", "title": "Team Fortress 2 Update Released", "url": "http://store.steampowered.com/news/externalpost/tf2_blog/2423345440420818636", "is_external_url": true, "author": "", "contents": "An update to Team Fortress 2 has been released. The update will be applied automatically when you restart Team Fortress 2. The major changes include: * Added the Rainy Day Cosmetic Case and Rainy Day Cosmetic Key; * New community cosmetics case with 19 items; * Added the Snack's Summery Ultiduo Sies...", "feedlabel": "TF2 Blog", "date": 1494881280, "feedname": "tf2_blog", "feed_type": 0, "appid": 440 } ] , "count": 2385 } }

  3. GetSchemaForGame (v2) URL:

    GetSchemaForGame returns gamename, gameversion and availablegamestats(achievements and stats). This will run for a long time if not exited mid flight. var url = 'http://api.steampowered.com/ISteamUserStats/GetSchemaForGame/' +'v2/?key='+key+'&appid=6';

    "game": { "gameName": "PAYDAY 2", "gameVersion": "466", "availableGameStats": { "achievements": [ { "name": "hot_wheels", "defaultvalue": 0, "displayName": "Coming in Hot", "hidden": 0, "description": "On day 1 of the Watchdogs job, don't let the cops shoot and destroy the escape vehicle.", "icon": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/218620/f6ed9cd6ec9750bcd36193c74e6f16104f6c1267.jpg", "icongray": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/218620/c336adacd88a21a6010c9b5596192322aecaf265.jpg" }, { "name": "fish_ai", "defaultvalue": 0, "displayName": "Fish A.I.", "hidden": 0, "description": "On day 2 of the Watchdogs job, throw a loot bag into the sea, hoping fish move away as it gets near.", "icon": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/218620/19fd9f952f27bad6bc909721a69c6374cfa5e31b.jpg", "icongray": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/218620/6f6357e4e4106e7b120c2ef6814061e1c6e989ec.jpg" }, { "name": "f_in_chemistry", "defaultvalue": 0, "displayName": "F in Chemistry", "hidden": 0, "description": "On day 1 of the Rats job or the Cook Off job, blow up the lab.", "icon": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/218620/2b6c1eea57aa735244c2eb03218cd7094b93df1d.jpg", "icongray": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/218620/3d69becfb0c87facaba17e8b9667bd9625b6e41c.jpg" },


64x64

HOME

The Steam Api doesn’t allow for cross-origin so first we will have to create our own server using Node!

Setup Node Server

The Steam Api doesn’t allow for cross-origin so first we will have to create our own server using Node!

API Setup

Set up the Steam API!

GetPlayerAchievements

Use The API for the first time.

JSON and HandleBars

Learn how to Use JSON and Handlebars together.

Examples

A few Example Calls to get you familiar with the API.