How to return ALL thumbnails from a roblox place

So i want to make something that gets a place thumbnails and like select a random one but i still can’t find any function or something that can give me all the thumbnails

This is the only thing i can find which only returns the first thumbnail

script.Parent.Decal.Texture = "https://www.roblox.com/asset-thumbnail/image?assetId=6168700194&width=768&height=432&format=png"

is it even possible to get a table of all the thumbnails inside a place?

1 Like

Got this from assistant, I have no idea how to work with thumbnails


local HttpService = game:GetService("HttpService")
local ThumbnailSize = Enum.ThumbnailSize.Size48x48

local thumbnailUrl = "rbxthumb://type=Asset&id=" .. game.Id .. "&w=" .. ThumbnailSize.Value .. "&h=" .. ThumbnailSize.Value

local response = HttpService:GetAsync(thumbnailUrl)

-- Process the response to get the thumbnail image
1 Like

nope it gives me the error

“URL must be http”

then i made the url be http and it gave me another error saying that the url isn’t valid so nope

still thanks for trying to help!!

1 Like

Like I said I did a little research and asked the AI, that’s all I got.
Thank the AI, not me

Hey, I found a couple of API endpoints to get the images.

I wrote these in JavaScript syntax because it has built-in string interpolation to better show where you should put your universe ID. To convert to Luau, remove the Dollar ($) sign.

To get a game’s icon:

`https://thumbnails.roblox.com/v1/assets?assetIds=${universeId}&size=150x150&format=Png&isCircular=false`

To get a game’s thumbnails:

`https://thumbnails.roblox.com/v1/games/multiget/thumbnails?countPerUniverse=999&format=Png&isCircular=false&size=256x144&universeIds=${universeId}`

it does work BUT it returns https://tr.rbxcdn.com/ urls which doesn’t work for decals… is there like a way to fix that or something?

I’m pretty sure those are XML files. You could try sending some kind of request to those links in the hope it returns them as content that can be displayed, but I’m not too sure.

I’m gonna sleep now but I’ll take another look in the morning.

Edit: I noticed you mentioned decals, I’m pretty sure Roblox has a separate API for decals, you could find it on their API documentation.

1 Like

WAIT NVM I FOUND THE SOLUTION, it was uh targetId which gives the rbxassetid:// of the thumbnail… THANKS A LOT FOR THE API!!

1 Like

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