Can't access assets!

I have spent about 2 hours trying to figure out what im doing wrong and I have no idea. I check all forum posts i could find but again nothing worked. All I want is just to get the icon of a game. It works in my browser, so i dont know whats wrong.

def fetch_asset(self, asset_id: int):
    url = f"https://assetdelivery.roblox.com/v1/openCloud/assetId/{asset_id}"
    headers = {
        "x-api-key": self.assetApiKey,  
    }

    r = requests.get(url, headers=headers)

    return r.content, r.headers.get("Content-Type")

I keep getting:
image

My api key perms:

2 Likes

Can you even access other games thumbnails? Maybe the api allows to get only your own?

Hey DefoLite, looks like you are calling this endpoint: https://create.roblox.com/docs/cloud/reference/features/assets#get_asset_delivery_api_v1_assetId__assetId_

Based on that, all you need to change is the base URL from assetdelivery.roblox.com to apis.roblox.com.

Let me know if that doesn’t work or if you run into any other issues!

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