How can I get a song's album cover from it's ID?

I have a music player and want to get the album cover of songs to put in it. Is there a way I can do this? I know AssetService has the GetAudioMetadataAsync method but that doesn’t return the album cover or thumbnail.

3 Likes

I dont think sounds have album covers on roblox…?

If you go here they do have thumbnails, also i’ve seen other games do this.

https://music.roblox.com/charts

Ohhh, I had no idea that existed! Tho, it seems like its in image rn, so I doubt there are any ways to get the album covers yet.

As of right now there isn’t a way to get the the images through roblox. And I’m not sure if you can web scrape from roblox studio. The only thing I can think of doing is manually saving the images and upload them as decals.

So I know this is quite old, but I have an old script from my audio visualizer game that did get the audio thumbnails, and its as simple as "https://www.roblox.com/asset-thumbnail/image?assetId=".. v["Id"] .."&width=420&height=420&format=png"

Now to check whether a song even has an asset thumbnail, that I can’t answer, so a downside is this will have no image show for songs that dont have one.

image

I later found something interesting New ContentId format for easy thumbnail loading

so you can use "rbxthumb://type=Asset&w=420&h=420&id=" .. v["Id"]
instead, they state that this will also batch loads for images, to ensure images load fast, i dont know if there is much of a difference in performance. you can change the w=420&h=420 parameter to 150, if you want a faster load (as the image will be 150x150 in size), audio only has the 2 sizes, 150, or 420.

3 Likes