#1 Posted by mven (1 posts) -

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?

#2 Posted by walson (1 posts) -

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";