Anyone w/ knowledge of Steam API?

User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands
Contact:

Anyone w/ knowledge of Steam API?

Post by Synisto »

I'm looking for someone with knowledge of Steam API to get CSGO stats to show on my website.
"Nothing is as powerful as an idea whose time has come"

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

hello, i do not nothing about but as i'm always curious i will take a look as i can.
It should be very easy to use lib!
What with this lib you would like to achieve, into your site exactly?
Can you explain a little overview of the thing?

p.s 1.2.2 is coming and it fix many things, as soon it will be released, please update if still using!

User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by Synisto »

What I want to achieve is to show CS:GO stats on a specific member's page. So on my page I want to show for instance my kills, deaths, accuracy etc. like on http://csgo-stats.com/synisto/

For this I need to get info out of the Steam API, but I'm not sure how exactly.
http://api.steampowered.com/ISteamUserS ... 8001105948
"Nothing is as powerful as an idea whose time has come"

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

How many users run this kind of things!? :mrgreen: just to know ... let me know ... it it can be a 1.000.000 downloads plugin to do?
i will take a look into as soon i can ... you would like to get this into WordPress, on profile for example, or as page for each player or subscribed player? Will take a look ... but substantially, as presentation say, it just return a json string. Not hard to use it. Little more work is required to display in a beautiful professional way this data.

p.s wp_w3all 1.2.2 has been released, update as it fix numerous problems and is more fast.

User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by Synisto »

There's a lot of posts on the internet requesting how to do it, but I seem unable to find any usefull tutorial on how to use these json scripts and stuff.

I would like to show it on a member's profile for instance like this:
Image
"Nothing is as powerful as an idea whose time has come"

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Ok got it ... thinking ... a new plugin or a wp_w3all extension?
I think a new easy w3all_steamcommunty_plugin.
I've yesterday night start to play with STEAM, looking features on fly, installing also a game after a free registration, and asked for your friendship. All this to get an idea of what about and ... a page with user's profile/results of https://steamcommunity.com .
I need to look what and where, so confirm please my friendship at https://steamcommunity.com, so i can see better all what i want to understand about the system and how all work in very short time ... it is much better than look into code. I can imagine when and where, after i see behaviors.

If anyone interested into a collaborative development of this plugin, i will be happy to share my little knowledge about www, so we can create a very useful, powerful, and interesting plugin in less time ...

I would like to have a collaboration from someone that know strongly Javascript/Jquery, and be able to reproduce what mysql/php code functions or classes return, to display professional graphic interfaces. If nobody come out ... i will do the thing, as soon i can.
But if anybody interested, i will be more happy.

p.s to get an iframe of the profile inside a WP page is very easy thing to achieve.
So for example you can embed an external page, into an iframe like for phpBB on wp_w3all. This is very easy and can be achieved in three easy steps.
But i think a plugin, that:
allow user to choose to display or not his steamcommunity.com profile and stats on WP, adding his steamID, is the best way.
Also because, there is now way to calculate the exact height for an iframe if there is no code on the called (iframe) page, that is impossible in this case, as the page we call inside iframe, is a page hosted on a domain that we do not own. We so can in case set a default height dimension for the iframe, but it lead to a not so good result.

User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by Synisto »

Yeah allright, that sounds good! Let me know if I can help!
"Nothing is as powerful as an idea whose time has come"

User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by Synisto »

Any updates so far on this particular plugin? :D
"Nothing is as powerful as an idea whose time has come"

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Hello, sorry for the delay on answer, fighting with some problems that are keeping me away from many things and from my pc, so i've not been noticed also about this post, while already i've answer to others, as seem i've not read email notification. I'm sorry, You'll understand.
I've already create the plugin folder on my local server, w3all_steam, admin interface, little more ... so i had a stop... due to the above mentioned prob... I like to do this and i will do. Let you know when i'll be at good point. But i need little time more this and next week minimum (i hope before!) to terminate with some problem around ... and start some good new for me. Hope all will be fine ... asking for little lucky this time :)

User avatar
Synisto
User ww
User ww
Posts: 22
Joined: Fri Mar 25, 2016 12:01 pm
Location: The Netherlands
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by Synisto »

No problem, let me know if I can help!
"Nothing is as powerful as an idea whose time has come"

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

hello! ok ... hope will not require all the time have required me to start the dropbox wp integration, with days of problem solving to integrate into WP pages... for each user. But still not finished. I've also start to see stem api +- 1 month ago, i need to return over now ... let you know, really soon.

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

ok, needed a KEY to access API ... sending you a message ...

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Do you can see your steamid? Would know if you can see it on your steam profile: should be on same page where you have activated and get the api key?
If yes, please send me via PM ... looking ...

... ok got it, retrieved all yours and my data ... as well if we like data of any steam user.

Just let me know by the way if you can see your steamid somewhere on your steamcommunty.com account, profile or api key page, thank you

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

About the going on: admin interface, user admin interface, and page with all raw array data to display ready.
Classes and methods ready ...
But now, the front-end page part ...

What we should display about user stats and info?

What games? Latest played? Most played?
Friends, Kills ... still little confused about what display with all this amount of data we get on hand now :) ... as i still do not well know steam community and how all system work about players ...

On example you mention in wp, MAP preference is about what?
CGSO stats icons and there values, are about what?
A little help on this will be appreciated helping me explaining to understand more about ... so i will aggregate with easy the necessary data.

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

i've return over Steam, but i have a problem understanding a thing: on your profile, http://csgo-stats.com/synisto/
there are info about what?
If i calculate your played time, i get much more hours than the value reported on your profile. So i think the Time played value reported, is about a single game.
So i've try to see on your latest played games, looking if there is an equal value on it about Time played (for example), but nothing.

