Every game on Steam has a different Game ID (also known as App ID). For instance, looking on my own computer, Portal has an ID of 400
, and FTL: Faster Than Light is 212680
.
How do I find this ID for a specific game on Steam?
Go to the game's store page and check the URL. The last number in the URL is the application ID. All the store URLs are in format store.steampowered.com/app/APPID
, so for Wasteland 2, the URL is http://store.steampowered.com/app/240760/
, and appID 240760.
Another reliable way is to search for the program on steamdb, which will show you the info for games removed from the store as well. The appid is clearly labelled in the search results.
http://steamcommunity.com/app/730/
as the URI, 730 is the app-id for CS:GO and so I can run it from a console (on Linux) with steam steam://run/730
.
Many of the methods above work but I am going to show you an offline version. I am using Windows and uncertain if it works with other systems. If you head into your Steam directory and open SteamApps, and then open common. There you will find a list of games. Open your chosen folder and find "steam_appid". Open it, and it will show the ID in a text document.
find ~/Games/steam/steamapps/common -maxdepth 1 -type d -not -name 'Proton*' -ls | wc -l
=> 67 find ~/Games/steam/steamapps/common -type f -name 'steam_appid.txt' -ls | wc -l => 14
. So 14 out of 67 games have a steam_appid.txt
file.
A list of all your installed steam apps and their appID's can be obtained easily with one line of BASH offline using grep, sed and awk to look at the appmanifest files in Steam/steamapps/(on Linux/Unix)
your path to /steamapps/ may vary if you install your games to a non default place.
grep -n "name" ~/Steam/steamapps/*.acf | sed -e 's/^.*_//;s/\.acf:.:/ /;s/name//;s/"//g;s/\t//g;s/ /-/' | awk -F"-" '{printf "%-40s %s\n", $2, $1}' | sort
Breakdown of what that one line of bash does:
There is an answer for this in the Steam Support, however, it requires you to be running both Steam and Windows.
Taken from Steam Support: Finding the Application ID for a Steam Game:
This process can also be used for Demos, Media, and other products on Steam:
- Login to the Steam account
- Go to your Library
- Right click the installed game and choose "Create desktop shortcut"
- Go to your Desktop and locate the new shortcut
- Right-click on the shortcut and select Properties
- Look at the target path for the number following
steam://rungameid/
. This number is the Application ID for the game.
This answer is another solution that works on Linux (Ubuntu in this case) inspired by the answer by @Slobeck above.
$ find ~/Games/steam/steamapps/ -maxdepth 1 -type f -name '*.acf' -exec awk -F '"' '/"appid|name/{ printf $4 "|" } END { print "" }' {} \; | column -t -s '|' | sort -k 2
285820 Action Henk
290340 Armello
622020 ATV Drift & Tricks
308040 Back to Bed
637090 BATTLETECH
376770 Big Thinkers 1st Grade
376760 Big Thinkers Kindergarten
49520 Borderlands 2
261640 Borderlands: The Pre-Sequel
Substitute the path to your steamapps
directory as appropriate, if you don't know where it is you can run this command to find it:
$ find ~ -type d | grep steamapps
I would be interested to know if this would work on Windows 10 with Windows Subsystem for Linux.
~/.steam/steam/steamapps
for native installations, and something else that I don't know for flatpack.
~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/
for flatpack. Try find ~/.var | grep steamapps
While 3ventic's answer is the easiest way, there is a way to do it which is fully offline and more garunteed than Waddling Pig's answer (as not all games have that steam_appid file) however this will only work for games you have downloaded as this method has you look in the steamapps folder.
in the steamapps folder you'll see a bunch of appmanifest_######.acf
files, the # are the app id for the game, but also other information such as where the game's directory is and it's name. using Notepad++
*.acf
and quickly you should get a result with the highlighted line of the file being the game name, verify this and look at the filename of the .acf file and the number in the name is your id. you can use any other program you are familiar with if it can
this method also has the extra benefit in that if you are looking for where the game files are, the .acf file will have that listed in there too (i have came across the rare instances where game folders in common aren't intuitive to the game they actually are)
If you're using Windows, you can try using this Batch Script to get your Run Game ID. It takes files from %appdata% start menu folder, duplicates, and changes the file extension from ".URL" to ".TXT" Then it read out the output and filter it.
@echo off
REM Set up the Variable
set GameName=Beat Saber
set TempFile=TempFile
REM Prepare for trouble, and make it double
copy "%appdata%\Microsoft\Windows\Start Menu\Programs\Steam\%GameName%.url" "%TEMP%\%TempFile%.txt"
pushd %TEMP%
REM did it work?
IF EXIST "%TempFile%.txt" (
echo Temp file is created!
) ELSE (
echo Uh Oh Stinky!
)
REM read the Temp file and filter the output
FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /I "rungameid" .\%TempFile%.txt`) DO (
SET num=%%F
)
set id=%num:~22,28%
REM did it work?
Echo Your Run Game Id is %id%
REM Lets commit Gammer Moment
start steam://rungameid/%id%
REM clean up the mess
del /f %TempFile%.txt
REM is it clean yet?
IF EXIST "%TempFile%.txt" (
echo Temp File exists
) ELSE (
echo Temp File is no more
)
REM enable for debugging
pause
Steamdb is the best third party resource providing information about steam. It has a huge amount of information available. In order to find a appid
using steamdb load the site and enter the game name in the search box and hit enter.
The returned results provide a list of games including the appid
. You can click on the appropriate appid
to visit the page for that game. Another handy feature is if you have the appid
you can enter it in the search box and it will automatically load the page for that game.
Here is an example using Sokobond (appid 290260)
Not sure if this is new or not, but... I found a Steam client solution!
Right click game -> Properties -> Updates -> App ID
Yay!
None of the above worked (at least easily),
(Just to be clear this works in Ubuntu Linux's Desktop)
One way from another post I read, ... is to make a shortcut on the desktop, and R. Click IT'S properties, and it is in the end of the "Commands:" Line One WILL find the AppID (rungameid).
ex's. (in my Shortcut)
#Name: The Elder Scrolls V Skyrim.desktop
Command: steam steam://rungameid/72850
#
Therefore Elder Scrolls ... appid is 72850
Always trying to Help, Mark