This is my current url: https://www.roblox.com/asset-thumbnail/image?assetId=10429530041&width=420&height=420&format=png
and this is my data I am encoding:
{
["content"] = "",
["embeds"] = {{
["thumbnail"] = {["url"] = "https://www.roblox.com/asset-thumbnail/image?assetId=10429530041&width=420&height=420&format=png"},
["title"] = "__**Uniform Approval**__",
["description"] = "By NotRapidV (ID: 90537338)",
["type"] = "rich",
["color"] = tonumber(0xffffff),
["fields"] = {
}
}}
}
and this is what shows up:
I am using a proxy, and I’ve tried other Ids, but it doesn’t work. Does anyone have any ideas? Again, I am trying to upload a decal/clothing ID image to an embedded webhook.
Thank you in advance!
1 Like
Forummer
(Forummer)
July 31, 2022, 5:46pm
#2
It still returns a blank image unfortunately
Forummer
(Forummer)
July 31, 2022, 5:54pm
#5
The API returns a JSON string, you need to parse its ‘imageUrl’ field’s value, in the example above that’d be.
https://tr.rbxcdn.com/bef2ec105bd0b3a4fadbf00f2db46b5a/420/420/Image/Png
This is a direct link to the image you’re trying to display.
Is there an API I can follow to parse the ‘imageUrl’ field?
Forummer
(Forummer)
July 31, 2022, 6:02pm
#7
You’d use HttpService:GetAsync()
to issue a request to the API, then you’d use HttpService:JSONDecode
to decode the response, and finally you’d index the result’s ‘imageUrl’ field for the direct image URL.
Okay thanks, I’ve tried that and it returns an error of “HttpService is not allowed to access ROBLOX resources”.
Forummer
(Forummer)
July 31, 2022, 6:08pm
#9
Yes, direct requests to the ‘roblox.com ’ domain are blocked, they’ll need to be issued through a proxy instead.
https://developer.roblox.com/en-us/api-reference/class/HttpService
Requests cannot be made to any Roblox website, such as www.roblox.com .
Been running this a few months without really promoting it, rprxy.xyz recently shut down so figured I’d post about it here.
A few highlights:
Significantly faster than rprxy was.
Access to all apis and endpoints, including catalog api.
No rate limits.
Let me know if you have any suggestions or run into any issues.
Disclaimer: I can’t recommend RoProxy (or any public proxy) for production applications. Albeit rare, downtime and slowdowns are inevitable, and you should never rely on third par…
Works, perfect. Thank you! Saved me a bunch of time.