Incorrect results with similar queries

Avatar image for pikapomelo
pikapomelo

73

Forum Posts

2

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By pikapomelo

I just started trying the API (btw, is there any documentation in terms of formatting the URLs?) and ran into a weird issue.

It seems like the first query I send gets cached and any subsequent queries with the same number of arguments get the results from that first query.

Here is an example (Metroid Prime 3),

http://www.giantbomb.com/api/game/3030-4725/?api_key=<key-removed>&format=json&field_list=description,image,aliases

If I do this the first time, I get the correct results. However, if I change the field_list to "description,image,name" I get the same results. If I change the number of arguments, this doesn't happen.

For example,

http://www.giantbomb.com/api/game/3030-4725/?api_key=fb4ddf4291080ec0826929e3e84b6d9909b1ca16&format=json&field_list=description

Am I using this incorrectly?

I've been force refreshing the browser (Chrome on Win8) and it doesn't seem to do anything.

Btw, if there isn't a quick set of documentation / an example, I could try to put a page together. It seems fairly straight forward, but I got as far as I did above through guessing and looking through random threads for people with issues.

Thank you,

Dan

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#2  Edited By frobie  Staff

@pandaeskimo: Put in a fix for the caching issue, should be in production later today.

Haven't had time to flesh out the documentation. If you know of a site with a good API documentation I can emulate, shoot me a link. But, by all means, if you have the time to put a page together, post it on this board and I'll pin it to the top.

Avatar image for pikapomelo
pikapomelo

73

Forum Posts

2

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Thanks, I'll try to make a thread with info.

Avatar image for pikapomelo
pikapomelo

73

Forum Posts

2

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I encountered a similar issue with search. Search seems to ignore by "resource_type" filter. Instead, I just get all results.

Example,

http://www.giantbomb.com/api/search/?api_key=[your-key]&format=json&query=%22metroid%20prime%22&resource_type=game

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#5 frobie  Staff

@pandaeskimo The layout for the search section may have caused some slight confusion here; resource_type is a field that gets returned in the search results. resources is the keyword you're looking for to filter the results by the resource type.