Hello, I’m trying to figure out how to get data for an accessory using Roblox’s api.
I’ve already tried doing https://catalog.roblox.com/v1/search/items/details?id={id})
, but that doesn’t seem to work.
Anyone have any idea how I can do this?
Hello, I’m trying to figure out how to get data for an accessory using Roblox’s api.
I’ve already tried doing https://catalog.roblox.com/v1/search/items/details?id={id})
, but that doesn’t seem to work.
Anyone have any idea how I can do this?
Are you doing this via HTTPService? Because you cant use HTTPService for roblox websites.
I’m using $.getJSON
(t hirty chars)
Sending a post request to the following api will return information on the asset. (as shown below)
Api: https://catalog.roblox.com/v1/catalog/items/details
Response:
{
"data": [
{
"id": 63690008,
"itemType": "Asset",
"assetType": 41,
"name": "Pal Hair",
"description": "Yeah buddy! Pal hair for the win.",
"productId": 13034775,
"genres": [
"All"
],
"itemStatus": [],
"itemRestrictions": [],
"creatorType": "User",
"creatorTargetId": 1,
"creatorName": "Roblox",
"price": 0,
"priceStatus": "Free",
"favoriteCount": 807570,
"offSaleDeadline": null
}
]
}
In the body of the request you just include this
{
"items": [
{
"itemType": "Asset",
"id": 63690008 <-- That being the assetId of the item you wish to retrieve information for.
}
]
}
You can read more about it here under Catalog and /v1/catalog/item/details
what happens if i get “Token Validation Failed” in the response?