Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6660845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:12:22+00:00 2026-05-26T02:12:22+00:00

I have found a great Steam API from Valve them self and I wonder

  • 0

I have found a great Steam API from Valve them self and I wonder now how I can put the specific information one by one. Example: $steam['response']['players']['personastate']. It doesn’t need to be that solution. I just typed something 🙂

The request will be like this one below:

{
    "response": {
        "players": [
            {
                "steamid": "{hidden}",
                "communityvisibilitystate": 3,
                "profilestate": 1,
                "personaname": "nhagyavi",
                "lastlogoff": 1317692549,
                "commentpermission": 1,
                "profileurl": "http:\/\/steamcommunity.com\/id\/nhagyavi\/",
                "avatar": "http:\/\/media.steampowered.com\/steamcommunity\/public\/images\/avatars\/c2\/c25479aeea82f85eb1134bfcc8e064dcef1d361f.jpg",
                "avatarmedium": "http:\/\/media.steampowered.com\/steamcommunity\/public\/images\/avatars\/c2\/c25479aeea82f85eb1134bfcc8e064dcef1d361f_medium.jpg",
                "avatarfull": "http:\/\/media.steampowered.com\/steamcommunity\/public\/images\/avatars\/c2\/c25479aeea82f85eb1134bfcc8e064dcef1d361f_full.jpg",
                "personastate": 1,
                "realname": "Erik Edgren",
                "primaryclanid": "103582791429525632",
                "timecreated": 1106321372,
                "gameserverip": "217.163.23.35:7777",
                "gameextrainfo": "Red Orchestra 2: Heroes of Stalingrad",
                "gameid": "35450",
                "gameserversteamid": "90083758048089092",
                "loccountrycode": "SE",
                "locstatecode": "{hidden}",
                "loccityid": {hidden}
            }
        ]

    }
}

How do I fix this? Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:12:22+00:00Added an answer on May 26, 2026 at 2:12 am

    Looks like JSON. You need json.decode

    $json_object=
    file_get_contents("http://api.steampowered.com/");
    
            $json_decoded = json_decode($json_object);
            //var_dump($json_decoded);
            echo $json_decoded->response->players[0]->lastlogoff;
    

    Outputs

    1317711877
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found a set of great macros here Objective C Macros I put
I have just found this great tutorial as it is something that I need.
I have problem with text drawing around Circle. I found great sample in C#
I've been reading up on SqlTransactions and have found a great load of examples
I have been working with the Ebay api for a project and have found
I've googled this question repeatedly, but have not found a great answer anywhere. I'm
I have made a simple server using TcpListener and it works great but now
I have found great jQuery wizard here Jerod Santo blog which suits my need.
I have found some great articles ( Maoni , Richter #1 , Richter #2
I have found this great tutorial, about uploading files with a Flex app, using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.