Help on getting only screenshot image

Avatar image for jayme65
Jayme65

13

Forum Posts

2

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By Jayme65

Hi,

New to the API, so please be indulgent^^

I would like to be able to only get screenshots (or boxes) for a specific game on a specific platform.

What I'm doing now

1. Filter on a name and platform to get an ID (but there might be many other Xenogears title, like 'Xenogears 2', isn't it!?)

http://www.giantbomb.com/api/games/?api_key=**********&filter=name:xenogears,platforms:22&field_list=name,id

2. With that ID, search the game for images and manage to find the good one using the tag ? (here I can see 'PS1 Screenshots' but how could I guess how every systems screenshots are tagged!?...and more problematic, I can't see specific platform tag like 'Snes Box Art', it's always simply listed as 'Box Art' even for games with many releases available)

http://www.giantbomb.com/api/game/18304/?api_key=**********&field_list=images

I have thought to this too

1. Filter on a name and platform to get an ID

http://www.giantbomb.com/api/games/?api_key=**********&filter=name:xenogears,platforms:22&field_list=name,id

2. With this ID, look for releases

http://www.giantbomb.com/api/game/18304/?api_key=**********&field_list=releases

3. Then for each release, check if the platform (and perhaps 'region' too) is correct

http://www.giantbomb.com/api/release/79600/?api_key=**********

4. But what else! I've only some images here...not all the one displayed in the gallery !!

I confess that I'm lost, perhaps mixing everything...Could you please help me understand how to achieve this 'simple' (not for me^^) task: retrieving a screenshot (and box) for a specific game on a specific platform, the correct way!

Thank you very much!

Avatar image for jslack
jslack

1186

Forum Posts

1165

Wiki Points

0

Followers

Reviews: 1

User Lists: 6

@jayme65: Hey there. So it really depends on what you mean in your question.

Do you want a specific screenshot? Do you want the first screenshot by date recency? Do you want the last screenshot?

Your 1. will actually return the main image, the games limited by platform, and name. `images` will give you associated images (from associations, wiki, etc), but not necessarily all tagged images. We don't have a direct gallery API endpoint available yet, but maybe something fun to add once we finish improvements on our image viewer.

Avatar image for jayme65
Jayme65

13

Forum Posts

2

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@jslack: Thanks for your reply!!

Do you want a specific screenshot?

Not necessary, I just want a screenshot and game box to illustrate a specific game on a specific platform.
For instance, I would like to get 1 screenshot + 1 boxart for 'Donkey Kong Country' on SNES...could you give me the 'good' way to achieve this?

Thanks!!

Avatar image for jslack
jslack

1186

Forum Posts

1165

Wiki Points

0

Followers

Reviews: 1

User Lists: 6

@jayme65: So I might suggest taking the game.image and also looking at game.images. You can then also get the release.image which should give you an approximate box art.