List Benchmarks
curl --request GET \
--url https://api.nugen.in/api/v3/benchmarks/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nugen.in/api/v3/benchmarks/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nugen.in/api/v3/benchmarks/list', 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.nugen.in/api/v3/benchmarks/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.nugen.in/api/v3/benchmarks/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.nugen.in/api/v3/benchmarks/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nugen.in/api/v3/benchmarks/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"benchmarks": [
"benchmark_01k4x9m2p7q3r6a1",
"benchmark_01k4x9m2p7q3r6a2"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Benchmarks
List Benchmarks
Retrieve all benchmarks for the user.
This endpoint returns a paginated list of all benchmarks created or uploaded by the user, including both generated and manually uploaded benchmarks.
Query Parameters:
status(optional): Filter by benchmark statuslimit(optional): Number of benchmarks to return (1-100, default: 10)offset(optional): Number of benchmarks to skip for pagination (default: 0)
Returns:
benchmarks: List of benchmark objects, each containing:benchmark_id: Unique benchmark identifierbenchmark_name: Display name of the benchmarkstatus: Benchmark status (PROCESSING,READY,UPLOADED)created_at: Timestamp when benchmark was created
Example Request:
GET /api/v3/benchmarks/list
Headers: {"Authorization": "Bearer <api_key>"}
Example Response:
{
"benchmarks": [
{
"benchmark_id": "benchmark_01k4x9m2p7q3r6a1",
"benchmark_name": "Benchmark_document_01k4x9m2p7q3r5se",
"status": "READY",
"created_at": "2024-01-15T10:30:00Z"
},
{
"benchmark_id": "benchmark_01k4x9m2p7q3r6a2",
"benchmark_name": "Benchmark_document_01k4x9m2p7q3r5sg",
"status": "uploaded",
"created_at": "2024-01-16T14:20:00Z"
}
]
}
GET
/
api
/
v3
/
benchmarks
/
list
List Benchmarks
curl --request GET \
--url https://api.nugen.in/api/v3/benchmarks/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nugen.in/api/v3/benchmarks/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nugen.in/api/v3/benchmarks/list', 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.nugen.in/api/v3/benchmarks/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.nugen.in/api/v3/benchmarks/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.nugen.in/api/v3/benchmarks/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nugen.in/api/v3/benchmarks/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"benchmarks": [
"benchmark_01k4x9m2p7q3r6a1",
"benchmark_01k4x9m2p7q3r6a2"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter by benchmark status
Number of benchmarks to return
Required range:
1 <= x <= 100Number of benchmarks to skip
Required range:
x >= 0Response
Returns a list of all benchmarks created or uploaded by the user, including both generated and manually uploaded benchmarks
List of benchmarks
Show child attributes
Show child attributes
Example:
[
"benchmark_01k4x9m2p7q3r6a1",
"benchmark_01k4x9m2p7q3r6a2"
]
Was this page helpful?