【问题标题】:Steam API getOwnedGames showing games not in librarySteam API getOwnedGames 显示不在库中的游戏
【发布时间】:2013-08-24 13:31:04
【问题描述】:

我正在尝试使用 Steam API 来获取有关用户在他们的库中拥有的游戏的一些信息。

当我使用我的 SteamID 获得游戏时,我会看到诸如 Source SDK 之类的东西以及许多演示和其他在技术上不是我购买的游戏的东西。

有什么过滤器可以隐藏这些东西吗?

This is the API information about the GetOwnedGames call

【问题讨论】:

    标签: java steam-web-api


    【解决方案1】:

    一种可能性是过滤具有"playtime_forever": 0 的“游戏”。

    例如,这将从下面的 sn-p 过滤 appid 9、92、211。

            {
                "appid": 9,
                "playtime_forever": 0
            },
            {
                "appid": 92,
                "playtime_forever": 0
            },
            {
                "appid": 211,
                "playtime_forever": 0
            },
            {
                "appid": 440,
                "playtime_2weeks": 188,
                "playtime_forever": 107307
            },
    

    不过,这将为您捕获所有内容,因为“玩过”这些游戏的人将有游戏时间。因此,对于上述内容,您会过滤掉 Source SDK,但对于使用过它的其他用户,SDK 会出现。

    【讨论】:

    • 谢谢,那我得选择这个选项了。
    猜你喜欢
    • 1970-01-01
    • 2018-03-02
    • 2018-02-11
    • 2022-12-12
    • 1970-01-01
    • 2021-11-29
    • 2015-01-20
    • 2021-01-26
    • 1970-01-01
    相关资源
    最近更新 更多