How to use it

Avatar image for deactivated-5884be30433ec
deactivated-5884be30433ec

1061

Forum Posts

2007

Wiki Points

0

Followers

Reviews: 1

User Lists: 2

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.

Avatar image for bandresen
bandresen

78

Forum Posts

343

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By bandresen

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.

Avatar image for thebeast
thebeast

1920

Forum Posts

13373

Wiki Points

0

Followers

Reviews: 0

User Lists: 7

#3  Edited By thebeast

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.


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.
Avatar image for deactivated-5884be30433ec
deactivated-5884be30433ec

1061

Forum Posts

2007

Wiki Points

0

Followers

Reviews: 1

User Lists: 2

TheBeast said:
"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.

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.
"
I can think of some very useful applications for it.