How to display gamepasses made by a player

So in the popular game “Pls Donate”, it shows a list of shirts and gamepasses made by you and shows its price. Now I’ve figured out how I can display the shirts using https://catalog.roproxy.com/v1/search/items/details?Category=3&CreatorName=
but I can’t figure out how to do the same with gamepasses.

What do I do?

1 Like

https://www.roproxy.com/users/inventory/list-json?assetTypeId=34&cursor=&itemsPerPage=100&pageNumber=%s&userId=%s

2 Likes

The number in the URL is referencing AssetType, change it to the one you want to fetch in order for it to get what you want. This case being 34.

1 Like

Ohhhhhh I see okok thank you so much.

I’ve tried using this and changing the number to 34 like @Jumpathy has said but for some reason it didn’t work. The game also didn’t give any errors at all

this Here could help you.

My script that I currently have is different from the one that he has provided.

local http = game:GetService("HttpService")
local url = "https://catalog.roproxy.com/v1/search/items/details?Category=3&CreatorName="

proximityPrompt.Triggered:Connect(function(plr)
	local data = http:JSONDecode(http:GetAsync(url .. plr.Name)).data
	if data then
		game.ReplicatedStorage.RemoteEvent:FireClient(plr)
		table.sort(data,
			function(a,b)
				return a.price < b.price
			end
		)
		
		for i, item in pairs(data) do
			local newButton = script.DonateButton:Clone()
			newButton.Text = item.price .. "R$"

			local id = Instance.new("IntValue", newButton)
			id.Value = item.id

			newButton.Parent = itemsScroller
			itemsScroller.CanvasSize = UDim2.new(0, itemsScroller.UIListLayout.AbsoluteContentSize.X, 0, 0)
		end

	end
end)

I can’t seem to be able to implement it anywhere or I’m just dumb