Api ignores specified filter

Avatar image for cyborgx7
cyborgx7

216

Forum Posts

21

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By cyborgx7

I tried getting all games of a genre using the method described here:

http://www.giantbomb.com/forums/api-developers-3017/how-to-filter-query-the-database-1482119/

By using the url:

http://www.giantbomb.com/api/games/?format=json&api_key=YOUR_API_KEY&filter=genres:32

For some reason the api ignores the filter and just returns the first 100 elements of all games, regardles of genre. How can I do what I want?

It'll happily make the information available, as a website, through:

http://www.giantbomb.com/games/?genre=32

So it must be easily available internally. This thread seems to suggest it isn't supported at all anymore:

http://www.giantbomb.com/forums/api-developers-3017/any-way-to-get-the-games-resources-using-genre-fil-1766007/

Do I really need to resort to html scraping?

Avatar image for audioslaver756
audioslaver756

5

Forum Posts

112

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By audioslaver756

It isn't supported. Genre isn't one of the fields returned when using http://www.giantbomb.com/api/games/

Avatar image for cyborgx7
cyborgx7

216

Forum Posts

21

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@audioslaver756:

good to know, thanks

I didn't know that was required for the filter to work