xJon_as
(Jonas)
September 11, 2019, 12:43pm
#1
Hey there!
I would like to make it easier for my board of executives to add decals into our database to remotely load them in-game. When putting a number into an image label (gui object), you will see that it changes.
Is there a web api that I can call with the store id (the link from the url to the decal page) and retrieve the asset it? (The number that it changes to)
Thanks a lot in advance!
Kind regards,
Jonas
1 Like
skeliphant
(skeliphant)
September 11, 2019, 12:52pm
#2
There used to be an API that someone created for this purpose but to the looks of it, it’s deprecated:
Inputting decals is almost universally obsolete and only exists in a few games for items like spray paint tools, logo assignment for interaction and other trinkets (assumption)
No, many games allow players to use decals for things like wallpaper (Work at a Pizza Place does this. I think @GeorgeOfAIITrades uses something like this for custom car skins in his game. ).
Developers who own the asset can perform this in less lines, the InsertService method, without limitation
Why would a devel…
You could look into F3X’s source code and see how they do it, I am not sure myself though.
1 Like
xJon_as
(Jonas)
September 11, 2019, 12:53pm
#3
Aha, where can I find their source? Though, I believe they will just be using insertservice or margetplaceservice:getproductinfo. I’d need a web api
xJon_as
(Jonas)
September 11, 2019, 12:57pm
#4
Addon: I just tested that endpoint, it still appears to be working!! Hurray! Thanks a lot!
If anyone knows how it is done, let me know. I’m interested in that .
I use MarketplaceService to get the image of the decal. Note this returns a smaller resolution image, but it works.
1 Like
xJon_as
(Jonas)
September 11, 2019, 2:39pm
#6
Thanks! Sadly, I’m looking for a web api
1 Like
ee0w
(Kai)
September 11, 2019, 6:15pm
#7
Found an endpoint that might be of use:
GET api.roblox.com/marketplace/productinfo
Parameters:
assetId | long | The ID of the asset.
Returns:
{
"TargetId": 123456789,
"ProductType": "User Product",
"AssetId": 123456789,
"ProductId": 24870409,
"Name": "Hat",
"Description": "",
"AssetTypeId": 8,
"Creator": {
"Id": 1,
"Name": "ROBLOX"
},
"IconImageAssetId": 0,
"Created": "2015-06-25T20:07:49.147Z",
"Updated": "2015-07-11T20:07:51.863Z",
"PriceInRobux": 350,
"PriceInTickets": null,
"Sales": 0,
"IsNew": true,
"IsForSale": true,
"IsPublicDomain": false,
"IsLimited": false,
"IsLimitedUnique": false,
"Remaining": null,
"MinimumMembershipLevel": 0,
"ContentRatingTypeId": 0
}
Hope I helped
4 Likes
Forummer
(Forummer)
April 4, 2022, 4:53pm
#8
The AssetId
key/field matches the ID passed as an argument to GetProductInfo()
.
That’s because the AssetId key/field of the table value returned by GetProductInfo() matches the ID that was passed as an argument to it. You need to iterate over the catalog IDs behind the requested decal ID in order to retrieve its corresponding image ID.