Obtén los resultados de varias clasificaciones de audio
curl --request GET \
--url https://backend.identifai.net/api/classifications_audio \
--header 'X-Api-Key: <api-key>'import requests
url = "https://backend.identifai.net/api/classifications_audio"
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://backend.identifai.net/api/classifications_audio', 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://backend.identifai.net/api/classifications_audio",
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://backend.identifai.net/api/classifications_audio"
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://backend.identifai.net/api/classifications_audio")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.identifai.net/api/classifications_audio")
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[
{
"hash": "<string>",
"identifier": "<string>",
"api_version": "<string>",
"status": "new",
"deferred_status": "pending",
"deferred_progress": {
"current_idx": 123,
"total": 123
},
"deferred_errors": [
"<string>"
],
"errors": "<string>",
"name": "<string>",
"ref_id": "<string>",
"result_url": "<string>",
"verdict": {
"heuristic": "<string>",
"confidence": 123,
"classification": "human",
"models": [
"<string>"
]
},
"verdicts": [
{
"heuristic": "<string>",
"confidence": 123,
"classification": "human",
"models": [
"<string>"
]
}
],
"force_classification": "human",
"results": [
{
"model": "<string>",
"unknown": true,
"elapsed_time": 123,
"classification": [
{
"label": "human",
"score": 123
}
],
"classification_details": {}
}
],
"details": {
"clips": [
{
"index": 123,
"start": 123,
"end": 123,
"results": [
{
"model": "<string>",
"unknown": true,
"elapsed_time": 123,
"classification": [
{
"label": "human",
"score": 123
}
],
"classification_details": {}
}
],
"verdict": {
"heuristic": "<string>",
"confidence": 123,
"classification": "human",
"models": [
"<string>"
]
}
}
]
}
}
]Clasificación
Obtén los resultados de varias clasificaciones de audio
Obtiene los resultados de varias clasificaciones de audio a partir de una lista de identificadores.
Obtén los resultados de varias clasificaciones de audio
curl --request GET \
--url https://backend.identifai.net/api/classifications_audio \
--header 'X-Api-Key: <api-key>'import requests
url = "https://backend.identifai.net/api/classifications_audio"
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://backend.identifai.net/api/classifications_audio', 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://backend.identifai.net/api/classifications_audio",
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://backend.identifai.net/api/classifications_audio"
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://backend.identifai.net/api/classifications_audio")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.identifai.net/api/classifications_audio")
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[
{
"hash": "<string>",
"identifier": "<string>",
"api_version": "<string>",
"status": "new",
"deferred_status": "pending",
"deferred_progress": {
"current_idx": 123,
"total": 123
},
"deferred_errors": [
"<string>"
],
"errors": "<string>",
"name": "<string>",
"ref_id": "<string>",
"result_url": "<string>",
"verdict": {
"heuristic": "<string>",
"confidence": 123,
"classification": "human",
"models": [
"<string>"
]
},
"verdicts": [
{
"heuristic": "<string>",
"confidence": 123,
"classification": "human",
"models": [
"<string>"
]
}
],
"force_classification": "human",
"results": [
{
"model": "<string>",
"unknown": true,
"elapsed_time": 123,
"classification": [
{
"label": "human",
"score": 123
}
],
"classification_details": {}
}
],
"details": {
"clips": [
{
"index": 123,
"start": 123,
"end": 123,
"results": [
{
"model": "<string>",
"unknown": true,
"elapsed_time": 123,
"classification": [
{
"label": "human",
"score": 123
}
],
"classification_details": {}
}
],
"verdict": {
"heuristic": "<string>",
"confidence": 123,
"classification": "human",
"models": [
"<string>"
]
}
}
]
}
}
]Parámetros de consulta
Respuesta
Lista de clasificaciones de audio.
Estado de los resultados diferidos (pasos ejecutados después de los resultados principales, p. ej., las explicaciones textuales de los mapas XAI y de la heatmap). Solo está presente cuando el envío tiene resultados diferidos: pending (el análisis principal sigue en curso), inprogress, done, errored (al menos un paso diferido ha fallado, los resultados principales siguen siendo válidos), skipped (el análisis principal ha fallado), expired (no completados a tiempo; aún pueden pasar a done o errored más tarde). Nunca cambia status: un envío está en done antes que sus resultados diferidos.
Opciones disponibles:
pending, inprogress, done, errored, skipped, expired