This project uses the Steam Web API to fetch your TF2 player statistics, like the ones you are already able to view on Steam, however, it also includes some hidden statistics that you don't have easy access to, such as your playtime for each class in Mann vs. Machine (and many others like total damage dealt for each class!) or your total playtime on a number of official maps such as plr_hightower, pl_upward, etc.
Be aware that achievement stats stop counting once you have met the requirements for obtaining the achievement the stat pertains to.
Requirements:
- A
SteamID64
which looks like this:76561198076611413
- You can find yours using sites like SteamID I/O
- The Steam profile needs to have its "Game details" privacy setting set to public for the API to work!
- A Steam API key for your account which you can find (or generate if you do not have one) on this Steam page
- DO NOT SHARE your API key with anybody!
Once you have a Steam ID and an API key, you may either run the program via the command line/terminal and use your Steam ID and API key as program arguments (i.e. $ tf-steam-api-parser steamid64 apikey
) or you can just open it without specifying any arguments and it should manually ask you for your Steam ID and API key.
When it is done fetching the data and parsing it (it should be near instant), the output will be a Markdown file called stats.md
which contains all TF2 statistics for the Steam account.
You can find precompiled binaries by going to the Actions tab on GitHub, selecting the latest successful run for your platform and downloading the artifact.
Requirements:
Clone the repository:
git clone https://github.com/Hat-Kid/tf-steam-api-parser.git
Set up Conan if you haven't already:
- Create a new default profile:
conan profile new default --detect
- (If using GCC, additionally set
compiler.libcxx
to the C++11 standard with the following command:conan profile update settings.compiler.libcxx=libstc++11 default
)
- (If using GCC, additionally set
- Open a terminal in the repository root and install the dependencies:
conan install . -s build_type=Release --install-folder=build
- If you get an error about missing packages, you may have to manually build these dependencies for your particular platform by adding
--build missing
to the previous command
- If you get an error about missing packages, you may have to manually build these dependencies for your particular platform by adding
- Set up CMake:
cmake -B build -DCMAKE_BUILD_TYPE=Release
- Build:
cmake --build build --config Release