How would I get the rap of an item?

I’ve been searching for about an hour now, and I can’t figure out how to get the recent average price of an item, I was able to get info through the Marketplace/ProductInfo API, however, this wouldn’t even give me the amount of Robux the item was selling for. I then tried getting the information from Rolimons but I kept being denied access, is there a way around this? (I am developing this in .NET C#)

class Program
    {
        public static string ItemURLFormat = "https://www.rolimons.com/Item/{0}";
        private readonly HttpClient client = new HttpClient();

        static async Task Main(string[] args)
        {
            Program program = new Program();
            await program.GetItemDataAsync(itemId: 4390875496);
        }

        private async Task GetItemDataAsync(long itemId)
        {
            string url = String.Format(ItemURLFormat, itemId.ToString());
            Console.WriteLine(url);

            string response = await client.GetStringAsync(url);

            Console.WriteLine(response);
            Console.ReadLine();
        }
    }

This is the only endpoint that I found returns a RAP value.
https://inventory.roblox.com/docs#!/Inventory/get_v1_users_userId_assets_collectibles

1 Like

https://economy.roblox.com/v1/assets/4390875496/resale-data

The documentation for this endpoint got removed it looks like, maybe because it was used maliciously?

Here is what the returned json data (as a lua table) from a while ago looked like for a red sparkle time fedora:

{
	['priceDataPoints'] = {
		[1] = {
			['date'] = "2021-02-02T06:00:00Z",
			['value'] = 20000,
		};
		[2] = {
			['date'] = "2021-01-26T06:00:00Z",
			['value'] = 68100,
		};
		[3] = {
			['date'] = "2021-01-10T06:00:00Z",
			['value'] = 45000,
		};
		[4] = {
			['date'] = "2020-12-18T06:00:00Z",
			['value'] = 100000,
		};
		[5] = {
			['date'] = "2020-12-09T06:00:00Z",
			['value'] = 80000,
		};
	};
	['numberRemaining'] = 0,
	['originalPrice'] = 10000,
	['volumeDataPoints'] = {
		[1] = {
			['date'] = "2021-02-02T06:00:00Z",
			['value'] = 1,
		};
		[2] = {
			['date'] = "2021-01-26T06:00:00Z",
			['value'] = 1,
		};
		[3] = {
			['date'] = "2021-01-10T06:00:00Z",
			['value'] = 1,
		};
		[4] = {
			['date'] = "2020-12-18T06:00:00Z",
			['value'] = 1,
		};
		[5] = {
			['date'] = "2020-12-09T06:00:00Z",
			['value'] = 1,
		};
	};
	['sales'] = 100,
	['assetStock'] = 100,
	['recentAveragePrice'] = 996195,
};
3 Likes