I’m currently making a python script to get assets off of the creator store. I’m using the Creator Store Product API, and trying to get the default sword.
Every time I send the request though, I get this as the response:
{'code': 'INVALID_ARGUMENT', 'message': 'Invalid path request for creator-store-products'}
import requests
import dotenv
import os
dotenv.load_dotenv()
KEY = os.getenv("KEY")
product = 47433
base_url =f"https://apis.roblox.com/cloud/v2/creator-store-products/{product}"
headers = {
"x-api-key": KEY,
}
response = requests.get(base_url, headers=headers)
print(base_url) # https://apis.roblox.com/cloud/v2/creator-store-products/47433
print(response.json())
I’m using pretty much the same curl command they gave as an example, and in the documentation, it says creator-store-product
is the ID of the product.
The authentication is fine, the key has all the perms it needs, so what’s going on? Any help would be appreciated!