Currently, I am trying to get all the steam reviews from a particular game, using the method described in the Steamworks documentation: https://partner.steamgames.com/doc/store/getreviews
目前,我正在使用Steamworks文档中描述的方法:https://partner.steamgames.com/doc/store/getreviews,从一个特定的游戏中获取所有的steam评测
However, when I try to get reviews for a game like Team Fortress 2 for example using the method: http://store.steampowered.com/appreviews/440?json=1 I always get 20 reviews, due to the start_offset parameter.
然而,当我试图获得像Team Fortress 2这样的游戏的评论时,我使用的方法是:http://store.steampowered.com/illus/440?由于start_offset参数,我总是得到20个评论。
Is there a way to get all the reviews in one method command, or do I have to create a loop with different start_offset?
是否有一种方法可以在一个方法命令中获取所有的评论,或者我必须用不同的start_offset创建一个循环?
1 个解决方案
#1
1
Taplar mentioned it correctly in his comment. start_offset - reviews are returned in batches of 20, so pass 0 for the first set, then 20 for the next set, etc.
You need to use the offset like this:
塔普拉在他的评论中正确地提到了这一点。start_offset -评审以20个批次返回,所以第一个集合为0,下一个集合为20,等等。
- http://store.steampowered.com/appreviews/10?json=1&start_offset=0
- http://store.steampowered.com/appreviews/10?json=1&start_offset=0
- http://store.steampowered.com/appreviews/10?json=1&start_offset=20
- http://store.steampowered.com/appreviews/10?json=1&start_offset=20
- http://store.steampowered.com/appreviews/10?json=1&start_offset=40
- http://store.steampowered.com/appreviews/10?json=1&start_offset=40
For a game like DOTA 2 there are like 650,000+ reviews. If you imagine yourself in Valve's place it would make sense to limit API calls. So I think it's safe to say that there is no API for all reviews at once.
对于像DOTA 2这样的游戏,有65万的评论。如果您设想自己处于Valve的位置,那么限制API调用是有意义的。所以我认为可以肯定地说,所有的评论都没有API。
#1
1
Taplar mentioned it correctly in his comment. start_offset - reviews are returned in batches of 20, so pass 0 for the first set, then 20 for the next set, etc.
You need to use the offset like this:
塔普拉在他的评论中正确地提到了这一点。start_offset -评审以20个批次返回,所以第一个集合为0,下一个集合为20,等等。
- http://store.steampowered.com/appreviews/10?json=1&start_offset=0
- http://store.steampowered.com/appreviews/10?json=1&start_offset=0
- http://store.steampowered.com/appreviews/10?json=1&start_offset=20
- http://store.steampowered.com/appreviews/10?json=1&start_offset=20
- http://store.steampowered.com/appreviews/10?json=1&start_offset=40
- http://store.steampowered.com/appreviews/10?json=1&start_offset=40
For a game like DOTA 2 there are like 650,000+ reviews. If you imagine yourself in Valve's place it would make sense to limit API calls. So I think it's safe to say that there is no API for all reviews at once.
对于像DOTA 2这样的游戏,有65万的评论。如果您设想自己处于Valve的位置,那么限制API调用是有意义的。所以我认为可以肯定地说,所有的评论都没有API。