New python developer attempting to work with giantbomb API

Avatar image for manewolf
Manewolf

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

As someone who enjoys gaming and is trying to get better at using APIs, I thought it would be a good idea to use the giant bomb API to improve. I was planning on creating something that would allow you to enter a company and genre as input and it would give you a list of games that fall under that category (ex. Nintendo, Platformer returns Super Mario 3D Land, Donkey Kong Country Tropical Freeze, etc.)

Does anyone have any advice or tips on how I should go about this?

Avatar image for tjockapa
tjockapa

18

Forum Posts

1

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I think that kind of search only is possible when you have cached the data at your side first.

Otherwise I would say that you have to first get companies by anyone of these two resources:
http://www.giantbomb.com/api/search/?api_key=[APIKEY]&format=json&resources=company&query=nintendo
http://www.giantbomb.com/api/companies/?api_key=[APIKEY]&format=json&filter=name:nintendo

And then from there you can get their games with:
http://www.giantbomb.com/api/company/90/?api_key=[APIKEY]&format=json&field_list=name,developed_games

And to get the genres I think you have to fetch each game by it self:
http://www.giantbomb.com/api/game/42932/?api_key=[APIKEY]&format=json&field_list=name,genres