How can I get every song from Roblox's profile with scripting?

Greetings! I want to get an array of every song ID made by Roblox via scripting, so I can make a music picker for a top secret creative project. I also want to get the song’s name so I can have the players search for the song in my game.

If you can help guide me into making this, that would be appreciated! Thanks!

To begin, the Roblox account isn’t where you would want to get a list of songs IDs since Roblox also uploads SFX audios.

Instead, you should check out Roblox’s Monstercats partnership account, all the audios uploaded there are all actual songs.

Monstercat’s Audio Library

Next, you’ll want to use Roproxy inorder to access Roblox’s Inventory API since Roblox doesn’t allow their own servers to access their own API if I am remembering correctly, and then use HttpService to gather all of Monstercats’ audio.

This is the HTTP Request for Monstercats audio inventory.
https://inventory.roproxy.com/v2/users/1750384777/inventory/3?sortOrder=Asc&limit=100

Now the API will return you with a data set looking like this

"data":[{"assetName":"Dion Timmer feat. Micah Martin - Internet Boy","userAssetId":70850261168,"assetId":5410084870,"owner":{"userId":1750384777,"username":"Monstercat","buildersClubMembershipType":0},"created":"2020-07-22T19:55:19.44-05:00","updated":"2020-07-22T19:55:19.44-05:00"},

All you have to do is loop through the data and gather all the assetIds.

Make sure to check if the API request fails so it can retry again.

Also, it appears some audios were removed for copyright on the official Monstercat account, so you’ll probably want to filter those out too.

2 Likes

I would check if the sound is longer than 6 seconds. Who knows, maybe someone wants a 10 second wet fart sound in their creation.