Classic APIs
ClassicThumbnailsApi
assetsThumbnails

assetsThumbnails

Gets thumbnail for multiple assets.

Parameters

NameTypeDescription
assetIdsArrayNonEmptyIfConstThe ids of the assets to get thumbnails for.
returnPolicy?ThumbnailReturnPolicyThe policy to use in selecting the thumbnails to return.
sizeAssetSizeThe thumbnails size (formatted as {width}x{height}).
format?ThumbnailFormatSpecifies the format of the thumbnails.
isCircular?booleanDictates if the thumbnails should be masked by a circle.

Example

const { data: assetsThumbnails } = await ClassicThumbnailsApi.assetsThumbnails({
  assetIds: [7229442422],
  size: "420x420",
}); 

Example Data

{
  "7229442422": {
    state: "Completed",
    imageUrl: "https://tr.rbxcdn.com/7da8e78d9e2e303f0122c355f19f66d5/420/420/Image/Png",
  },
} 

Endpoint

GET /v1/assets