Avatar image for kpdeveloper
#1 Edited by kpdeveloper (2 posts) -

Hello,

I was trying to make an app that lists games according to platforms and was wondering how can i run a query that generates a list of games for the Playstation 4

I was trying to run this URL:

https://www.giantbomb.com/api/games/?api_key=API_KEY&format=json&platforms=3045-146

3045-146 i think is the platform id for PS4

Would appreciate if someone helps.

Thanks,

Kirti

Avatar image for zinther
#2 Edited by Zinther (4 posts) -

I believe you are looking for the below

https://www.giantbomb.com/api/games/?format=json&api_key=[API KEY]&filter=platform:146

OR

https://www.giantbomb.com/api/games/?format=json&api_key=[API KEY]&platform:146

The above URL's will filter games based on the platform ID 146 (PS4). Remember it will limit your response/results to 100.