Trying to get catalog IDs automatically

Hii I’m trying to get a table of catalog IDs through Http service.
I got this script from an open source and tried to modify it, however it says that the URL is blocked through the output :frowning:

local Http = game:GetService("HttpService")

local subcategory = 9
local url = "https://rprxy.triza.dev/catalog/json?Subcategory=" .. subcategory .. "&IncludeNotForSale=true&ResultsPerPage=60&PageNumber="
local pages = 25

local assets = {}

for i = 1, pages do
	local urlPage = url .. i
	local data = Http:JSONEncode(Http:GetAsync(urlPage))
	data = Http:JSONDecode(data)

	for ii = 1, #data do
		print(data)
		local asset = data[ii]
		print(asset)

		local id = asset.AssetId
		local name = asset.Name

		assets[#assets + 1] = "{Id = " ..id .. ", Name = \"" .. name .. "\"}"
	end
	print(i)
end

local source = "return { \n\t" .. table.concat(assets, ",\n\t") .. "\n}"
local module = Instance.new("ModuleScript")
module.Source = source
module.Parent = script

Thank you for your time in advance

1 Like

Can we get more info about the error?

1 Like

image
Do you have “Allow HTTP Requests” enabled in your Game Settings?

1 Like

yes I do! But somehow it doesn’t let me access it

1 Like

ok
the URL blocked. is where I print(data)
image

1 Like