【问题标题】:Get Steam games of a certain genre获取特定类型的 Steam 游戏
【发布时间】:2020-04-25 00:14:37
【问题描述】:

我知道 Steam API 调用:http://api.steampowered.com/ISteamApps/GetAppList/v0002

这会返回 Steam 上的所有应用。但是我必须进行什么 GET 调用才能仅返回指定类型的游戏?

【问题讨论】:

    标签: steam-web-api


    【解决方案1】:

    你快到了。

    您只需在 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=Simulation

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

    参考资料:

    【讨论】:

    • 我尝试了该 RPG URL,但我认为它会返回所有应用程序,或者至少它包括缺少 RPG 标签的应用程序。它返回的一个应用程序是这样的,例如:store.steampowered.com/api/appdetails?appids=1158990。就我而言,我想专门按类型缩小游戏范围。在应用 1158990 的 URL 中,生成的 JSON 中有一个“流派”属性。
    • 发布者可能标记错误或使用了多个标记。
    • 在标签上尝试大写 T
    • 大写 T 生成一个空 JSON 对象:api.steampowered.com/ISteamApps/GetAppList/v0002/?Tag=RPG
    猜你喜欢
    • 2018-02-09
    • 2021-11-29
    • 2018-02-11
    • 2020-10-21
    • 2016-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多