Avatar image for mldaj
#1 Posted by mldaj (6 posts) -


Ok, so sorry to seem like an idiot but could someone either add here or point me to some sames for the following:

 

1) Pulling reviews for all games for a given platform

2) Pulling a review for a specific game

 

 

What I do not understand is how I get the ID for a given game to pull a review or just get all reviews for a pltform or game type.

 

ANy help is much appreciated :)

Avatar image for lordandrew
#2 Posted by LordAndrew (14598 posts) -

A game resource exposes reviews if a review has been written. Each review has deck, description, publish_date, reviewer and score available. If you do not yet know the ID of the game, use the search resource to find it.

Platform resources do not list the games that are available on that platform, which means you can't determine which games are available on any given platform using the API unless you retrieve the data for every game (currently over 30000, I believe) and look at its platforms.

Avatar image for mldaj
#3 Posted by mldaj (6 posts) -

@LordAndrew:

Thank you for the help.  If you are using the Search API and are searching for Halo, how can you limit the search so it only looks for exactly Halo and not all games that have Halo in their name?

Avatar image for lordandrew
#4 Posted by LordAndrew (14598 posts) -
@mldaj: You can't, because that would make too much sense. :P

Unfortunately, the search function on the site and the search function in API do not work the same way.
Avatar image for mldaj
#5 Posted by mldaj (6 posts) -

@LordAndrew:

Thank you again for the help. 

Avatar image for mldaj
#6 Posted by mldaj (6 posts) -
Avatar image for pkjr92
#7 Edited by pkjr92 (71 posts) -
Avatar image for lordandrew
#8 Posted by LordAndrew (14598 posts) -
Avatar image for elizeu
#9 Posted by elizeu (2 posts) -

This issue seems to be fixed, however, considering I'm new to the API I might be missing a step.

I get the game info from its api_detail_url, for example: api.giantbomb.com/game/17463/?api_key=KEY

The response is fine and contains the field:

... <number_of_user_reviews>3</number_of_user_reviews>...

However, the field reviews is empty. How can I get to the individual reviews for a game without its ID?

Thanks in advance.

Avatar image for nixnodes
#10 Edited by nixnodes (5 posts) -

#9 Posted by elizeu (1 posts) - 1 year, 2 months ago

This issue seems to be fixed, however, considering I'm new to the API I might be missing a step.

I get the game info from its api_detail_url, for example: api.giantbomb.com/game/17463/?api_key=KEY

The response is fine and contains the field:

... <number_of_user_reviews>3</number_of_user_reviews>...

However, the field reviews is empty. How can I get to the individual reviews for a game without its ID?

Thanks in advance.

I'm wondering the same thing..