Steam API all games

后端 未结 2 455
灰色年华
灰色年华 2021-02-04 01:04

I\'ve been reading forums and trying Steam APIs, I\'m searching for an API which provides all Steam Games.

I found the API providing all SteamApps, and the Steam Store AP

相关标签:
2条回答
  • 2021-02-04 01:17

    There is no "Steam API all games and all their details in one go".

    You use GetAppList to get all the steam apps. Then you have to query each app with appdetails which will take a long time.

    • GetAppList : http://api.steampowered.com/ISteamApps/GetAppList/v0002/?key=STEAMKEY&format=json
    • appdetails : http://store.steampowered.com/api/appdetails?appids={APP_ID}

    There is a general API rate limit for each unique IP adress of 200 requests in five minutes which is one request every 1.5 seconds.

    Another solution would be to use a third-party service such as SteamApis which offers more options but they are inevitably bound to what Steam offers in their API.

    0 讨论(0)
  • 2021-02-04 01:24

    A common method here is to cache the results.

    So for example, if your using something like PHP to query the results, you would do something like json_encode and json_decode with an array / object to hold the last results.

    You can get fancy depending on what you want, but basically you'll need to cache and then perform an update of the oldest.

    0 讨论(0)
提交回复
热议问题