Page 1 of 1

API v1.1/Games/ByGameName ignores filter[platform]

Posted: Fri Jun 11, 2021 12:01 pm
by Wintermute0110
Hi,

A user of Advanced Emulator Launcher has reported that platform is ignored when looking for games. For example, searching for "batman forever" for all platforms using the web interface returns 11 results.

Code: Select all

https://thegamesdb.net/search.php?name=batman+forever&platform_id%5B%5D=0
Using the web interface and adding the SNES platform, only 1 result is returned

Code: Select all

https://thegamesdb.net/search.php?name=batman+forever&platform_id%5B%5D=6
However, when using the API always 11 results are returned. I am using these URLs and both return 11 results (I have chopped the public key for convenience):

Code: Select all

https://api.thegamesdb.net/v1.1/Games/ByGameName?apikey=828be...&name=batman+forever&filter[platform]=0

https://api.thegamesdb.net/v1.1/Games/ByGameName?apikey=828be...&name=batman+forever&filter[platform]=6
Am I doing something wrong with the API? Is this a bug? Thanks a lot for your help.

Re: API v1.1/Games/ByGameName ignores filter[platform]

Posted: Sat Jun 12, 2021 10:27 am
by Zer0xFF
Hi Winter,

Thanks for letting us know,
You'd be glad to know a fix is currently in place.