Skip to main content
GET
/
v1
/
scripts
/
trending
Trending
curl --request GET \
  --url https://api.roscripts.io/v1/scripts/trending
import requests

url = "https://api.roscripts.io/v1/scripts/trending"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.roscripts.io/v1/scripts/trending', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.roscripts.io/v1/scripts/trending",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.roscripts.io/v1/scripts/trending"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.roscripts.io/v1/scripts/trending")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.roscripts.io/v1/scripts/trending")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "result.scripts": [
    {}
  ]
}
Returns the top scripts by ranking score — a blend of votes, recent view velocity, and freshness. The ranking recomputes hourly, and responses are cached for 5 minutes, so polling faster than that just returns the same data.
curl "https://api.roscripts.io/v1/scripts/trending?max=20"

Query parameters

max
integer
default:"20"
Number of scripts. Max 20 anonymous, 100 with a key.
placeId
integer
Restrict trending to a single game.

Response

result.scripts
Script[]
Top scripts, highest score first.
{
  "result": {
    "max": 20,
    "scripts": [
      { "id": "lst_…", "title": "…", "score": 6.12, "views": 40213, "loadstring": "https://script.roscripts.io/…" }
    ]
  }
}
Want trending search terms instead of scripts? Use /v1/trending/searches.