does filtering work?

Avatar image for kallin
Kallin

54

Forum Posts

35

Wiki Points

0

Followers

Reviews: 1

User Lists: 2

#1  Edited By Kallin

I'm trying to obtain details for a game, say 'Star Control 2'.

I use a URL like:

def url = "http://api.giantbomb.com/games/?api_key=$key&name=StarControl2&field_list=name"

I would expect this to return either just the name of the star control 2 game, or more likely 0 results since I may not be accounting for spaces properly in the url (how should they be supplied?).

What I end up with are the first 100 of 25683 results:

<response><error><![CDATA[OK]]></error><limit>100</limit><number_of_page_results>100</number_of_page_results><number_of_total_results>25683</number_of_total_results><offset>0</offset><results><game><name><![CDATA[Desert Strike: Return to the Gulf]]></name></game><game><name><![CDATA[Breakfree]]></name></game>

etc...

An earlier post said filtering doesn't work. Is this still the case? If not, what am I doing wrong!?!

Thanks,
Kal.

PS. If it isn't working it would be great to have a list of known issues in the pinned thread of this forum.


Avatar image for lordandrew
LordAndrew

14609

Forum Posts

98305

Wiki Points

0

Followers

Reviews: 0

User Lists: 36

#2  Edited By LordAndrew

As stated in the games section of the documentation, the only filters that can be applied for games are field_list, limit, offset, and platforms. You'll need to use the search resource if you want to perform filters by name.

Avatar image for kallin
Kallin

54

Forum Posts

35

Wiki Points

0

Followers

Reviews: 1

User Lists: 2

#3  Edited By Kallin

Thx. It would be cool to just use criteria to narrow directly based on whatever fields are in your tables.

Avatar image for lordandrew
LordAndrew

14609

Forum Posts

98305

Wiki Points

0

Followers

Reviews: 0

User Lists: 36

#4  Edited By LordAndrew