获取特定类型的Steam游戏



我了解Steam API调用:http://api.steampowered.com/ISteamApps/GetAppList/v0002

这将返回Steam上的所有应用程序。但是,我必须做出什么GET调用才能只返回特定类型的游戏?

您就快到了。

您只需要在API调用中添加查询参数。

像这样:

http://api.steampowered.com/ISteamApps/GetAppList/v0002/?tag=RPG

测试:http://api.steampowered.com/ISteamApps/GetAppList/v0002/?tag=RPG

或使用返回倍数

http://api.steampowered.com/ISteamApps/GetAppList/v0002/?tag=Casual&tag=Simulation

测试:http://api.steampowered.com/ISteamApps/GetAppList/v0002/?tag=Casual&tag=模拟

以下是流派标签列表:https://partner.steamgames.com/doc/store/tags

参考文献:

  • https://partner.steamgames.com/doc/api
  • https://developer.valvesoftware.com/wiki/Steam_Web_API
  • https://partner.steamgames.com/doc/store/tags

最新更新