How to get the steam AppID by AppName in Steam WebAPI

我是研究僧i 提交于 2020-05-30 09:51:17

问题


So i'm trying to start a steamgame by entering the name of the game. For this reason I asked myself if it is possible to figure out the steam AppID through the entered name.

So I tried to collect the IDs through my steamApps folder without success. I also found a website where you could search for the name of a specific game.

For example "https://www.steamgriddb.com/api/v2/search/autocomplete/grandtheftautov" returns a json with gtaIV and gtaV

The Problem with that is, that the stamAppID isn't found in the retrieved data.

Also I found an SQL Database (https://steam.internet.byu.edu/) where the steam name and the appID are found. But this wouldn't be my prefered way to go, because the database is 17gb big.


回答1:


You use this API call: https://api.steampowered.com/ISteamApps/GetAppList/v2/

{
    "applist": {
        "apps": [
            {
                "appid": 946180,
                "name": "The Gardens Between Soundtrack"
            },
            {
                "appid": 946190,
                "name": "Loveless cat"
            },
            ...

More info here. The list is huge. Open it with a editor that can handle a huge file. You can search the JSON by name.



来源:https://stackoverflow.com/questions/57441606/how-to-get-the-steam-appid-by-appname-in-steam-webapi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!