How do I get every thumbnails of a game

Hello,

I am struggling to get every thumbnail of a game for my game hub thingy. As you may already know, some games have more than one thumbnails on their game page and I want to get all the thumbnails.

At first, I have tried looking for an API endpoint and found this link:
https://www.roblox.com/asset-thumbnail/image?assetId=[PlaceID]&width=768&height=432&format=png
From this post:

But the problem is that it only gets the first thumbnail of a game

Therefore, I tried looking for another API endpoint and I found https://thumbnails.rprxy.xyz/v1/games/multiget/thumbnails?countPerUniverse=999&format=Png&isCircular=false&size=256x144&universeIds=[universeId]
Which returns a JSON table of rbxcdn Image links such as this https://t4.rbxcdn.com/bbb0bf876870b8baa187fc146f4168f0
The problem, again, is that Roblox doesn’t allow image links outside roblox.com which for some strange reasons this includes their Content delivery network

I have also tried searching the Devforum for answers but couldn’t thus why I am making this post.

Any help would be useful, Thanks :grinning:

2 Likes

I am sorry, but is what you’re saying that:

  1. You want to take another game’s Thumbnail
  2. Upload a lot of Thumbnails at the same time

Yes and no, I want to get every thumbnails of a game but no I don’t want to upload it because I want to load it as a ImageLabel.Image

And like I said

  1. If you’re advertising a game for instance in your own game, can’t you DM the owner for the thumbnail image;
  2. Inspect the page with the thumbnail you want to obtain and selecting the image and getting the link and downloading it.

And uh, this doesn’t have to do a lot with Scripting, httpservice or api.
It has more to do with web developing as you’ve to Insert yourself into the web-client to obtain it.

First, it isn’t advertising, it is a Game Hub or a collection of games. And Secondly, I am not downloading and uploading it to Roblox when there is a Content delivery network which stores all of this thumbnails as a image links like the example I gave.

And thirdly, yes, it does deals with HttpService becuase I am using API and it is scripting and it is Images and it is gui because I am trying to use image links as a ImageLabel.Image

Edit: If you have read my post I have also mention the APIs I tried to use

Edit2: Sorry if I sound aggressive that was not my intention. I just wanted to make sure that you didn’t misunderstand my question

Credit:

This is a summary of what he said:

placeId = 1149758404
script.Parent.Decal.Texture = "https://assetgame.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid="..placeId.."&fmt=png&wd=420&ht=420"

that’s the script you’d need for this.

1 Like

I have already explained why this won’t help me

and that link is Depreciated.

I did some research, but I couldn’t find anything to obtain a second thumbnail.

There is a thumbnail API, that you could probably use. Haven’t tried it before, but here is how the workflow could go.

First you will have to use this Endpoint, and get the Universe Id
https://games.roblox.com/v1/games/multiget-place-details?placeIds={placeID}

Then you can use this API Endpoint again, to get the thumbnails and pass in the Universe Id you got earlier, into the url parameters.
https://thumbnails.roblox.com/v1/games/multiget/thumbnails?universeIds={universeID}&defaults=true&size=768x432&format=Png&isCircular=false

It returns a response which contains the Thumbnails details in an array


I already mention that in my Post:

Oh, my bad. You actually get a targetId too along with that response I believe, which you can use by passing on to the Url parameters:

https://www.roblox.com/asset-thumbnail/image?assetId={TargetId}&width=768&height=432&format=png

2 Likes

Thanks for the solution, I have been trying to do this for days now.

1 Like

Does this method still work now?

I have tried this and I came up with the error “HttpService is not allowed to access ROBLOX resources”.

I’m afraid this method won’t work anymore, or I’m doing something wrong.

I have found another code that gets every thumbnail of a game.
Private message me if you want it (to not keep everyone notifying in this post)