Export Autotag Items
curl --request GET \
--url https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"scoreThreshold": "0"
}
'import requests
url = "https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems"
payload = { "scoreThreshold": "0" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({scoreThreshold: '0'})
};
fetch('https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems', 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.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'scoreThreshold' => '0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems"
payload := strings.NewReader("{\n \"scoreThreshold\": \"0\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
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.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"scoreThreshold\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scoreThreshold\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"autotag": {
"id": "tag_nfs9fajf2kf2nda",
"name": "Example autotag",
"status": "completed",
"autotag_level": "Object"
},
"autotagItems": [
{
"ref_id": "Reference item 1",
"dataset_item_id": "di_jfaf92n02dkfa0",
"score": 0.83,
"model_prediction_id": "pred_cu532902nfaf",
"ground_truth_annotation_id": "gt_93afnskf2nda90"
},
{
"ref_id": "Reference item 2",
"dataset_item_id": "di_fajfnk2n0d",
"score": 0.32,
"model_prediction_id": "pred_cu532902nfafdfa",
"ground_truth_annotation_id": "gt_93afnskfifja2nda90"
}
]
}{}Autotag
Export Autotag Items
GET
/
dataset
/
{dataset_id}
/
autotag
/
{autotag_name}
/
taggedItems
Export Autotag Items
curl --request GET \
--url https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"scoreThreshold": "0"
}
'import requests
url = "https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems"
payload = { "scoreThreshold": "0" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({scoreThreshold: '0'})
};
fetch('https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems', 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.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'scoreThreshold' => '0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems"
payload := strings.NewReader("{\n \"scoreThreshold\": \"0\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
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.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"scoreThreshold\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scale.com/v1/nucleus/dataset/{dataset_id}/autotag/{autotag_name}/taggedItems")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scoreThreshold\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"autotag": {
"id": "tag_nfs9fajf2kf2nda",
"name": "Example autotag",
"status": "completed",
"autotag_level": "Object"
},
"autotagItems": [
{
"ref_id": "Reference item 1",
"dataset_item_id": "di_jfaf92n02dkfa0",
"score": 0.83,
"model_prediction_id": "pred_cu532902nfaf",
"ground_truth_annotation_id": "gt_93afnskf2nda90"
},
{
"ref_id": "Reference item 2",
"dataset_item_id": "di_fajfnk2n0d",
"score": 0.32,
"model_prediction_id": "pred_cu532902nfafdfa",
"ground_truth_annotation_id": "gt_93afnskfifja2nda90"
}
]
}{}Click for Python SDK
Dataset.autotag_items(
autotag_name: str,
for_scores_greater_than: int
) -> dict
Authorizations
Path Parameters
Body
application/json