#1 Edited by antrock989 (4 posts) -

Hello,

I'm working on a C# app and am having a bit of trouble with the search, how do I sort by platform, for instance if i was looking for Fifa99 there are so many different platform versions.

In my app I can add a tick box to platform then can pass the search the console, I tried the below and it doesn't appear to work am I missing something?

http://www.giantbomb.com/api/search/?api_key=KEY&format=json&query="metroid prime"&resources=game,PS1

Cheers

#2 Edited by audioBusting (1488 posts) -

@antrock989: If I understand your problem correctly (ie. you want to filter your game search results by platform), you'll probably have more luck with the games resource. For example, use http://www.giantbomb.com/api/games/?api_key=[KEY]&filter=name:metroid%20prime,platforms:23 to get only GameCube Metroid Prime games.

Edit: although that wouldn't help with FIfa 99, because the releases all fall under one game entry anyway. I'm not sure what the issue with that is.

#3 Posted by antrock989 (4 posts) -

That's great thank you, ignore the Fifa 99 i just used it as an example and should have checked doh!

BTW where di you find the platform ID list i couldn't see it in the reference docs?

#4 Edited by audioBusting (1488 posts) -

@antrock989: No worries mate. I took it from the platforms list of the game (games: platforms: platform: id). You can search for it straight from the platforms interface too. Like so: http://www.giantbomb.com/api/platforms/?api_key=[KEY]&format=json&filter=name:gamecube&field_list=name,id (It's also the last number in the specific URL's, like 23 in the website URL http://www.giantbomb.com/gamecube/3045-23/)

#5 Posted by antrock989 (4 posts) -

That great thanks, I thought they out putted as XML looks like i was wrong!

#6 Edited by antrock989 (4 posts) -

www.giantbomb.com/api/games/?api_key=KEY&format=xml&filter=name:xenogears,platforms:22

does anyone know a list of accepted formats i tried XML

#7 Posted by audioBusting (1488 posts) -

@antrock989: As far as I know it accepts json and xml, not sure if there are more. JSON is enough for most cases anyway.