Problem with getting data with GetAsync

I came across an error when using :GetAsync with the HttpsService. It is able to return the data but not the correct data. When looking at the sales of my gamepass there are two, but when I get the data back it returns 0.

With my script being:

local HTTPService = game:GetService("HttpService")
local GamepassUrl= "https://api.rprxy.xyz/marketplace/game-pass-product-info?gamePassId=20014935"

local function GetGamepass()
	local response = HTTPService:GetAsync(GamepassUrl)
	local data = HTTPService:JSONDecode(response)
	return data
end
Data It Returns
{"TargetId":20014935,"ProductType":"Game Pass","AssetId":0,"ProductId":1190713596,"Name":"Ban
 Commands","Description":"","AssetTypeId":0,"Creator":{"Id":2685468379,"Name":"Inject 
Games","CreatorType":"Group","CreatorTargetId":11304215},"IconImageAssetId":7116362725,"Create
d":"2021-07-18T18:19:21.83Z","Updated":"2021-08-
02T23:02:27.337Z","PriceInRobux":2000,"PriceInTickets":null,"Sales":0,"IsNew":false,"IsForSale":true,"
IsPublicDomain":false,"IsLimited":false,"IsLimitedUnique":false,"Remaining":null,"MinimumMembership
Level":0,"ContentRatingTypeId":0}

Actual Sales

image

I’ve tried fixing this but I haven’t found a way how. It may be something with me using the proxy Roblox API but I’m not sure. I would like to know what you think :slight_smile:

Instead of HTTP service, try using MarketplaceService:GetProductInfo()

1 Like