MarketplaceService:GetProductInfo missing information for Audio assets

https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#GetProductInfo

I found the following audio asset:

The asset id is 139126792827321 and as seen from the screenshot, the creator is Shiba Inu of Wall Street

If I use GetProductInfo for the asset id, I get the following:

{
                    ["AssetId"] = 139126792827321,
                    ["AssetTypeId"] = 3,
                    ["ContentRatingTypeId"] = 0,
                    ["Created"] = "2024-11-07T06:04:30.6Z",
                    ["Creator"] =  ▼  {
                       ["CreatorTargetId"] = 7135127272,
                       ["CreatorType"] = "User",
                       ["HasVerifiedBadge"] = false,
                       ["Id"] = 7135127272,
                       ["Name"] = "DistrokidOfficial"
                    },
                    ["Description"] = "",
                    ["IconImageAssetId"] = 0,
                    ["IsForSale"] = false,
                    ["IsLimited"] = false,
                    ["IsLimitedUnique"] = false,
                    ["IsNew"] = false,
                    ["IsPublicDomain"] = true,
                    ["MinimumMembershipLevel"] = 0,
                    ["Name"] = "I Believe in You",
                    ["ProductId"] = 2653785766,
                    ["ProductType"] = "User Product",
                    ["Sales"] = 0,
                    ["TargetId"] = 139126792827321,
                    ["Updated"] = "2024-11-07T06:04:30.62Z"
                 }

The creator name seems to be tied to the account that uploaded the asset (DistrokidOfficial), while the artist (Shiba Inu of Wall Street) is nowhere to be found in the response.

Am I missing something or is there no way to get the artist of the song based on the asset id? Same question for the tags and length displayed in the screenshot.

It looks like what you’ll want is GetAudioMetadataAsync.


Usage:

local assetService = game:GetService('AssetService')
print(assetService:GetAudioMetadataAsync({139126792827321}))

Output:

{
                    [1] =  ▼  {
                       ["Artist"] = "Shiba Inu of Wall Street",
                       ["AssetId"] = "139126792827321",
                       ["AudioType"] = Music,
                       ["Duration"] = 144,
                       ["RecordingCode"] = "QZZ772412165",
                       ["Title"] = "I Believe in You"
                    }
                 }
1 Like

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