Assetdelivery Audio endpoint

I am attempting to use the https://assetdelivery.roblox.com/v2/assetId/ endpoint in order to get the CDN url for audio/sounds. However everytime I attempt to do this on my browser that I am logged into roblox with, and have access to said audio in question. I just get “User is not authorized” error message. Is there anything else I need to provide or is this url just dead in terms of getting audio cdn?

1 Like

I do not believe pasting the url into the browser works for this endpoint, given that there are more parameters required for the endpoint than just the audio ID, as shown in the documentation:

assetdelivery.roblox.com/docs

The endpoint works fine for just a simple decal id, only audio is where I am getting issues.

Aswell as a “User Authorization” error does not seem to fit any of the headers. As well as “required” on that website does not actually mean its required.

i.e RobloxPlaceId is not relevant to this at all yet on that page it says required.

Hm. You’re right.

Is the audio uploaded by yourself, or did you get the audio from the marketplace?

It’s uploaded by myself, I am trying both a audio asset I uploaded on my personal account and a asset uploaded onto a group. Both in which get the same error.

1 Like

I’m not entirely sure that my conclusion is true, so you can take it with a grain of salt, but given that it doesn’t work with only audios, I believe that you can’t get the cdn of audios anymore. This might have to do with the Audio Asset Privacy update, but I could definitely be wrong.

1 Like

I hope this is not the case, I really don’t want to have to scrape the html in order to get the audio cdn, this just seems counter intuitive.

Is there anyway I can confirm that this is the case or not?

1 Like

I’m going to attempt to see if providing headers makes a difference. You could too, and see if that makes any difference.

1 Like

I wish I could but most of the headers I am unaware of.

AssetType is the only one I was playing with (3 for audios).

Please let me know if you experience anything different :slight_smile:

1 Like

I found the issue! The Asset Audio Id isn’t the id we weren’t supposed to provide.

Paste this endpoint into your browser (make sure you use the audio asset id of the audio you uploaded):

https://develop.roblox.com/v2/assets/AUDIO_ASSET_ID/versions?sortOrder=Desc&limit=10

and then copy the id (not the assetId) you see from the response:

and use it in the asset delivery endpoint:

https://assetdelivery.roblox.com/v2/assetId/ID_HERE

It should return the CDN of the Audio.

Maybe I am doing something wrong?

(make sure you use the audio asset id of the audio you uploaded):

isnt this just the id of the asset in the browser? When I follow what you said I don’t get anything

error: message": “Asset is not approved for the requester”

the asset in question: Bladedraw - Roblox

You need to have manage access to the assetId you want to view the details of.

Do you have manage access to that audio? If not, then you can’t view the details of said audio with the develop endpoint I provided.

Yes I do, its my asset that I created under my account.

So to clarify, you are logged into “TheHeadIessHorseman” account when you paste the link below into your browser?
https://develop.roblox.com/v2/assets/4743172818/versions?sortOrder=Desc&limit=10

1 Like

That is correct. I am logged into a account that owns that.

{
  "errors": [
    {
      "code": 403,
      "message": "Asset is not approved for the requester"
    }
  ],
  "requestId": "638143178250479888",
  "IsHashDynamic": false,
  "IsCopyrightProtected": false,
  "isArchived": false,
  "assetTypeId": 0
}

Can you try and see if you can try this again, except this time the audio is from a group you own?

https://develop.roblox.com/v2/assets/ASSET_ID/versions?sortOrder=Desc&limit=10

I did that with a group that I don’t own, but I do have permission to the audios. I got a ID from that url, and then when I put it in the endpoint that is suppose to give the CDN it said:

{
  "errors": [
    {
      "code": 404,
      "message": "Request asset was not found"
    }
  ],
  "requestId": "638143230248217643",
  "IsHashDynamic": false,
  "IsCopyrightProtected": false,
  "isArchived": false,
  "assetTypeId": 0
}

If only the owner of the group can access the CDN this is kinda wack ngl

1 Like

Did you even get it working in your testing? I even made a audio asset under a group I own, attempted to do this and get the same resulting errors.

I did test to see if it worked, and it did for me, as shown in my reply here:

What’s stumping me is that you’re getting a different result than I am for some reason.

1 Like