Searching results

Avatar image for antrock989
antrock989

8

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By antrock989

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

Avatar image for audiobusting
audioBusting

2581

Forum Posts

5644

Wiki Points

0

Followers

Reviews: 4

User Lists: 26

#2  Edited By audioBusting

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

Avatar image for antrock989
antrock989

8

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

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?

Avatar image for audiobusting
audioBusting

2581

Forum Posts

5644

Wiki Points

0

Followers

Reviews: 4

User Lists: 26

#4  Edited By audioBusting

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

Avatar image for antrock989
antrock989

8

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

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

Avatar image for antrock989
antrock989

8

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#6  Edited By antrock989

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

Avatar image for audiobusting
audioBusting

2581

Forum Posts

5644

Wiki Points

0

Followers

Reviews: 4

User Lists: 26

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