Does anyone know of an endpoint on Roblox’s Web APIs where I can supply a list of (100 or so) audio IDs to confirm if they’re real audios? I have a website where users can submit a list of their own ROBLOX Audios to load as a sort of playlist, but I need to validate if each audio is a legitimate audio.
Is there a way to check this in bulk, because I fear that if I do it for every audio and its a fairly large list, I may be rate limited.
I originally considered making a request to the https://www.roblox.com/library/[assetID]/ URL, to check for a 404 code, however a user could just input a shirt ID or anything else into it.
Regards,
Samuel.
1 Like
Well you could use this API endpoint https://assetdelivery.roblox.com/v2/asset?id=AssetID which in the response returns the asset type id (for audios it’s 3) and you can check if that is equal to the audio type id.
Is there a way to do this in bulk?
https://assetdelivery.roblox.com/v2/assets/batch
Read the docs to see what parameters you must pass
As it apparently seems impossible to use the assetdelivery API because of authorization requirements that seem to be undocumented i would suggest you to use this endpoint instead: https://catalog.roblox.com/v1/catalog/items/details (docs: Catalog Api) which returns the asset type as well
It seems like roblox broke that api now.
{
"errors": [
{
"code": 0,
"message": "MethodNotAllowed"
}
]
}
You are sending the request with the wrong HTTP method. That endpoint only accepts HTTP GET.
I tried it with Get also, but it was refused there also.
Idk why roblox wants to make everything so advanced yet, so badly set up that it is almost not useful to use at all
Just use GetProductInfo
to check if an ID is a valid sound id or not.
It would be useful to see the request you’re sending.
I use it for web api, not for in-game. @NinjaFurfante07
I ended up using roblox’s own json api.
https://search.roblox.com/catalog/json?Category=9&Keyword=$keyword
For my “AssetInfo” i used
https://search.roblox.com/catalog/json?Category=$category&Keyword=$keyword&SortType=$sortType&ResultsPerPage=$resultsPerPage
My website API endpoints:
https://api.newstargeted.com/roblox/assets/v2/assetInfo.php?Category=9&Keyword=Despacito&SortType=3&ResultsPerPage=10