Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
How to make http://csgo-stats.com ?
it still doesn't provide what you wanna do.
http://steamcommunity.com/dev
then we want to move to the relevant data we want to pull using the API:
ISteamUserStats: Steam provides methods to fetch global stat information by game.
https://developer.valvesoftware.com/wiki/Steam_Web_API#GetGlobalAchievementPercentagesForApp_.28v0001.29
so now that we are in the right place, we need the right data to get pulled for some reason i also get the achievements when i use:
http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=<APIKEY>&steamid=76561197984713986
because there is another api call for achievements aswell:
http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=730&key=<APIKEY>&steamid=76561197984713986
then you just build some stats with some math and you got yourself a site like csgo-stats.com
EDIT: i would recommend just using GetUserStatsForGame since that is 1 call.
so what you need to do is look at the deprecated xml to get the their competitive stats, now i do not know which leaderboard id you should be looking at but i made the xml for you (pastebin link abit further down):
https://partner.steamgames.com/documentation/community_data
here you need to look at :
Leaderboards
Format: http://steamcommunity.com/stats/<CommunityGameName>/leaderboards/?xml=1
Example: http://steamcommunity.com/stats/L4D/leaderboards/?xml=1
so because we do not know which lbID we should be looking at there is only thing to do and that is to get them all:
we do that by:
http://steamcommunity.com/stats/csgo/leaderboards/0/?xml=1
now you get a lot of stuff u cant read right so i made it all pretty for you:
http://pastebin.com/CM1tHnrk
one you then have the appropiate lbID:
http://steamcommunity.com/stats/csgo/leaderboards/<lbID>/?xml=1&steamid=<steam64id>
from here you are on yoursel because if you by now do not have enough information to continue i would recommend you to stop the project as it might be to hard for you if you do know how to continue from here then good luck i hope to see your site up and running.
I know that you don't know me and there will be no benefit in helping out a random fellow human being.
I've been weeks now searching for the "url" location of the csgo player stats xml file. Specifically the one containing the kills, deaths, wins, lost, accuracy, ect.
I've found a couple links but non of them seam to give me the info that I need.
GATHERED LINK:
1. http://steamcommunity.com/id/joche4de/stats/csgo/?xml=1
2. http://steamcommunity.com/id/joche4de/?xml=1
This links give me some info, but not the ones I'm looking for. I found what would be a possible link but when I try and change the "gameid" to the "csgo gameid (730)", it doesn't work. It just sends me the my profile.
LINK: http://steamcommunity.com/id/joche4de/statsfeed/500/?xml=1&schema=1
All this links where found in the following site:
- https://partner.steamgames.com/documentation/community_data
----------------------------------------------------------------------------
I also found a link that reacquires the players "api key" to work. But using this method will not let me search any csgo player stats freely.
I know there is a way to do this because there are already sites that gather this stats, like;
SITES:
1. csgo-stats.com
2.https://csgo-stats.net
I'm trying to create a program myself because this sites don't provide the functionality that I wish for.
Thanks for taking the time to read this message and I would be extremely great full if you could help me out.
It's pretty simple, csgo-stats.com uses this API call and this API call ONLY:
It contains every piece of information that csgo-stats.com puts on your screen. From bullets shot and hit, windows broken, recent match info, kills, deaths, everything. You just gotta look through it to find what you want.
If you are wondering where you can get the <<KEY>> (API key), just visit this link and follow the instructions on the page: http://steamcommunity.com/dev/apikey
It's a pretty simple thing, it'll just take some time to code all the selectors and stuff. If you don't know how to parse JSON in Javascript, go to http://www.w3schools.com/js/js_json.asp
If you don't know Javascript, you've got a long way to go. I wouldn't go so far as to say "Give up on the project," just educate yourself using the internet. That's how I learned all the languages I know. You can do it if you just dedicate yourself to it, I promise :)
Are you aware of the current situation, because all I get is an empty JSON object (using my API key and my SteamID)
I really wish Valve made the default the current profile visibility, as stats have always been Public anyway, there is no reason to hide them for everyone unless they have decided to do so. It just adds to the hassle for people who want to see their own stats in a better way, like with csgo-stats.com, where now you have to go through your settings to enable it.
Honestly, Valve makes awful choices and I'm positive they always try to make it harder for developers to work with Steam by complicating stuff constantly.
*EDIT*: Just tested myself, I was able to pull your stats. So, I guess you already figured it out?
I figured that it was my profle being private. I tried it with steamDB which then shows hints that it might be the visibility of your profile.
However, I haven't got further because I will deploy the app to firebase and that will take a while. Whenever I am done I will try to parse the data and see how I can work with it.
Thanks for the fast response!