Scan result
curl --request GET \
--url https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result \
--header 'X-API-Key: <api-key>'import requests
url = "https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result', 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://console.interactivelayers.com/v1/vod/scans/{scan_id}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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://console.interactivelayers.com/v1/vod/scans/{scan_id}/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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://console.interactivelayers.com/v1/vod/scans/{scan_id}/result")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"breaks": [],
"costs": {
"by_stage": {
"asr": 0.001
},
"currency": "USD",
"total_usd": 0.001
},
"counts": {
"breaks": 0,
"phrases": 1
},
"duration": 14.48,
"holds": [],
"latency": {
"media_seconds": 14.48,
"speedup": 2,
"wall_seconds": 7.24
},
"notes": [],
"observations": [
{
"end": 3.5,
"output": {
"category_probs": {
"topic:deportes": 0.95
},
"risk_severity": 0
},
"start": 0,
"text": "The striker scored a goal."
}
],
"opportunities": [],
"profile": {
"revision": 1,
"topics": [
"deportes"
]
},
"scan_id": "scan-0123456789abcdef",
"transcript": [
{
"end": 3.5,
"start": 0,
"text": "The striker scored a goal."
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Consultar o resultado de uma análise
As análises de assets incluem a transcrição, as observações e o perfil de análise. As análises de URL do fluxo anterior incluem oportunidades, bloqueios e intervalos com sinais. Os deslocamentos são expressos em segundos desde o início do conteúdo.
GET
/
v1
/
vod
/
scans
/
{scan_id}
/
result
Scan result
curl --request GET \
--url https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result \
--header 'X-API-Key: <api-key>'import requests
url = "https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result', 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://console.interactivelayers.com/v1/vod/scans/{scan_id}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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://console.interactivelayers.com/v1/vod/scans/{scan_id}/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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://console.interactivelayers.com/v1/vod/scans/{scan_id}/result")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.interactivelayers.com/v1/vod/scans/{scan_id}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"breaks": [],
"costs": {
"by_stage": {
"asr": 0.001
},
"currency": "USD",
"total_usd": 0.001
},
"counts": {
"breaks": 0,
"phrases": 1
},
"duration": 14.48,
"holds": [],
"latency": {
"media_seconds": 14.48,
"speedup": 2,
"wall_seconds": 7.24
},
"notes": [],
"observations": [
{
"end": 3.5,
"output": {
"category_probs": {
"topic:deportes": 0.95
},
"risk_severity": 0
},
"start": 0,
"text": "The striker scored a goal."
}
],
"opportunities": [],
"profile": {
"revision": 1,
"topics": [
"deportes"
]
},
"scan_id": "scan-0123456789abcdef",
"transcript": [
{
"end": 3.5,
"start": 0,
"text": "The striker scored a goal."
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Autorizações
Resposta
Successful Response