Cover endpoint URL for image is small

Hi there!

I’m working on a personal project (non-commercial) and running into an issue. I’m using the ‘Cover’ endpoint

[Cover endpoint](https://api.igdb.com/v4/covers)

and retrieving the url field. The URL I get back is:

//images.igdb.com/igdb/image/upload/t_thumb/co1rba.jpg

This works for my site, as the image displays…however, it’s quite small. I noticed it says ‘thumb’ in the URL, but this is only URL that is stored, and I can’t seem to find documentation on how to get a larger version of the image.

Could someone point me in the right direction, or tell me what I should do to remedy this?

Edit: Including how it looks on the (barebones) site.

https://api-docs.igdb.com/#reference

See the sizing chart.

Swap t_thumb for the name of the size of image you want.

1 Like

I appreciate the quick response! I see that works if I manually paste the URL as an image source…

However, I’m pushing the JSON URL response itself, which seems to always push the t_thumb variant, and I’m unaware how to change the body of that url key response from ‘t_thumb’ to say, ‘t_1080p’ (I’m using Postman API).

You need to manually find/replace on the URL string.

Or construct a URL using the image_id instead

Such as what the breakdown says:

https://images.igdb.com/igdb/image/upload/t_{size}/{hash}.jpg

The hash here is the image_id in the API resonse.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.