What’s the api for getting the t-shirts, shirts, pants, gamepasses etc created by a user.
You can use the Marketplace API.
The endpoint for the Creator Marketplace is https://search.roblox.com/catalog/json
, while the Catalog endpoint is https://catalog.roblox.com/v1/search/items
.
To get a list of assets created by a specific user, you need to use either one of the following parameters:
-
CreatorTargetId
: The value should be either a group or user ID. If you enter a group then you’ll need to specifyCreatorType
as 2 (which means the ID is a group’s). -
creatorName
: The value should be a group name or username.
For example, if you wanted to get all catalog assets created by yourself, you would use this URL:
https://catalog.roblox.com/v1/search/items?category=1&creatorName=MadGamerPranks00000&includeNotForSale=true&limit=120
.
category
1 is the category for all items, creatorName
limits it to your assets, includeNotForSale
includes off-sale assets, and limit
specifies how many to display.
You could also use creatorTargetId
if you only had the ID and it would return the same results (https://catalog.roblox.com/v1/search/items?category=1&creatorTargetId=667585991&includeNotForSale=true&limit=120
).
Thanks so much for the response!
Hello! How do you make it work for items like decals, audio etc cause when I tried this it was giving results to do with clothing related stuff?