Can anyone give me a little tip on how to use this...
Like how could i retrieve a list of games that came out in 2008 in the US.
How to use it
well, currently the filtering doesn't really work. (see:
http://www.giantbomb.com/forums/api-developers/3017/cant-filter-characters-by-gender/225954/)
But it would go somehow like this:
http://api.giantbomb.com/games/?api_key=ABCDEF123456&expected_release_year=2008&format=json
save "number_of_total_results"
http://api.giantbomb.com/games/?api_key=ABCDEF123456&expected_release_year=2008&format=json&offset=100
http://api.giantbomb.com/games/?api_key=ABCDEF123456&expected_release_year=2008&format=json&offset=200
(etc.)
until the last returned id is "number_of_total_results"
Basically as shown in the documentation under "List Resource
Requests" and "Pagination"
But because the filtering is currently not working, you would
need to iterate over all items and filter yourself, how you do
that depends very much in the language you're using.
An API is really for use by other applications rather than to be directly interfaced with by users - for example, you'd write a little web application using your favourite server-side language which 'asks' the Giant Bomb database to fetch all the games that came out in 2008 in the US.
"An API is really for use by other applications rather than to be directly interfaced with by users - for example, you'd write a little web application using your favourite server-side language which 'asks' the Giant Bomb database to fetch all the games that came out in 2008 in the US.I can think of some very useful applications for it."If you want to write these sort of things, you'll probably want to have a little bit of knowledge in a programming language of some description and you'll want to read the very useful API documentation.As for your specific example, you'd request http://api.giantbomb.com/releases/?api_key=yourapikey123 and filter out the ones that aren't in 2008/US in your script. There's no filtering functionality built in to the API as of yet.
Please Log In to post.
Log in to comment