release_date

Avatar image for mven
mven

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By mven

I'd like to grab a list of games that were released on a particular year. For instance, I want to grab all games whose release date happened in 1998. I've an script that is successfully grabbing releases (cURL/php), but they no matter what value I put into release_date, I get the same random results.

The XML response I currently get returns strings for the release_date field in the following format: "2004-12-20 00:00:00". I've tried encoding the space into %20 and even the colons as their ascii counterpart, but still no luck.

Here's my URL I'm sending:

$query = "http://api.giantbomb.com/releases/?api_key=[omitted]&limit=10&release_date=2004-12-20%2000:00:00&format=xml";

Any ideas?

Avatar image for walson
walson

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

The release_date should be mentioned in filter. So your url will look like the following string

$query = "http://api.giantbomb.com/releases/?api_key=[omitted]&limit=10&filter=release_date:2004-12-20";