Romans Oct 14, 2023 @ 4:56pm
Steam APi. Stats API
Hello I'0m trying to retrieve stats for Source SDK Base 2007 (appid 218), using the endpoint http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2?key=...&steamid=...&appid=218
But it returns {}.
Is there so the way to get theat app stats?
(I'm interested on the hours, that are visible in profiles, like mine)
Thank you
< >
Showing 1-5 of 5 comments
MalikQayum Oct 15, 2023 @ 12:28am 
that api is for stats and achievements and that appid does not have stats or achievements.

https://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1/?key=...&steamid=...

this will get your recently played games only. that means you need to have played the appid the past 2 weeks for it to show up.

alternative you can create a bot account and befriend that bot account and use the endpoint
https://store.steampowered.com/friends/frienddata
Last edited by MalikQayum; Oct 15, 2023 @ 1:09am
Romans Oct 15, 2023 @ 3:21am 
Originally posted by MalikQayum:
that api is for stats and achievements and that appid does not have stats or achievements.

https://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1/?key=...&steamid=...

this will get your recently played games only. that means you need to have played the appid the past 2 weeks for it to show up.

alternative you can create a bot account and befriend that bot account and use the endpoint
https://store.steampowered.com/friends/frienddata

EHm ok that's not for my case.
I need to see that app hours played for everyone that has the profile as public
wuddih Oct 15, 2023 @ 3:32am 
Originally posted by Romans:
EHm ok that's not for my case.
I need to see that app hours played for everyone that has the profile as public
take /GetUserStatsForGame/ literal, the SDK is not a game, it is classified as a tool.

you wont get this data via official means, you have to scrape it yourself and that means ratelimits.
Last edited by wuddih; Oct 15, 2023 @ 3:41am
MalikQayum Oct 15, 2023 @ 7:05am 
the alternatives i provided is the only way to achieve this.
MalikQayum Oct 15, 2023 @ 7:19am 
Originally posted by wuddih:
Originally posted by Romans:
EHm ok that's not for my case.
I need to see that app hours played for everyone that has the profile as public
take /GetUserStatsForGame/ literal, the SDK is not a game, it is classified as a tool.

you wont get this data via official means, you have to scrape it yourself and that means ratelimits.
it doesn't matter if it is a tool or not, all appids are capable of having stats and achievements.

however he doesn't understand what ISteamUserStats/GetUserStatsForGame/ shows, because the api is not for what he thinks it is for. it is for stats and achievements.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Oct 14, 2023 @ 4:56pm
Posts: 5