How to query a list of games for a particular platform?

Avatar image for kpdeveloper
kpdeveloper

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By kpdeveloper

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
zinther

7

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By zinther

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.