Accessing Asset Id's from Decal IDs

Hello there! I’m hartley, I’m a roblox & web developer. Today I was bored, and started making a website. Basically what I’m trying to do is return the person their asset ID from their decal ID so that they can reliably upload it to games that require you to upload the decal asset ID (Such as ER:LC for liveries.)

I was wondering how I could send a request to the roblox API to return the asset ID with just a decal/model ID inputted. Anyway, thanks!

Currently, the only method I have realized is Web scrapping, while not ideal, I don’t think there is an alternative. (Also, I do not know if it violates ToS)

Edit: If you are looking for an equivalent of MarketplaceService:GetProductInfo, web scrapping is not needed.

                                               ⚠️ Warning ⚠️

I’m only trying to help

This code was made by AI

To send a request to the Roblox API to retrieve the asset ID for a decal or model, you can use the GET method of the MarketplaceService API, which is available at the following URL:

https://api.roblox.com/marketplace/productinfo?assetId={assetId}

Replace {assetId} with the decal or model ID that you want to retrieve the asset ID for.

Here is an example of how you can send a request using the cURL command-line utility

curl -X GET "https://api.roblox.com/marketplace/productinfo?assetId=1234567890"

This will return a JSON object containing information about the decal or model, including its asset ID.

You can also use a library or framework in your programming language of choice to send HTTP requests to the Roblox API and parse the JSON response.

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