So, a while back, there we're a lot of websites to check RAP using their custom API's. But to this day, they've all been shutdown. Does anyone know an other website that still offers this function? It would be greatly appreciated.
you can send a request to https://rbxcity.com/user/USERID to make it check RAP then wait a second then send a request to https://data.rbxcity.com/user-inventories/fetch/history/USERID This will return a JSON table take the last value of Data and take its RecentAveragePrice PHP example using Requests Library
<? if (isset($_GET["userid"])) { $userid = $_GET["userid"]; include('library/Requests.php'); Requests::register_autoloader(); Requests::get("https://rbxcity.com/user/".$userid); sleep(1); $response = Requests::get("https://data.rbxcity.com/user-inventories/fetch/history/".$userid)->body; $decoded = json_decode($response,true); foreach($decoded['data'] as $info){ $rap = $info['recentAveragePrice']; } echo $rap; } ?>