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
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