Catalog Leaderboard Sales Tracker

  1. What do you want to achieve?

Simple Leaderboard that displays all of the Catalog items for UGC Creators from greatest amount of sales, to least amount of sales.

  1. What is the issue?

Can’t figure out how to collect all the items from the catalog url. Example

I basically want to get every single item in that catalog, and display onto a board from greatest amount of sales to least.

  1. What solutions have you tried so far?

I know all the ways to list greatest, to least, and update, and everything. Only problem is grabbing the items from the url.

Also looked at →

local Http = game:GetService("HttpService")

local CatalogData = Http:GetAsync("") 

CatalogData = Http:JSONDecode(CatalogData)

for _, Data in pairs(CatalogData.Data) do

print(Data[1])

end

Am I getting the catalog link here? ^

Then later I can implement →

 local Info = MarketplaceService:GetProductInfo(id, Enum.InfoType.Asset)
 TotalSales += tonumber(Info.Sales)

Basically some of the easier code.

Just a little confused on grabbing the UGC items. Especially putting them all maybe into a table?

1 Like

Any errors in the output?