Hello,
I’ve been trying to do this for a while, which is simply print a list of catalog IDs with their respective subcategory.
I’ve made my own proxy, and I’ve been trying to get it working, however I come across the same issue various times which is that it errors saying
HttpService is not allowed to access ROBLOX resources
Here’s the script, I’ve made my own proxy using heroku.
local Http = game:GetService("HttpService")
local url = "https://search.[PROXY].herokuapp.com/v1/search/items/details?Category=64&cursor="
local pages = 25
local assets = {}
for i = 1, pages do
local urlPage = url .. i
print(urlPage)
local request = Http:JSONEncode(Http:GetAsync({
Url = urlPage,
Method = "GET",
Headers = {
["X-API-KEY"] = "123"
}
}))
print(request)
data = Http:JSONDecode(request)
print(data)
print(data[1])
for ii = 1, #data do
local asset = data[ii]
print(typeof(asset))
local id = asset.AssetId
local name = asset.Name
print(id, name)
assets[#assets + 1] = "{Id = " ..id .. ", Name = \"" .. name .. "\"}"
end
end
I have added [PROXY] to not display my own.
The script is trying to get a list of 3D T-Shirts.