Steam API all games

女生的网名这么多〃 提交于 2019-12-04 16:25:51

问题


I've been reading forums and trying Steam APIs, I'm searching an API which provide all Steam Games. I found the API providing all SteamApps, and the Steam Store API wich provide infos for Apps (i'm looking for the type: 'game'), but for this I need to call the store API once for each SteamApp ... And the Store API is limited to 200 calls for 5min ! Is it the only solution ?

EDIT :

All Apps API : http://api.steampowered.com/ISteamApps/GetAppList/v0002/?key=STEAMKEY&format=json

App details API : http://store.steampowered.com/api/appdetails?appids={APP_ID}


回答1:


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.



来源:https://stackoverflow.com/questions/46330864/steam-api-all-games

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