Get Dataset Scale Task Info
curl --request GET \
--url https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo', 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}/exportScaleTaskInfo",
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: Basic <encoded-value>"
],
]);
$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.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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}/exportScaleTaskInfo")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"exportedScaleTaskInfoRows": [
{
"scene": {
"id": "scn_a1b2c3d4e5f6g7h8",
"reference_id": "my_lidar_scene_1",
"metadata": {
"foo": "bar"
},
"type": "lidar"
},
"scale_task_info": [
{
"task_id": "6270120cd7e3ee003b12345",
"subtask_id": "6270120dd7e3ee003babcde",
"task_status": "pending",
"task_audit_status": "unspecified",
"task_audit_review_comment": null,
"project_name": "my_lidarannotation_project",
"batch": "6270120afbafa80011vwxyz",
"created_at": "2022-05-02T17:17:00.640Z",
"completed_at": null
}
]
}
],
"errors": []
}{}Datasets
Get Dataset Scale Task Info
GET
/
dataset
/
{dataset_id}
/
exportScaleTaskInfo
Get Dataset Scale Task Info
curl --request GET \
--url https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo', 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}/exportScaleTaskInfo",
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: Basic <encoded-value>"
],
]);
$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.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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}/exportScaleTaskInfo")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scale.com/v1/nucleus/dataset/{dataset_id}/exportScaleTaskInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"exportedScaleTaskInfoRows": [
{
"scene": {
"id": "scn_a1b2c3d4e5f6g7h8",
"reference_id": "my_lidar_scene_1",
"metadata": {
"foo": "bar"
},
"type": "lidar"
},
"scale_task_info": [
{
"task_id": "6270120cd7e3ee003b12345",
"subtask_id": "6270120dd7e3ee003babcde",
"task_status": "pending",
"task_audit_status": "unspecified",
"task_audit_review_comment": null,
"project_name": "my_lidarannotation_project",
"batch": "6270120afbafa80011vwxyz",
"created_at": "2022-05-02T17:17:00.640Z",
"completed_at": null
}
]
}
],
"errors": []
}{}Click for Python SDK
Dataset.export_scale_task_info() -> List[Dict]
Dataset. This includes: task_id, subtask_id, task_status, task_audit_status, task_audit_review_comment, project_name, batch, created_at, and completed_at.