I'm trying to get the URL off a page from Steam. I'm using it to get the URL of the picture of any user who visits it. Here's the code that steam gives to me when I ask for the user's information:
{
"response": {
"players": [
{
"steamid": "76561xxxxxxxxx",
"communityvisibilitystate": 3,
"profilestate": 1,
"personaname": "xxxxx",
"lastlogoff": 1402722290,
"profileurl": "http://steamcommunity.com/id/xxxxxxxxxx/",
"avatar": "http://media.steampowered.com/steamcommunity/public/images/avatars/f1/f1dd6xxxxxxxxxx883caxxxxxe6abaxxxxxxx32d4.jpg",
"avatarmedium": "http://media.steampowered.com/steamcommunity/public/images/avatars/f1/fxxxxxxxxxxx83caf82xxxfexxxxxxxxxxaf1732d4_medium.jpg",
"avatarfull": "http://media.steampowered.com/steamcommunity/public/images/avatars/f1/f1dxxxxxxxx88883caf82xxxxfccfexxxxxxxxx732d4_full.jpg",
"personastate": 0,
"realname": "xxxxx Walker",
"primaryclanid": "103582xx142952xxxx",
"timecreated": 1063407589,
"personastateflags": 0,
"loccountrycode": "US",
"locstatecode": "WA",
"loccityid": 3961
}
]
}
What I'm trying to get is the url of "avatar":
, but I am somewhat new to this.
After getting the URL, I wish to put it on a <div>
with some other information, like the name, and such. Help is really appreciated right now!