Avatar image for fragglerook
#1 Posted by fragglerook (5 posts) -

Hi,

I have been trying to use the API to do some basic queries for games but I can't seem to get my head around the filtering...

No matter what I try all platforms are returned...For example I would expect both these to filter based on the SNES platform.

http://www.giantbomb.com/api/games/?api_key=MYKEY&platforms=9

http://www.giantbomb.com/api/games/?api_key=MYKEY&filter=platforms:9

Am I missing something basic or does the API just not work as documented here?http://www.giantbomb.com/api/documentation#toc-0-15

Looking at it, it would seem from that either "platforms=X" or "filter=platforms:X" should work.

Thanks,

Fraser

p.s. Sorry for double posting, I originally posted this in 'General Discussion' and figured it was better placed here. Please feel free to delete the other thread.

Avatar image for frobie
#2 Posted by frobie (194 posts) -

@fragglerock Your second query should work.

This returns games on the RDI Halcyon platform:

http://www.giantbomb.com/api/games/?api_key=APIKEY&format=json&filter=platforms:107&field_list=name,platforms

Which matches up with what is seen on the wiki:

http://www.giantbomb.com/rdi-halcyon/3045-107/games/

Staff