Filter games by platforms doesn't seem to work...

Avatar image for fragglerook
fragglerook

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

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
frobie

268

Forum Posts

262594

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#2 frobie  Staff

@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/