steamcmd/api

no data returned for a 3 month-old game

vesper8 opened this issue · 4 comments

Your example works fine: curl -X GET 'https://api.steamcmd.net/v1/info/740'

But I tried running the same command with Cyberpunk 2077's appid

curl -X GET 'https://api.steamcmd.net/v1/info/1091500'

And it says No information for this specific app id could be found on Steam

I don't understand why that is?

Also, can I retrieve patch notes for games using your API?

Thanks!

Windows-only tools are not properly working yet. See issue #16. Sadly this is a bug that is not easily fixed seeing this originates from weird behaviour of the steamcmd command. Hopefully I can find the time in the near future to have a more in-depth look into the issue. For now I would suggest to follow issue #16 for updates on the problem.

The steamcmd api does not support patch notes because it only uses output from the actual steamcmd command and sadly that command does not return patch notes. You can see the original output for yourself by using the steamcmd/steamcmd docker container. For example:

~/ $ docker run -ti steamcmd/steamcmd:latest +login anonymous +app_info_print 740 +quit
Redirecting stderr to '/root/.steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (0 of 16,258 KB)...
[  0%] Downloading update (51 of 16,258 KB)...
[  0%] Downloading update (492 of 16,258 KB)...
[  3%] Downloading update (1,187 of 16,258 KB)...
[  7%] Downloading update (2,225 of 16,258 KB)...
[ 13%] Downloading update (3,492 of 16,258 KB)...
[ 21%] Downloading update (4,881 of 16,258 KB)...
[ 30%] Downloading update (6,033 of 16,258 KB)...
[ 37%] Downloading update (7,401 of 16,258 KB)...
[ 45%] Downloading update (8,553 of 16,258 KB)...
[ 52%] Downloading update (9,869 of 16,258 KB)...
[ 60%] Downloading update (11,021 of 16,258 KB)...
[ 67%] Downloading update (12,301 of 16,258 KB)...
[ 75%] Downloading update (13,325 of 16,258 KB)...
[ 81%] Downloading update (14,618 of 16,258 KB)...
[ 89%] Downloading update (15,777 of 16,258 KB)...
[ 97%] Downloading update (16,258 of 16,258 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
Redirecting stderr to '/root/.steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
AppID : 740, change number : 10978012/10978012, last change : Tue Mar 16 17:04:17 2021
"740"
{
	"common"
	{
		"name"		"Counter-Strike Global Offensive - Dedicated Server"
		"type"		"Tool"
		"oslist"		"windows,linux"
		"gameid"		"740"
	}
	"extended"
	{
		"developer"		""
		"gamedir"		"Counter-Strike Global Offensive Beta Dedicated Server"
		"homepage"		""
		"icon"		""
		"noservers"		"0"
		"primarycache"		"740"
		"sourcegame"		"1"
		"state"		"eStateTool"
		"visibleonlywheninstalled"		"1"
		"visibleonlywhensubscribed"		"1"
	}
	"config"
	{
		"launch"
		{
			"0"
			{
				"executable"		"testapp.exe"
			}
		}
		"contenttype"		"3"
		"installdir"		"Counter-Strike Global Offensive Beta - Dedicated Server"
	}
	"depots"
	{
		"731"
		{
			"name"		"Counter-Strike Global Offensive Beta Common"
			"systemdefined"		"1"
			"manifests"
			{
				"public"		"3868545195435035445"
				"1.37.8.0"		"4061169529941044254"
				"1.37.8.1"		"5810132309331515014"
				"1.37.8.2"		"5243795081231363774"
				"1.37.8.3"		"6518032045682955599"
			}
			"maxsize"		"26243875063"
			"encryptedmanifests"
			{
				"1.37.7.9"
				{
					"encrypted_gid_2"		"52A85BFDA64528C20C4E84FA09A3E8EA"
					"encrypted_size_2"		"8D6302D8B0B0948296F5FFC1F7D52E5A"
				}
				"dprs"
				{
					"encrypted_gid_2"		"D0727220F3483AC9614CDB4775997F02"
					"encrypted_size_2"		"2C93C023E44BDCC57F20BE5959033C34"
				}
			}
		}
		"740"
		{
			"name"		"Counter-Strike Global Offensive Beta - Dedicated Server"
			"systemdefined"		"1"
			"manifests"
			{
				"public"		"7013374838165169966"
				"1.37.8.0"		"8180896014047283157"
				"1.37.8.1"		"8594976111195414936"
				"1.37.8.2"		"457482947303064656"
				"1.37.8.3"		"1905188474231576923"
			}
			"maxsize"		"1854815369"
			"encryptedmanifests"
			{
				"1.37.7.9"
				{
					"encrypted_gid_2"		"FDBB6E1562DF11AA41DABD030E92CC43"
					"encrypted_size_2"		"85E813C26501BD6F349F360A97F49E1E"
				}
				"dprs"
				{
					"encrypted_gid_2"		"265245B816988510BFD1FD575DA2CEB8"
					"encrypted_size_2"		"6D20BEC0DB9432A5FB8C1E3447BEBBF8"
				}
			}
		}
		"overridescddb"		"1"
		"branches"
		{
			"public"
			{
				"buildid"		"6385531"
				"timeupdated"		"1615852547"
			}
			"1.37.7.9"
			{
				"buildid"		"6154962"
				"description"		"1.37.7.9"
				"pwdrequired"		"1"
				"timeupdated"		"1612893933"
			}
			"1.37.8.0"
			{
				"buildid"		"6185846"
				"description"		"1.37.8.0"
				"timeupdated"		"1612894215"
			}
			"1.37.8.1"
			{
				"buildid"		"6255987"
				"description"		"1.37.8.1"
				"timeupdated"		"1613613633"
			}
			"1.37.8.2"
			{
				"buildid"		"6296725"
				"description"		"1.37.8.2"
				"timeupdated"		"1614304052"
			}
			"1.37.8.3"
			{
				"buildid"		"6314191"
				"description"		"1.37.8.3"
				"timeupdated"		"1614650066"
			}
			"dprs"
			{
				"buildid"		"2479775"
				"description"		""
				"pwdrequired"		"1"
				"timeupdated"		"1517267346"
			}
		}
	}
}

Or in your case (sadly with no output):

~/ $ docker run -ti steamcmd/steamcmd:latest +login anonymous +app_info_print 1091500 +quit
Redirecting stderr to '/root/.steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (0 of 16,258 KB)...
[  0%] Downloading update (0 of 16,258 KB)...
[  0%] Downloading update (60 of 16,258 KB)...
[  0%] Downloading update (318 of 16,258 KB)...
[  1%] Downloading update (727 of 16,258 KB)...
[  4%] Downloading update (1,264 of 16,258 KB)...
[  7%] Downloading update (1,706 of 16,258 KB)...
[ 10%] Downloading update (2,476 of 16,258 KB)...
[ 15%] Downloading update (2,821 of 16,258 KB)...
[ 17%] Downloading update (2,911 of 16,258 KB)...
[ 17%] Downloading update (3,315 of 16,258 KB)...
[ 20%] Downloading update (3,993 of 16,258 KB)...
[ 24%] Downloading update (5,070 of 16,258 KB)...
[ 31%] Downloading update (6,430 of 16,258 KB)...
[ 39%] Downloading update (7,592 of 16,258 KB)...
[ 46%] Downloading update (8,821 of 16,258 KB)...
[ 54%] Downloading update (10,105 of 16,258 KB)...
[ 62%] Downloading update (11,276 of 16,258 KB)...
[ 69%] Downloading update (12,556 of 16,258 KB)...
[ 77%] Downloading update (13,836 of 16,258 KB)...
[ 85%] Downloading update (14,988 of 16,258 KB)...
[ 92%] Downloading update (16,146 of 16,258 KB)...
[ 99%] Downloading update (16,258 of 16,258 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
Redirecting stderr to '/root/.steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
No app info for AppID 1091500 found, requesting...

Alright.. thanks for explaining. I'm not totally clear what it is you said about windows-only tools though. But is the bottom line that currently your api doesn't return data for all steam apps released after a certain time? I haven't tried others but since Cyberpunk 2077 was released in December is that a safe assumption to have?

Or does this only affect.. windows-only apps/games ?

Anyway am glad to know you're aware of it and hopefully a workaround or fix will be developed soon.

Thanks for your work on this!

No, that is most likely not the problem. The main reason (for most people) for using the SteamCMD API is to retrieve information on dedicated servers and tools that can be installed with the steamcmd command line tool. Therefor the apps where info is retrieved for is 99/100 times a server/tool that made for Linux or at least compatible with Linux.

Most games are made only available for Windows (and not Linux) so therefor the SteamCMD API cannot retrieve information for them (for now). Hopefully a fix can be find in #16.

Are there other apps that you could not retrieve that you think should work?

Ah I see. No to be honest Cyberpunk 2077 was literally the first one that I tried and when I saw that no results were returned I deemed that this library is not something that is useful to me at the moment so I instead just built my own steamdb web scraper to get the data my client needs.

I'll definitely keep an eye out and may use this sometime in the future.