Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Roblox API | RAP Checker | All external websites are down?

Asked by
marbox 0
7 years ago

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.

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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;
}
?>
Ad

Answer this question