https://developer.yahoo.com/fantasysports/guide/game-resource.html
所以在API指南上,在stat_categories下,有一组id,
https://fantasysports.yahooapis.com/fantasy/v2/game/nba/stat_categories
但是当我查看我发出的所有 API 请求中的 json 数据时,没有
{'stats': [{'stat': {'stat_id': 0,
'name': 'Games Played',
'display_name': 'GP',
'sort_order': '1',
'position_types': [{'position_type': 'P'}]}}
在上面。
这是我的 json 数据的结果。正如您在下面看到的,没有 stat_id = 0 或 1 或 2。但它以 3 开头。
'stats': [{'stat': {'stat_id': '3', 'value': '3473'}},
{'stat': {'stat_id': '4', 'value': '1625'}},
{'stat': {'stat_id': '6', 'value': '920'}},
{'stat': {'stat_id': '7', 'value': '713'}},
{'stat': {'stat_id': '9', 'value': '1069'}},
{'stat': {'stat_id': '10', 'value': '384'}},
{'stat': {'stat_id': '12', 'value': '4347'}},
{'stat': {'stat_id': '13', 'value': '408'}},
{'stat': {'stat_id': '15', 'value': '1792'}},
{'stat': {'stat_id': '16', 'value': '1016'}},
{'stat': {'stat_id': '17', 'value': '271'}},
{'stat': {'stat_id': '18', 'value': '132'}},
{'stat': {'stat_id': '19', 'value': '586'}},
{'stat': {'stat_id': '27', 'value': '63'}},
{'stat': {'stat_id': '28', 'value': '3'}}]
谁能帮我这个?
我需要每天玩的游戏数量来进行分析。