Can't return genres or platforms for a search query..

Avatar image for earful
earful

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By earful

I'm trying to return the genres and platforms of a searched game in the application I'm developing, and for now am using XML (though will likely switch to JSON soon). I'm using the following search string:

http://api.giantbomb.com/search/?query=[myquery]&resources=game&field_list=name,image,genres,platforms&api_key=[mykey]&format=xml

It's returning name and image perfectly, but there's no sign of platforms or genres in the list. Is this something to do with them perhaps having multiple values? How will it return them?

Avatar image for claiver
claiver

16

Forum Posts

14

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By claiver

As you can see here (look at the /games/ section) there is only a limited amount of fields you can retrieve through the /games/ object type. If you want more information I believe the only way is to get the game with api.giantbomb.com/game/<id>/ :o