Im trying to get info from the steam web API.
This is the json that the api should output from this: http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=YOUR_STEAM_API_KEY&steamids=76561198059308395
{
"response": {
"players": [
{
"steamid": "76561198059308395",
"communityvisibilitystate": 3,
"profilestate": 1,
"personaname": "Shixma",
"lastlogoff": 1439517830,
"commentpermission": 2,
"profileurl": "http://steamcommunity.com/id/Rev32gaming/",
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b6/b6e18a8c0f6e61cf1a5ed2e8ec66f918116ecffc.jpg",
"avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b6/b6e18a8c0f6e61cf1a5ed2e8ec66f918116ecffc_medium.jpg",
"avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b6/b6e18a8c0f6e61cf1a5ed2e8ec66f918116ecffc_full.jpg",
"personastate": 1,
"realname": "❤ Nao Tomori | Lucy Kaede ❤",
"primaryclanid": "103582791434248624",
"timecreated": 1330107496,
"personastateflags": 0,
"loccountrycode": "GB",
"locstatecode": "N7"
}
]
}
}
This is the code I'm trying to use:
var steamSixFourId = '76561198059308395' //steam64 id
var steamApiKey = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX' //steam web api key
$(document).ready(function() {
$.getJSON("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key="+steamApiKey+"&steamids="+steamSixFourId+"?",function(steamGetInfo) {
$('#steamInfoWidget').html("Logo Link: " + steamGetInfo.response.players[0].avatarfull);
});
});
It just doesnt do anything, here is the documentation for the API