How do I get and sort upcoming releases?

Avatar image for hydrano
Hydrano

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I need to request a List of upcoming games for various platforms. For example I want to see the next releases until 2017 (Sorted by next upcoming). I tried it with so many calls now but nothing will work properly. The following results in many "null" release dates.

https://api.giantbomb.com/releases?filter=release_date:2016-04-24 00:00:00|2017-01-01 00:00:00&api_key=MyKey&format=json

It feels like the API does not want to work as it should. If I try it with date_added and platform only it kinda works. But thats really not what I want.

http://www.giantbomb.com/api/games/?api_key=MyKey&format=json&sort=date_added:desc&platforms=94

I hope to find anyone who can help me with this.

Avatar image for davidfox1983
davidfox1983

203

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Your problem is that, in your second response, "date_added" is not appropriate to sort on. That is the date that the game was added to Giant Bomb which isn't necessarily in the same order it will/has actually been released. If you want to take this approach, you should use a combination of "original_release_date" (to cover games which are already out) and the "expected_release_x" components (to cover upcoming releases). See the "game" documentation for more on those fields: http://www.giantbomb.com/api/documentation#toc-0-14