v2 Scores list
curl --request GET \
--url https://api.enkryptai.com/leaderboard/v2/scores \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/v2/scores"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/leaderboard/v2/scores', 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.enkryptai.com/leaderboard/v2/scores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$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.enkryptai.com/leaderboard/v2/scores"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
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.enkryptai.com/leaderboard/v2/scores")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/v2/scores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"scores": [
{
"model_name": "gpt-4o",
"provider": "OpenAI",
"source": "OpenAI",
"risk_score": 33.9614,
"bias_score": 82.17,
"cbrn_score": 5.67,
"harmful_score": 42.22,
"insecure_code_score": 31.11,
"toxicity_score": 8.64,
"robustness_score": null,
"jailbreak_score": 8.53333,
"evasion_score": null,
"safety_score": 37.7112,
"nist_score": 34,
"owasp_score": 39
}
]
}
}๐ Leaderboard API
v2 Scores list
Retrieves a list of scores of all the models
GET
/
leaderboard
/
v2
/
scores
v2 Scores list
curl --request GET \
--url https://api.enkryptai.com/leaderboard/v2/scores \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/v2/scores"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/leaderboard/v2/scores', 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.enkryptai.com/leaderboard/v2/scores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$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.enkryptai.com/leaderboard/v2/scores"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
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.enkryptai.com/leaderboard/v2/scores")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/v2/scores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"scores": [
{
"model_name": "gpt-4o",
"provider": "OpenAI",
"source": "OpenAI",
"risk_score": 33.9614,
"bias_score": 82.17,
"cbrn_score": 5.67,
"harmful_score": 42.22,
"insecure_code_score": 31.11,
"toxicity_score": 8.64,
"robustness_score": null,
"jailbreak_score": 8.53333,
"evasion_score": null,
"safety_score": 37.7112,
"nist_score": 34,
"owasp_score": 39
}
]
}
}โI

