#1 Edited by pandaeskimo (9 posts) -

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

#2 Edited by frobie (120 posts) -

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

Staff
#3 Posted by pandaeskimo (9 posts) -

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

#4 Posted by pandaeskimo (9 posts) -

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

#5 Posted by frobie (120 posts) -

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

Staff