How to only get limited items

I have a script that will get the newest items on roblox. The issue is it is giving me all the catagories and I only want limited items even though I set the catagories and subcatagories to their correct numbers. I dont understand why it is giving me non limited items.

Script:

local httpservice=  game:GetService('HttpService')
local url = "https://catalog.roproxy.com/v2/search/items/details?Catagory=2&SortType=3&SortAggregation=5&Limit=10"

local response = httpservice:GetAsync(url)
local data = httpservice:JSONDecode(response)
print(data)

image
Thanks for the help.

1 Like

You can loop through all of the catalog items and use economy.roproxy.com to get if its limited or not, but it also provides alot more information.

Here’s one of the items for example:

            ["AssetId"] = 15081488480,
                    ["AssetTypeId"] = 11,
                    ["ContentRatingTypeId"] = 0,
                    ["Created"] = "2023-10-15T19:37:25.6364955Z",
                    ["Creator"] =  â–¶  table: 0xb2b51dc45ba7b85d  {...},
                    ["Description"] = "yayyy",
                    ["IconImageAssetId"] = 0,
                    ["IsForSale"] = true,
                    ["IsLimited"] = false,
                    ["IsLimitedUnique"] = false,
                    ["IsNew"] = false,
                    ["IsPublicDomain"] = false,
                    ["MinimumMembershipLevel"] = 0,
                    ["Name"] = "Garfield :3 :D",
                    ["PriceInRobux"] = 5,
                    ["ProductId"] = 1669172391,
                    ["ProductType"] = "User Product",
                    ["Sales"] = 0,
                    ["TargetId"] = 15081488480,
                    ["Updated"] = "2023-10-15T19:37:25.640309Z"

This is pretty slow though; and theres probably a way to bulk get all of this instead of constantly pinging roproxy that I don’t know about. But its functional, just try not to get rate limited.

local HttpsService =  game:GetService('HttpService')
local CatalogURL = "https://catalog.roproxy.com/v2/search/items/details?Catagory=2&SortType=3&SortAggregation=5&Limit=10"
local EconomyURL = "https://economy.roproxy.com/v2/assets/%d/details"

local CatalogDecode = HttpsService:JSONDecode(HttpsService:GetAsync(CatalogURL))

function IsLimited(Id: number): boolean
	local Endpoint = EconomyURL:format(Id)
	local EconomyResponse = HttpsService:JSONDecode(HttpsService:GetAsync(Endpoint))
	
	print(EconomyResponse)
	return EconomyResponse.IsLimited
end

local FinalizedData = {}
for i, ItemData in CatalogDecode.data do
	table.insert(FinalizedData, {ItemId = ItemData.id, IsLimited = IsLimited(ItemData.id)})
end

print("Finalized Data: ", FinalizedData)
1 Like

Okay, so I just ran this code and it gave me the data that is not limited as the output prints that [“IsLimited”] is false. How would I fix this?
image


(ItemID is the same but the item is not limited)