Hello, I am trying to obtain the recent average price of an item using this:
local ProxyService = require(script.Parent.ProxyService)
local Proxy = ProxyService:New('https://prpprr.herokuapp.com', '578bc38d5f71d9bd5ae546080fcbe7f82cdf566c6064b4e3b416f698187372de')
print(Proxy:Get('https://economy.roblox.com/v1/assets/1149615185/resale-data').body.recentAveragePrice)
For the proxy I couldn’t use the standard one because I guess it doesn’t support that so I am using this, everything is working fine, when I print the body it returns with this:
{"assetStock":10000,"sales":10000,"numberRemaining":0,"recentAveragePrice":1461,"originalPrice":250,"priceDataPoints":[{"value":1519,"date":"2021-02-19T06:00:00Z"},{"value":1408,"date":"2021-02-18T06:00:00Z"},{"value":1492,"date":"2021-02-17T06:00:00Z"},{"value":1844,"date":"2021-02-16T06:00:00Z"},{"value":1599,"date":"2021-02-15T06:00:00Z"},{"value":1275,"date":"2021-02-14T06:00:00Z"},{"value":1338,"date":"2021-02-13T06:00:00Z"},{"value":1217,"date":"2021-02-12T06:00:00Z"},{"value":1230,"date":"2021-02-11T06:00:00Z"},{"value":1322,"date":"2021-02-10T06:00:00Z"},{"value":1347,"date":"2021-02-09T06:00:00Z"},{"value":1187,"date":"2021-02-08T06:00:00Z"},{"value":1190,"date":"2021-02-07T06:00:00Z"},{"value":1378,"date":"2021-02-06T06:00:00Z"},{"value":1294,"date":"2021-02-05T06:00:00Z"},{"value":970,"date":"2021-02-04T06:00:00Z"},{"value":1125,"date":"2021-02-03T06:00:00Z"},{"value":1172,"date":"2021-02-02T06:00:00Z"},{"value":1398,"date":"2021-02-01T06:00:00Z"},{"value":1368,"date":"2021-01-31T06:00:00Z"},{"value":1343,"date":"2021-01-30T06:00:00Z"},{"value":1248,"date":"2021-01-29T06:00:00Z"},{"value":1062,"date":"2021-01-28T06:00:00Z"},{"value":1115,"date":"2021-01-27T06:00:00Z"},{"value":1245,"date":"2021-01-26T06:00:00Z"},{"value":1081,"date":"2021-01-25T06:00:00Z"},{"value":1063,"date":"2021-01-24T06:00:00Z"},{"value":1255,"date":"2021-01-23T06:00:00Z"},{"value":1095,"date":"2021-01-22T06:00:00Z"},{"value":1294,"date":"2021-01-21T06:00:00Z"},{"value":1254,"date":"2021-01-20T06:00:00Z"},{"value":1271,"date":"2021-01-19T06:00:00Z"},{"value":1185,"date":"2021-01-18T06:00:00Z"},{"value":1144,"date":"2021-01-17T06:00:00Z"},{"value":1182,"date":"2021-01-16T06:00:00Z"},{"value":1169,"date":"2021-01-15T06:00:00Z"},{"value":993,"date":"2021-01-14T06:00:00Z"},{"value":982,"date":"2021-01-13T06:00:00Z"},{"value":1256,"date":"2021-01-12T06:00:00Z"},{"value":1118,"date":"2021-01-11T06:00:00Z"},{"value":1146,"date":"2021-01-10T06:00:00Z"},{"value":1266,"date":"2021-01-09T06:00:00Z"},{"value":1208,"date":"2021-01-08T06:00:00Z"},{"value":1176,"date":"2021-01-07T06:00:00Z"},{"value":1289,"date":"2021-01-06T06:00:00Z"},{"value":1113,"date":"2021-01-05T06:00:00Z"},{"value":1371,"date":"2021-01-04T06:00:00Z"},{"value":1142,"date":"2021-01-03T06:00:00Z"},{"value":1171,"date":"2021-01-02T06:00:00Z"},{"value":1180,"date":"2021-01-01T06:00:00Z"},{"value":1326,"date":"2020-12-31T06:00:00Z"},{"value":1178,"date":"2020-12-30T06:00:00Z"},{"value":1040,"date":"2020-12-29T06:00:00Z"},{"value":1087,"date":"2020-12-28T06:00:00Z"},{"value":1090,"date":"2020-12-27T06:00:00Z"},{"value":1207,"date":"2020-12-26T06:00:00Z"},{"value":1004,"date":"2020-12-25T06:00:00Z"},{"value":972,"date":"2020-12-24T06:00:00Z"},{"value":962,"date":"2020-12-23T06:00:00Z"},{"value":862,"date":"2020-12-22T06:00:00Z"},{"value":865,"date":"2020-12-21T06:00:00Z"},{"value":856,"date":"2020-12-20T06:00:00Z"},{"value":911,"date":"2020-12-19T06:00:00Z"},{"value":889,"date":"2020-12-18T06:00:00Z"},{"value":814,"date":"2020-12-17T06:00:00Z"},{"value":849,"date":"2020-12-16T06:00:00Z"},{"value":975,"date":"2020-12-15T06:00:00Z"},{"value":1010,"date":"2020-12-14T06:00:00Z"},{"value":885,"date":"2020-12-13T06:00:00Z"},{"value":992,"date":"2020-12-12T06:00:00Z"},{"value":746,"date":"2020-12-11T06:00:00Z"},{"value":858,"date":"2020-12-10T06:00:00Z"},{"value":981,"date":"2020-12-09T06:00:00Z"},{"value":851,"date":"2020-12-08T06:00:00Z"},{"value":799,"date":"2020-12-07T06:00:00Z"},{"value":898,"date":"2020-12-06T06:00:00Z"},{"value":1052,"date":"2020-12-05T06:00:00Z"},{"value":958,"date":"2020-12-04T06:00:00Z"},{"value":935,"date":"2020-12-03T06:00:00Z"},{"value":1064,"date":"2020-12-02T06:00:00Z"},{"value":861,"date":"2020-12-01T06:00:00Z"},{"value":940,"date":"2020-11-30T06:00:00Z"},{"value":785,"date":"2020-11-29T06:00:00Z"},{"value":854,"date":"2020-11-28T06:00:00Z"},{"value":812,"date":"2020-11-27T06:00:00Z"},{"value":773,"date":"2020-11-26T06:00:00Z"},{"value":921,"date":"2020-11-25T06:00:00Z"},{"value":951,"date":"2020-11-24T06:00:00Z"},{"value":925,"date":"2020-11-23T06:00:00Z"},{"value":1012,"date":"2020-11-22T06:00:00Z"},{"value":1009,"date":"2020-11-21T06:00:00Z"},{"value":824,"date":"2020-11-20T06:00:00Z"},{"value":749,"date":"2020-11-19T06:00:00Z"},{"value":834,"date":"2020-11-18T06:00:00Z"},{"value":1016,"date":"2020-11-17T06:00:00Z"},{"value":827,"date":"2020-11-16T06:00:00Z"},{"value":1182,"date":"2020-11-15T06:00:00Z"},{"value":939,"date":"2020-11-14T06:00:00Z"},{"value":972,"date":"2020-11-13T06:00:00Z"},{"value":991,"date":"2020-11-12T06:00:00Z"},{"value":1074,"date":"2020-11-11T06:00:00Z"},{"value":1178,"date":"2020-11-10T06:00:00Z"},{"value":1224,"date":"2020-11-09T06:00:00Z"},{"value":724,"date":"2020-11-08T06:00:00Z"},{"value":1137,"date":"2020-11-07T06:00:00Z"},{"value":1040,"date":"2020-11-06T06:00:00Z"},{"value":1244,"date":"2020-11-05T06:00:00Z"},{"value":917,"date":"2020-11-04T06:00:00Z"},{"value":1157,"date":"2020-11-03T06:00:00Z"},{"value":1020,"date":"2020-11-02T06:00:00Z"},{"value":825,"date":"2020-11-01T05:00:00Z"},{"value":888,"date":"2020-10-31T05:00:00Z"},{"value":942,"date":"2020-10-30T05:00:00Z"},{"value":798,"date":"2020-10-29T05:00:00Z"},{"value":906,"date":"2020-10-28T05:00:00Z"},{"value":956,"date":"2020-10-27T05:00:00Z"},{"value":899,"date":"2020-10-26T05:00:00Z"},{"value":859,"date":"2020-10-25T05:00:00Z"},{"value":773,"date":"2020-10-24T05:00:00Z"},{"value":986,"date":"2020-10-23T05:00:00Z"},{"value":859,"date":"2020-10-22T05:00:00Z"},{"value":1008,"date":"2020-10-21T05:00:00Z"},{"value":850,"date":"2020-10-20T05:00:00Z"},{"value":818,"date":"2020-10-19T05:00:00Z"},{"value":914,"date":"2020-10-18T05:00:00Z"},{"value":1181,"date":"2020-10-17T05:00:00Z"},{"value":1041,"date":"2020-10-16T05:00:00Z"},{"value":3156,"date":"2020-10-15T05:00:00Z"},{"value":1249,"date":"2020-10-14T05:00:00Z"},{"value":1019,"date":"2020-10-13T05:00:00Z"},{"value":1066,"date":"2020-10-12T05:00:00Z"},{"value":1135,"date":"2020-10-11T05:00:00Z"},{"value":1096,"date":"2020-10-10T05:00:00Z"},{"value":1013,"date":"2020-10-09T05:00:00Z"},{"value":965,"date":"2020-10-08T05:00:00Z"},{"value":960,"date":"2020-10-07T05:00:00Z"},{"value":1024,"date":"2020-10-06T05:00:00Z"},{"value":1050,"date":"2020-10-05T05:00:00Z"},{"value":1019,"date":"2020-10-04T05:00:00Z"},{"value":869,"date":"2020-10-03T05:00:00Z"},{"value":1236,"date":"2020-10-02T05:00:00Z"},{"value":889,"date":"2020-10-01T05:00:00Z"},{"value":1116,"date":"2020-09-30T05:00:00Z"},{"value":923,"date":"2020-09-29T05:00:00Z"},{"value":893,"date":"2020-09-28T05:00:00Z"},{"value":848,"date":"2020-09-27T05:00:00Z"},{"value":916,"date":"2020-09-26T05:00:00Z"},{"value":866,"date":"2020-09-25T05:00:00Z"},{"value":927,"date":"2020-09-24T05:00:00Z"},{"value":947,"date":"2020-09-23T05:00:00Z"},{"value":1078,"date":"2020-09-22T05:00:00Z"},{"value":765,"date":"2020-09-21T05:00:00Z"},{"value":716,"date":"2020-09-20T05:00:00Z"},{"value":887,"date":"2020-09-19T05:00:00Z"},{"value":873,"date":"2020-09-18T05:00:00Z"},{"value":832,"date":"2020-09-17T05:00:00Z"},{"value":716,"date":"2020-09-16T05:00:00Z"},{"value":745,"date":"2020-09-15T05:00:00Z"},{"value":825,"date":"2020-09-14T05:00:00Z"},{"value":884,"date":"2020-09-13T05:00:00Z"},{"value":1099,"date":"2020-09-12T05:00:00Z"},{"value":1038,"date":"2020-09-11T05:00:00Z"},{"value":925,"date":"2020-09-10T05:00:00Z"},{"value":1040,"date":"2020-09-09T05:00:00Z"},{"value":1007,"date":"2020-09-08T05:00:00Z"},{"value":1124,"date":"2020-09-07T05:00:00Z"},{"value":971,"date":"2020-09-06T05:00:00Z"},{"value":1071,"date":"2020-09-05T05:00:00Z"},{"value":1054,"date":"2020-09-04T05:00:00Z"},{"value":991,"date":"2020-09-03T05:00:00Z"},{"value":857,"date":"2020-09-02T05:00:00Z"},{"value":977,"date":"2020-09-01T05:00:00Z"},{"value":872,"date":"2020-08-31T05:00:00Z"},{"value":1056,"date":"2020-08-30T05:00:00Z"},{"value":863,"date":"2020-08-29T05:00:00Z"},{"value":1007,"date":"2020-08-28T05:00:00Z"},{"value":1161,"date":"2020-08-27T05:00:00Z"},{"value":1035,"date":"2020-08-26T05:00:00Z"},{"value":975,"date":"2020-08-25T05:00:00Z"},{"value":878,"date":"2020-08-24T05:00:00Z"},{"value":924,"date":"2020-08-23T05:00:00Z"}],"volumeDataPoints":[{"value":4,"date":"2021-02-19T06:00:00Z"},{"value":8,"date":"2021-02-18T06:00:00Z"},{"value":17,"date":"2021-02-17T06:00:00Z"},{"value":12,"date":"2021-02-16T06:00:00Z"},{"value":27,"date":"2021-02-15T06:00:00Z"},{"value":10,"date":"2021-02-14T06:00:00Z"},{"value":10,"date":"2021-02-13T06:00:00Z"},{"value":10,"date":"2021-02-12T06:00:00Z"},{"value":15,"date":"2021-02-11T06:00:00Z"},{"value":9,"date":"2021-02-10T06:00:00Z"},{"value":9,"date":"2021-02-09T06:00:00Z"},{"value":18,"date":"2021-02-08T06:00:00Z"},{"value":9,"date":"2021-02-07T06:00:00Z"},{"value":13,"date":"2021-02-06T06:00:00Z"},{"value":14,"date":"2021-02-05T06:00:00Z"},{"value":16,"date":"2021-02-04T06:00:00Z"},{"value":16,"date":"2021-02-03T06:00:00Z"},{"value":6,"date":"2021-02-02T06:00:00Z"},{"value":8,"date":"2021-02-01T06:00:00Z"},{"value":11,"date":"2021-01-31T06:00:00Z"},{"value":12,"date":"2021-01-30T06:00:00Z"},{"value":13,"date":"2021-01-29T06:00:00Z"},{"value":10,"date":"2021-01-28T06:00:00Z"},{"value":10,"date":"2021-01-27T06:00:00Z"},{"value":10,"date":"2021-01-26T06:00:00Z"},{"value":14,"date":"2021-01-25T06:00:00Z"},{"value":21,"date":"2021-01-24T06:00:00Z"},{"value":11,"date":"2021-01-23T06:00:00Z"},{"value":19,"date":"2021-01-22T06:00:00Z"},{"value":5,"date":"2021-01-21T06:00:00Z"},{"value":14,"date":"2021-01-20T06:00:00Z"},{"value":11,"date":"2021-01-19T06:00:00Z"},{"value":10,"date":"2021-01-18T06:00:00Z"},{"value":8,"date":"2021-01-17T06:00:00Z"},{"value":20,"date":"2021-01-16T06:00:00Z"},{"value":10,"date":"2021-01-15T06:00:00Z"},{"value":12,"date":"2021-01-14T06:00:00Z"},{"value":9,"date":"2021-01-13T06:00:00Z"},{"value":6,"date":"2021-01-12T06:00:00Z"},{"value":16,"date":"2021-01-11T06:00:00Z"},{"value":15,"date":"2021-01-10T06:00:00Z"},{"value":8,"date":"2021-01-09T06:00:00Z"},{"value":11,"date":"2021-01-08T06:00:00Z"},{"value":9,"date":"2021-01-07T06:00:00Z"},{"value":11,"date":"2021-01-06T06:00:00Z"},{"value":13,"date":"2021-01-05T06:00:00Z"},{"value":5,"date":"2021-01-04T06:00:00Z"},{"value":12,"date":"2021-01-03T06:00:00Z"},{"value":10,"date":"2021-01-02T06:00:00Z"},{"value":8,"date":"2021-01-01T06:00:00Z"},{"value":13,"date":"2020-12-31T06:00:00Z"},{"value":15,"date":"2020-12-30T06:00:00Z"},{"value":22,"date":"2020-12-29T06:00:00Z"},{"value":29,"date":"2020-12-28T06:00:00Z"},{"value":22,"date":"2020-12-27T06:00:00Z"},{"value":34,"date":"2020-12-26T06:00:00Z"},{"value":72,"date":"2020-12-25T06:00:00Z"},{"value":20,"date":"2020-12-24T06:00:00Z"},{"value":4,"date":"2020-12-23T06:00:00Z"},{"value":7,"date":"2020-12-22T06:00:00Z"},{"value":9,"date":"2020-12-21T06:00:00Z"},{"value":14,"date":"2020-12-20T06:00:00Z"},{"value":10,"date":"2020-12-19T06:00:00Z"},{"value":7,"date":"2020-12-18T06:00:00Z"},{"value":8,"date":"2020-12-17T06:00:00Z"},{"value":6,"date":"2020-12-16T06:00:00Z"},{"value":8,"date":"2020-12-15T06:00:00Z"},{"value":4,"date":"2020-12-14T06:00:00Z"},{"value":11,"date":"2020-12-13T06:00:00Z"},{"value":10,"date":"2020-12-12T06:00:00Z"},{"value":6,"date":"2020-12-11T06:00:00Z"},{"value":6,"date":"2020-12-10T06:00:00Z"},{"value":7,"date":"2020-12-09T06:00:00Z"},{"value":5,"date":"2020-12-08T06:00:00Z"},{"value":9,"date":"2020-12-07T06:00:00Z"},{"value":4,"date":"2020-12-06T06:00:00Z"},{"value":4,"date":"2020-12-05T06:00:00Z"},{"value":7,"date":"2020-12-04T06:00:00Z"},{"value":5,"date":"2020-12-03T06:00:00Z"},{"value":9,"date":"2020-12-02T06:00:00Z"},{"value":8,"date":"2020-12-01T06:00:00Z"},{"value":9,"date":"2020-11-30T06:00:00Z"},{"value":8,"date":"2020-11-29T06:00:00Z"},{"value":8,"date":"2020-11-28T06:00:00Z"},{"value":11,"date":"2020-11-27T06:00:00Z"},{"value":3,"date":"2020-11-26T06:00:00Z"},{"value":8,"date":"2020-11-25T06:00:00Z"},{"value":4,"date":"2020-11-24T06:00:00Z"},{"value":8,"date":"2020-11-23T06:00:00Z"},{"value":6,"date":"2020-11-22T06:00:00Z"},{"value":5,"date":"2020-11-21T06:00:00Z"},{"value":12,"date":"2020-11-20T06:00:00Z"},{"value":2,"date":"2020-11-19T06:00:00Z"},{"value":9,"date":"2020-11-18T06:00:00Z"},{"value":4,"date":"2020-11-17T06:00:00Z"},{"value":8,"date":"2020-11-16T06:00:00Z"},{"value":8,"date":"2020-11-15T06:00:00Z"},{"value":9,"date":"2020-11-14T06:00:00Z"},{"value":6,"date":"2020-11-13T06:00:00Z"},{"value":11,"date":"2020-11-12T06:00:00Z"},{"value":5,"date":"2020-11-11T06:00:00Z"},{"value":2,"date":"2020-11-10T06:00:00Z"},{"value":8,"date":"2020-11-09T06:00:00Z"},{"value":6,"date":"2020-11-08T06:00:00Z"},{"value":5,"date":"2020-11-07T06:00:00Z"},{"value":7,"date":"2020-11-06T06:00:00Z"},{"value":5,"date":"2020-11-05T06:00:00Z"},{"value":5,"date":"2020-11-04T06:00:00Z"},{"value":7,"date":"2020-11-03T06:00:00Z"},{"value":10,"date":"2020-11-02T06:00:00Z"},{"value":5,"date":"2020-11-01T05:00:00Z"},{"value":12,"date":"2020-10-31T05:00:00Z"},{"value":5,"date":"2020-10-30T05:00:00Z"},{"value":9,"date":"2020-10-29T05:00:00Z"},{"value":5,"date":"2020-10-28T05:00:00Z"},{"value":5,"date":"2020-10-27T05:00:00Z"},{"value":7,"date":"2020-10-26T05:00:00Z"},{"value":9,"date":"2020-10-25T05:00:00Z"},{"value":4,"date":"2020-10-24T05:00:00Z"},{"value":5,"date":"2020-10-23T05:00:00Z"},{"value":4,"date":"2020-10-22T05:00:00Z"},{"value":5,"date":"2020-10-21T05:00:00Z"},{"value":8,"date":"2020-10-20T05:00:00Z"},{"value":5,"date":"2020-10-19T05:00:00Z"},{"value":6,"date":"2020-10-18T05:00:00Z"},{"value":5,"date":"2020-10-17T05:00:00Z"},{"value":7,"date":"2020-10-16T05:00:00Z"},{"value":9,"date":"2020-10-15T05:00:00Z"},{"value":4,"date":"2020-10-14T05:00:00Z"},{"value":4,"date":"2020-10-13T05:00:00Z"},{"value":3,"date":"2020-10-12T05:00:00Z"},{"value":7,"date":"2020-10-11T05:00:00Z"},{"value":6,"date":"2020-10-10T05:00:00Z"},{"value":6,"date":"2020-10-09T05:00:00Z"},{"value":5,"date":"2020-10-08T05:00:00Z"},{"value":7,"date":"2020-10-07T05:00:00Z"},{"value":11,"date":"2020-10-06T05:00:00Z"},{"value":5,"date":"2020-10-05T05:00:00Z"},{"value":5,"date":"2020-10-04T05:00:00Z"},{"value":13,"date":"2020-10-03T05:00:00Z"},{"value":7,"date":"2020-10-02T05:00:00Z"},{"value":3,"date":"2020-10-01T05:00:00Z"},{"value":7,"date":"2020-09-30T05:00:00Z"},{"value":7,"date":"2020-09-29T05:00:00Z"},{"value":4,"date":"2020-09-28T05:00:00Z"},{"value":10,"date":"2020-09-27T05:00:00Z"},{"value":6,"date":"2020-09-26T05:00:00Z"},{"value":11,"date":"2020-09-25T05:00:00Z"},{"value":1,"date":"2020-09-24T05:00:00Z"},{"value":7,"date":"2020-09-23T05:00:00Z"},{"value":6,"date":"2020-09-22T05:00:00Z"},{"value":6,"date":"2020-09-21T05:00:00Z"},{"value":9,"date":"2020-09-20T05:00:00Z"},{"value":6,"date":"2020-09-19T05:00:00Z"},{"value":5,"date":"2020-09-18T05:00:00Z"},{"value":5,"date":"2020-09-17T05:00:00Z"},{"value":10,"date":"2020-09-16T05:00:00Z"},{"value":6,"date":"2020-09-15T05:00:00Z"},{"value":5,"date":"2020-09-14T05:00:00Z"},{"value":8,"date":"2020-09-13T05:00:00Z"},{"value":2,"date":"2020-09-12T05:00:00Z"},{"value":6,"date":"2020-09-11T05:00:00Z"},{"value":3,"date":"2020-09-10T05:00:00Z"},{"value":6,"date":"2020-09-09T05:00:00Z"},{"value":5,"date":"2020-09-08T05:00:00Z"},{"value":2,"date":"2020-09-07T05:00:00Z"},{"value":5,"date":"2020-09-06T05:00:00Z"},{"value":6,"date":"2020-09-05T05:00:00Z"},{"value":3,"date":"2020-09-04T05:00:00Z"},{"value":8,"date":"2020-09-03T05:00:00Z"},{"value":8,"date":"2020-09-02T05:00:00Z"},{"value":4,"date":"2020-09-01T05:00:00Z"},{"value":7,"date":"2020-08-31T05:00:00Z"},{"value":7,"date":"2020-08-30T05:00:00Z"},{"value":4,"date":"2020-08-29T05:00:00Z"},{"value":4,"date":"2020-08-28T05:00:00Z"},{"value":4,"date":"2020-08-27T05:00:00Z"},{"value":4,"date":"2020-08-26T05:00:00Z"},{"value":4,"date":"2020-08-25T05:00:00Z"},{"value":4,"date":"2020-08-24T05:00:00Z"},{"value":6,"date":"2020-08-23T05:00:00Z"}]}
Which is good because I used this link for it, https://economy.roblox.com/v1/assets/1149615185/resale-data
But I want only the recent average price, so for example I would just want the number, which is 1461
but in the code I put at the very top it prints out nil, could anyone help?
Thanks for reading!