Trouble fetching user reviews for a game

Avatar image for ykrasik
ykrasik

6

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi,

I'm having some trouble fetching user reviews for a game. Here's what I'm doing, if anyone can please tell me what I'm doing wrong:

* Suppose I want to fetch user reviews for 'Alien: Isolation' for the PC.

1. Search for the game by title and platform: http://www.giantbomb.com/api/games?api_key=[key]&format=json&filter=name%3AAlien%3A+Isolation%2Cplatforms%3A94&field_list=api_detail_url

1.1. The reply contains the following apiDetailsUrl: http://www.giantbomb.com/api/game/3030-44296/

2. Get specific details from the api url: http://www.giantbomb.com/api/game/3030-44296/?api_key=[key]&format=json&field_list=id

2.1. The reply contains the following game_id: 44296

3. Get user reviews for game by id: http://www.giantbomb.com/api/user_reviews?api_key=[key]&format=json&game=44296

3.1 The results are empty. According to the API doc, adding &game=[game_id] should do exactly what I want. The game definitely has user reviews (http://www.giantbomb.com/alien-isolation/3030-44296/user-reviews/).

3.2 Also the API doc seems to be out of date: http://www.giantbomb.com/api/documentation#toc-0-43 One of the fields returned is called 'game'. First of all, it doesn't state whether 'game' is the title or the id of the game, but by trying a few different calls it seems that it's the title. However, in all the examples I tried, the field 'game' was never returned, and instead I got a field called 'wikiObject'. This is not mentioned in the doc anywhere.

3.3 I tried filtering by the game id with the following requests: &game=[game_id] or &filter:game=[game_id] or &filter:object=[game_id] or &filter:wikiObject=[game_id]. None of these worked.

Am I doing something completely wrong or is there a problem with the API?

Regards,

Yevgeny.

Avatar image for krylic
Krylic

1

Forum Posts

10

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By Krylic

You ever figure this out?

Registered to ask same question.

I just want to get average review scores for games (guessing by doing average calculation myself)

Avatar image for tsiro
tsiro

226

Forum Posts

10

Wiki Points

0

Followers

Reviews: 0

User Lists: 2

Bumping this up because I'm running into this same issue still, and have also tried everything in the initial post.

I was also experimenting with fetching staff reviews for games (to see if this was specifically an issue with user reviews), and was able to fetch specific reviews with a &filter=game:[game name], even though the API docs say to switch "game" to "object" when using it in filters. However, this did not translate back to user_reviews.

Avatar image for ismaelc
ismaelc

9

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#5  Edited By ismaelc

Bump!

I guess the endpoint is returning all user review results for all games? It's saying that there are 28K+ results total.

EDIT: Found answer here - http://www.giantbomb.com/forums/api-developers-3017/q-how-to-query-user-reviews-via-the-api-for-a-game-1454356/

Avatar image for toborthegreat
ToborTheGreat

1

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#6  Edited By ToborTheGreat

I can't figure this out either. Trying to fetch user reviews gets me either every single user review for every game, or none at all.

If I use filter=object:3030-15473 (for Metroid Prime) I get 0 review yet the page displays 18 user reviews. (http://www.giantbomb.com/metroid-prime/3030-15473/user-reviews/)

If I do filter=game:3030-15473 I get all 28K+ results.

All I really want is the aggregate score that's displayed on the game page, but I can't find that in the API so I was going to average them by hand...