Can you please, let me know:
what the name of the game, statistics on your profile display?
is the latest you have play? (no i do not think)

ps... got it

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

nothing, i got that the game of stats on your profile is: Counter-Strike: Global Offensive
but i can't get it, on your data i extract from API ... i will take a look after another time ...

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Code: Select all

Player Achievements

stdClass Object
(
    [playerstats] => stdClass Object
        (
            [steamID] => yourID
            [gameName] => Counter-Strike: Global Offensive
            [achievements] => Array
                (
                    [0] => stdClass Object
                        (
                            [apiname] => WIN_BOMB_PLANT
                            [achieved] => 1
                        )
while on your profile at http://csgo-stats.com/synisto/, bombs resulting are at this time 1247, so i think there is something wrong somewhere extracting data: the funny is that the code result to be OK, all executed and done :)
i suppose 1247 are bombs you have set in this single game (csgo). Right?
... if you never read this, please answer so i will not waste my time!

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Nothing, ok, get it.

Code: Select all

stdClass Object
(
    [playerstats] => stdClass Object
        (
            [steamID] => yourId
            [gameName] => ValveTestApp260
            [stats] => Array
                (
                    [0] => stdClass Object
                        (
                            [name] => total_kills
                            [value] => 21636
                        )

                    [1] => stdClass Object
                        (
                            [name] => total_deaths
                            [value] => 15918
                        )

                    [2] => stdClass Object
                        (
                            [name] => total_time_played
                            [value] => 1400855
                        )

                    [3] => stdClass Object
                        (
                            [name] => total_planted_bombs
                            [value] => 1245
                        )

                    [4] => stdClass Object
                        (
                            [name] => total_defused_bombs
                            [value] => 242
                        )
ect... etc...

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

WP_w3all Steam Stats plugin ... coming
WP_w3all Steam Stats plugin ... coming
wp_w3all_steam.png (218.38 KiB) Viewed 5283 times

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

The plugin in raw version is ready. admin/user interface, page for user to display steam stats. If anyone interested to get the code that can achieve with easy the result above asked, just post a request. We can build a good template about with, or just a template addition for themes. That should be cool.

Tan Sen
Posts: 1
Joined: Sun Sep 15, 2019 5:11 pm

Re: Anyone w/ knowledge of Steam API?

Post by Tan Sen »

axew3 wrote:
Fri Jun 17, 2016 9:32 am
i've return over Steam, but i have a problem understanding a thing: on your profile, http://csgo-stats.com/synisto/
there are info about what?
If i calculate your played time, i get much more hours than the value reported on your profile. So i think the Time played value reported, is about a single game.
So i've try to see on your latest played games, looking if there is an equal value on it about Time played (for example), but nothing.

Can you please, let me know:
what the name of the game, statistics on your profile display?
is the latest you have play? (no i do not think)

ps... got it
hI,

I did get you properly. what are the information do you require to find my gaming statistics ? is it about calculating my played time and the money i have earned through online games or what !

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Hello! Since i do not play online games on Steam, i just created time ago an account with minimum requirements to test personally Steam api retrieving results to test it and display.
do you require to find my gaming statistics
Yes because at the past time of these posts, due to my misunderstanding or ability to read documentation, i remember that i was not able to work with mine Steam results because to get some result, i had to play to games and i had not the time to. So no tests with my account were possible.

May i misunderstand something into documentation at the time i read it, and the Steam api have a sort of test account that you can use to test and develop code based into it, by the way i was not able to find the way if it was at this time.
I will take a look soon to see if something upgraded on Steam Api or, since my Eng is now little improved :oops: , i will find a way to make a nice and simple piece of code to display Player Statistics, that i would like to do as soon!
Yes if you can please PM me your steam id that is useful to retrieve steam's data account. You may have to setup your steam profile setting into your Steam User CP to allow public access to profile information.

I will return over this very soon!

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

So 'i've return over this, and i've take a look to check and the same, the same ... was nice to get all via iframe, like display steam user's profiles directly into any site. CORS and iframe same origin is the problem.

But i've try out to retrieve and display steam pages via php into my localhost, then processed injecting javascript, that prevent onclick events ... then we need to proceed finalizing the joke, by re-processing any click in the background via php, send all via ajax to javascript, and display again the new request (may just substituting the entire body, and injecting the new one (the url request onclick)).

Little confused maybe ...
Soon with an online example: i would like to do an easy light plugin, that may will be suitable to fit with easy any page/online/platform, not only steam.
I mean something like this
ScreenHunter_134 Oct. 10 16.56.jpg
ScreenHunter_134 Oct. 10 16.56.jpg (263.32 KiB) Viewed 7208 times

User avatar
axew3
w3all User
w3all User
Posts: 2117
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Anyone w/ knowledge of Steam API?

Post by axew3 »

Here it is:

Steam ids examples to check for and display, can be passed as steamid=userSteamIdBase64, via $_GET into this working (not so hard tested!) example, so like:

https://www.axew3.com/w3/csgo-stats/?st ... 8043896613
OR
https://www.axew3.com/w3/csgo-stats/?st ... 8813587605

You can get data of any user by passing base64 steam IDS.

steamID64 that for example you can retrieve by username here:
https://steamid.io/lookup/

The provided template to display CSGO Steam results is just an easy RAW example that any php/css template developer will find easy to adapt and improve for an awesome result into any WordPress installation.

Profile user page provided to let setup each WordPress user his own SteamID to display.

Administration provide by default: cache time, Steam Web API Key (that administrator will have to setup), user groups allowed to use.

'easy self-cleaner cache, no "maintenance time" required'
https://www.axew3.com/w3/csgo-stats/

Post Reply