Filtering reviews by score

Avatar image for hereallday
HereAllDay

511

Forum Posts

90

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By HereAllDay

I'm trying to filter reviews by score(which should be possible according to the API docs) but not having much luck. I have tried:

https://www.giantbomb.com/api/reviews/?api_key=xxx&format=json&field_list=deck,score,game&filter=score:5

https://www.giantbomb.com/api/reviews/?api_key=xxx&format=json&field_list=deck,score,game&filter=score:"5"

And in both cases I get back an empty list of results with status code 1, which makes it seem like it is getting through to the API successfully.

Doing a sort=score:asc/desc should also work for my use case but I'd rather do a filter.

Thanks!

Avatar image for igrat
igrat

31

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#3  Edited By igrat

Even though the /reviews endpoint returns scores on a scale of 1-5, when filtering them, you have to treat them as if they were percentages, where 5 is 100%. So for reviews with score 1, you'd use "&filter=score:20", for reviews with score 2 you'd use "&filter=score:40", etc.

It's not very intuitive. I only know because I randomly clicked on this thread.

Avatar image for hereallday
HereAllDay

511

Forum Posts

90

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#4  Edited By HereAllDay

@igrat : Holy crap man, thank you so much for that, I would not have figured it out!