Classic APIs
ClassicThumbnailsApi
batchThumbnails

batchThumbnails

Gets thumbnail for multiple things.

Parameters

NameTypeDescription
requestsBReq[]An array of BatchRequest objects.

Example

const { data: thumbnails } = await ClassicThumbnailsApi.batchThumbnails({
  requests: [
    {
      type: "AvatarHeadShot",
      targetId: 45348281,
      size: "720x720",
      format: "Png",
      isCircular: false,
    },
  ],
}); 

Example Data

{
  AvatarHeadShot: {
    "45348281": {
      requestId: null,
      errorCode: 0,
      errorMessage: "",
      state: "Completed",
      imageUrl: "https://t0.rbxcdn.com/697567606503f6484a06e8617307d54f",
    },
  },
} 

Endpoint

POST /v1/batch