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.