Returning Genre in Search Results

Avatar image for codingmaster
CodingMaster

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By CodingMaster

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:

format=json&query="assassin%27s%20Creed"&resources=game

format=json&query="assassin%27s%20Creed"&resources=game&field_list=id,name,genres

Avatar image for audiobusting
audioBusting

2581

Forum Posts

5644

Wiki Points

0

Followers

Reviews: 4

User Lists: 26

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.

Avatar image for lordandrew
LordAndrew

14609

Forum Posts

98305

Wiki Points

0

Followers

Reviews: 0

User Lists: 36

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.