#1 Edited by CodingMaster (3 posts) -

I am trying to obtain Genre for all results of my search on the Giantbomb API.

I see that it is available as a field on the Game resource. But if I add it as a field listing or just have no field listing I do not get a genre value returned. Has anyone had this issue? I'm I doing something wrong?

Any help would be greatly appreciated.

Below are my queries:



#2 Posted by audioBusting (1776 posts) -

As far as I know, the search and games resources do not return the games' genres. It does return in the individual game resource, for example with http://www.giantbomb.com/api/game/2950/?api_key=[KEY]&field_list=id,name,genres

That feature has been requested in the Feature Requests thread a long time ago, so I guess you just have to work around it for now.

#3 Posted by LordAndrew (14588 posts) -

Collection results never include everything, and you can't force those missing field to appear.

If you haven't already done so, you can make a second query for each result requesting only the genre, then update your UI to include that genre.