Counter-Strike 2

Counter-Strike 2

View Stats:
return 1; May 18, 2015 @ 7:32am
API For CS GO
Hello! I must get match detalis by CS GO Api. For Dota 2 this: https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?match_id=%id%
How to use this for CS GO? And where is the documentation for CS GO?
Last edited by return 1;; May 18, 2015 @ 7:32am
< >
Showing 1-15 of 40 comments
wuddih May 18, 2015 @ 7:48am 
this is just for dota, for csgo there is no such a thing yet.
return 1; May 18, 2015 @ 7:50am 
Originally posted by wuddih:
this is just for dota, for csgo there is no such a thing yet.

How to make http://csgo-stats.com ?
wuddih May 18, 2015 @ 7:58am 
Originally posted by return 0:
Originally posted by wuddih:
this is just for dota, for csgo there is no such a thing yet.

How to make http://csgo-stats.com ?
via the web api ;)

it still doesn't provide what you wanna do.
return 1; May 18, 2015 @ 8:01am 
Originally posted by wuddih:
via the web api ;)

it still doesn't provide what you wanna do.
It can be an example of how this is done on the csgo-stats.com ?
Last edited by return 1;; May 18, 2015 @ 8:15am
wuddih May 18, 2015 @ 8:16am 
Originally posted by return 0:
Originally posted by wuddih:
via the web api ;)

it still doesn't provide what you wanna do.
It can be an example of how this is done on the csgo-stats.com ?
ask the guy who made that site then.
ReBoot May 18, 2015 @ 8:18am 
Originally posted by return 0:
Originally posted by wuddih:
via the web api ;)

it still doesn't provide what you wanna do.
It can be an example of how this is done on the csgo-stats.com ?
He just crawls the profiles. You can do that too.
MalikQayum May 18, 2015 @ 8:29am 
he actually uses the api, the thing is you need to start here:
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.
Last edited by MalikQayum; May 18, 2015 @ 8:32am
return 1; May 18, 2015 @ 9:17am 
Originally posted by MaLeK87:
he actually uses the api, the thing is you need to start here:
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.
Thanks you!
return 1; May 18, 2015 @ 9:48am 
Originally posted by MaLeK87:
he actually uses the api, the thing is you need to start here:
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.
Hmmm... Can you said where competitive stats?
MalikQayum May 18, 2015 @ 11:14am 
Originally posted by return 0:
Originally posted by MaLeK87:
he actually uses the api, the thing is you need to start here:
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.
Hmmm... Can you said where competitive stats?
now i do not have a genuine interest in this project of yours and my help will be limited, i probably wont be able to help u more than this:

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.
Last edited by MalikQayum; May 18, 2015 @ 11:21am
jochenoyoshi.com Sep 19, 2015 @ 7:23pm 
Hi. I'm sorry if this seams rather odd but I have a question that I would like to ask you.

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.
Almic Jul 31, 2016 @ 4:03pm 
READ THIS
I'm posting this just as a general answer to anyone else with the same question who is looking through, seeing a bunch of links, and wondering where to begin.

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 :)
Last edited by Almic; Jul 31, 2016 @ 4:05pm
I bims 1 Ede Jun 21, 2018 @ 12:50am 
Originally posted by Almic:
READ THIS
I'm posting this just as a general answer to anyone else with the same question who is looking through, seeing a bunch of links, and wondering where to begin.

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)
Almic Jun 22, 2018 @ 11:22pm 
Yeah, so since Steam is a piece of ♥♥♥♥ they made stats "Friends-Only" by default as part of a new security update. No idea why they made that the default, but this is likely the cause of your problems. What really happens is that when the stats are private, meaning it is not explicitly "Public," then Steam returns a 500 Internal Server Error (those idiots!) instead of telling you that the stats are private. So, you have to make sure your user accounts have set their stats to be "Public".

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?
Last edited by Almic; Jun 22, 2018 @ 11:26pm
I bims 1 Ede Jun 23, 2018 @ 5:58am 
Originally posted by Almic:
Yeah, so since Steam is a piece of ♥♥♥♥ they made stats "Friends-Only" by default as part of a new security update. No idea why they made that the default, but this is likely the cause of your problems. What really happens is that when the stats are private, meaning it is not explicitly "Public," then Steam returns a 500 Internal Server Error (those idiots!) instead of telling you that the stats are private. So, you have to make sure your user accounts have set their stats to be "Public".

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!
< >
Showing 1-15 of 40 comments
Per page: 1530 50

Date Posted: May 18, 2015 @ 7:32am
Posts: 40