View Full Version : Steam API / Getting Achievements via php
VargTimmen
01-05-2009, 04:08 PM
Hi there,
I currently searching a steam API or an existing script, which gets achievements from a public Profile and shows them in a php-site.
There ist a yahoo pipe (http://pipes.yahoo.com/czottmann/steam_achievements), but due it set up to an own framework, so it cant be run on our server.
Do you know any application or is there a steam API, so we can code it by ourselve?
Greetings from germany
Benny
TheMG
01-05-2009, 04:32 PM
You may want to get in touch with this SUF member (http://forums.steampowered.com/forums/member.php?u=304636), he has created some sort of API for the Steam Community. Not sure if it does what you're looking for, but it's worth a try.
Kapitein Iglo
01-06-2009, 02:00 AM
Or just link to this website: http://dev.zr40.nl/steam/ :)
VargTimmen
01-06-2009, 02:01 AM
Thank you for your help. I will write him a pm.
Kapitein Iglo:
This loooks good, too. Could you give me (some) code to review it?
Kapitein Iglo:
This loooks good, too. Could you give me (some) code to review it?
If I were you I would contact him (http://forums.steampowered.com/forums/member.php?u=464415).
VargTimmen
01-06-2009, 04:45 AM
Didn't saw it was him. I just wrote zr40 an e-mail.
But thanks for the hint :)
WaLLy3K
01-08-2009, 07:21 AM
If you have your own PHP5 server, I can pass on a script that uses SimpleXML (http://w3k.id.au/scp.php) to simply parse the information for any given Steam user and cache it. What you do with that info is up to you. ;)
As for achievements, there are page parsers out there that can do it - I have one floating around but I can't remember who made it because it certainly isn't mine.
big_w77
07-24-2009, 10:35 AM
@VargTimmen Hi, would love to see what api information you got? looking to do a project on this myself.
lazzy
11-01-2009, 01:07 PM
I am writing something similar to a steam api. I know this post is almost a year late but searching google for steam api, this was the first thing to pop up. Anyway, I am using simplehtmldom (http://simplehtmldom.sourceforge.net/) to pull information from the users profile and store it into a mysql database. Just view the source html from the steam profile and get all the div ids that you want to pull. You will need to users profile id or custom link though, and if steam were to ever change the site, you would have to go back and change your script.
Fuzz Bucket
11-01-2009, 01:11 PM
I am writing something similar to a steam api. I know this post is almost a year late but searching google for steam api, this was the first thing to pop up. Anyway, I am using simplehtmldom (http://simplehtmldom.sourceforge.net/) to pull information from the users profile and store it into a mysql database. Just view the source html from the steam profile and get all the div ids that you want to pull. You will need to users profile id or custom link though, and if steam were to ever change the site, you would have to go back and change your script.
That's what I did with my original API, however, I did not use simplehtmldom, I just employed screen scraping with PCRE patterns. I dropped the project when they started changing the structure of the pages too frequently to make it worth the time.
ProphetOfLulz
10-11-2010, 05:11 PM
Anyone who posted in this thread still around? I'm working on a kind of ultimate gamercard system that pulls achievements from PSN, Live, Steam etc etc (I suspect it's been done but my interest is mainly academic).
Just wondering if any of the helpful people in this thread still have useful PHP scripts lying around that they'd be willing to share?
Fuzz Bucket
10-11-2010, 05:18 PM
Screen scrape.
ProphetOfLulz
10-11-2010, 05:24 PM
Screen scrape.
Worst case solution, but it's just so inelegant.
Fuzz Bucket
10-11-2010, 05:28 PM
Worst case solution, but it's just so inelegant.
Not really any other option at the moment. That's what I had to do three years ago (I think that's how long it was) and it's still what you have to do today.
Little data is available through Valve's Web API.
ProphetOfLulz
10-11-2010, 06:15 PM
Not really any other option at the moment. That's what I had to do three years ago (I think that's how long it was) and it's still what you have to do today.
Little data is available through Valve's Web API.
Blast. Thanks for filling me in, I guess I'll just need to do it this way :(
Appreciate your advice!
asherkin
10-13-2010, 10:37 AM
https://partner.steamgames.com/documentation/community_data
It's all there, make sure to read carefully though or you may miss something :P.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.