api
api copied to clipboard
Stored empty data objects
Reported by Zadeerade on Discord.
When request app info for app id 2008980 the API returns an empty data object:
$ curl https://api.steamcmd.net/v1/info/2008980
{"data": {"2008980": {}}, "status": "success"
But when this user tried the beta API it does return the proper information:
$ curl https://api.beta.steamcmd.net/v1/info/2008980
{"data": {"2008980": {"_change_number": 27211112, "_missing_token": false, "_sha": "232402fc4687e755888f27d961123241cee665fc", "_size": 5867, "appid": "2008980", "common": {"associations": {"0": {"name": "WIZNWAR", "type": "developer"}, "1": {"name": "FLARB LLC", "type": "developer"}, "2": {"name": "FLARB LLC", "type": "publisher"}, "3": {"name": "WIZNWAR PINBALL", "type": "franchise"}}, "category": {"category_15": "1", "category_2": "1", "category_22": "1", "category_23": "1", "category_25": "1", "category_28": "1", "category_33": "1", "category_62": "1"}, "clienticon": "713ddca9a43bfd591e704c2594fd61d4a38cda03", "clienttga": "19dff438efe2094c8ad2b5b1015bc50a452ae310", "community_hub_visible": "1", "community_visible_stats": "1", "controller_support": "full", "gameid": "2008980", "genres": {"0": "1", "1": "23"}, "header_image": {"english": "header.jpg"}, "icon": "b0c6b9cd1a958b4e41fcd9b0a1b4b8828a748e8a", "library_assets": {"library_capsule": "en", "library_header": "en", "library_hero": "en", "library_logo": "en", "logo_position": {"height_pct": "100", "pinned_position": "CenterCenter", "width_pct": "57.75301943724537"}}, "library_assets_full": {"library_capsule": {"image": {"english": "library_600x900.jpg"}, "image2x": {"english": "library_600x900_2x.jpg"}}, "library_header": {"image": {"english": "ca6dd2a5d93dff9b1288d79361b330ca264eaac1/library_header.jpg"}, "image2x": {"english": "ca6dd2a5d93dff9b1288d79361b330ca264eaac1/library_header_2x.jpg"}}, "library_hero": {"image": {"english": "library_hero.jpg"}, "image2x": {"english": "library_hero_2x.jpg"}}, "library_logo": {"image": {"english": "logo.png"}, "image2x": {"english": "logo_2x.png"}, "logo_position": {"height_pct": "100", "pinned_position": "CenterCenter", "width_pct": "57.75301943724537"}}}, "name": "XENOTILT", "osarch": "64", "osextended": "", "oslist": "windows", "primary_genre": "1", "releasestate": "released", "review_percentage": "96", "review_score": "9", "small_capsule": {"english": "capsule_231x87.jpg"}, "steam_deck_compatibility": {"category": "3", "configuration": {"gamescope_frame_limiter_not_supported": "0", "non_deck_display_glyphs": "0", "primary_player_is_controller_slot_0": "0", "recommended_runtime": "proton-8.0-4", "requires_h264": "1", "requires_internet_for_setup": "0", "requires_internet_for_singleplayer": "0", "requires_manual_keyboard_invoke": "0", "requires_non_controller_launcher_nav": "0", "small_text": "0", "supported_input": "gamepad"}, "test_timestamp": "1694822400", "tested_build_id": "12170965", "tests": {"0": {"display": "4", "token": "#SteamDeckVerified_TestResult_DefaultControllerConfigFullyFunctional"}, "1": {"display": "4", "token": "#SteamDeckVerified_TestResult_ControllerGlyphsMatchDeckDevice"}, "2": {"display": "4", "token": "#SteamDeckVerified_TestResult_InterfaceTextIsLegible"}, "3": {"display": "4", "token": "#SteamDeckVerified_TestResult_DefaultConfigurationIsPerformant"}}}, "steam_release_date": "1731449350", "store_asset_mtime": "1731545628", "store_tags": {"0": "4885", "1": "1646", "10": "1667", "11": "7481", "12": "19", "13": "599", "14": "4305", "15": "3964", "16": "4604", "17": "3952", "18": "3942", "19": "4182", "2": "4255", "3": "3968", "4": "4026", "5": "1733", "6": "1773", "7": "3871", "8": "4791", "9": "4115"}, "supported_languages": {"brazilian": {"supported": "true"}, "english": {"full_audio": "true", "supported": "true"}, "french": {"supported": "true"}, "german": {"supported": "true"}, "italian": {"supported": "true"}, "japanese": {"supported": "true"}, "koreana": {"supported": "true"}, "latam": {"supported": "true"}, "schinese": {"supported": "true"}}, "type": "Game"}, "config": {"installdir": "XENOTILT", "launch": {"0": {"config": {"osarch": "64", "oslist": "windows"}, "executable": "XENOTILT.exe"}}, "steamcontrollerconfigdetails": {"3125400650": {"controller_type": "controller_neptune", "enabled_branches": "default", "use_action_block": "false"}}, "steamcontrollertemplateindex": "1", "steamdecktouchscreen": "1"}, "depots": {"2008981": {"manifests": {"bugsmashers": {"download": "594076288", "gid": "905317900797406753", "size": "1849568949"}, "public": {"download": "594076288", "gid": "905317900797406753", "size": "1849568949"}}}, "baselanguages": "english", "branches": {"bugsmashers": {"buildid": "17109386", "description": "Beta Preview", "timeupdated": "1737658590"}, "public": {"buildid": "17109386", "timeupdated": "1737659212"}}, "privatebranches": "1"}, "extended": {"developer": "WIZNWAR", "homepage": "https://www.xenotilt.com/", "publisher": "FLARB LLC"}, "ufs": {"maxnumfiles": "5", "quota": "1000000", "savefiles": {"0": {"path": "FLARB LLC/XENOTILT", "pattern": "*.txt", "platforms": {"1": "Windows"}, "root": "WinAppDataLocalLow"}, "1": {"path": "FLARB LLC/XENOTILT", "pattern": "*.txt", "platforms": {"1": "MacOS"}, "root": "MacAppSupport"}, "2": {"path": "FLARB LLC/XENOTILT", "pattern": "*.txt", "platforms": {"1": "Linux"}, "root": "LinuxHome"}}}}}, "status": "success"}
Normally when the API functions correctly but the Steam backend simply returned an empty response the API stores and returns this empty data set. Apparently this is incorrect behaviour seeing the fact that the Steam backend returning an empty set does not mean it is actually empty/not available.