Script function that returns published data of a catalog item

Was just wondering; is there any function, that when passed the ID of a catalog item, returns data (preferably stored in a table/dictionary) such as the item’s publish date?

Theoretically:

SomeService:FunctionThatReturnsCatalogData(AssetID)
-- table of information of assetID

This is probably a trivial question, but I’ve no idea where to look. I looked in AssetService, but there’s no information there. Help, please?

EDIT: Consider this solved. MarketplaceService works great here.

1 Like

I know you found MarketPlaceService, but my favorite function is
MarketplaceService:GetProductInfo(AssetId)
Should work well for you.

4 Likes

I have another question; how would you convert the timestamp the function returns to a number, in seconds?

Try looking into os.date, otherwise, create a new thread.

1 Like

Requested by OP

Support threads will stay open to allow for people to suggest improved practices and further recommendations over the already existing posts at any point in the future.

1 Like