cURL
curl --request GET \
--url 'https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail?_id=670000000000000000000001' \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail"
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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail', 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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail",
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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail"
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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail")
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{
"code": 1000,
"msg": "OK",
"data": {
"_id": "<string>",
"status": 1,
"url": "<string>",
"media_type": "<string>",
"progress": 123,
"analysis_result": {
"track_manifest_url": "<string>",
"media": [
{
"obj_id": 123
}
]
},
"error_reason": "<string>",
"task_id": "<string>"
}
}API Endpoints
Get Analysis Result
Get Analysis Result for Clothing Swap V5.
GET
/
api
/
open
/
v5
/
clothingSwap
/
analyze
/
detail
cURL
curl --request GET \
--url 'https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail?_id=670000000000000000000001' \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail"
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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail', 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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail",
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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail"
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://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail")
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{
"code": 1000,
"msg": "OK",
"data": {
"_id": "<string>",
"status": 1,
"url": "<string>",
"media_type": "<string>",
"progress": 123,
"analysis_result": {
"track_manifest_url": "<string>",
"media": [
{
"obj_id": 123
}
]
},
"error_reason": "<string>",
"task_id": "<string>"
}
}GET https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail?_id={{analysis_id}}
| Parameter | Type | Required | Description |
|---|---|---|---|
| _id | String | true | Analysis ID returned by the analyze endpoint. |
cURL
curl --location 'https://openapi.akool.com/api/open/v5/clothingSwap/analyze/detail?_id=670000000000000000000001' \
--header 'x-api-key: {{API Key}}'
| Parameter | Type | Description |
|---|---|---|
| data | Object | Analysis record. |
| - _id | String | Analysis ID. |
| - task_id | String | Downstream algorithm/provider task ID; may be empty until submission. Use _id, not this value, for task-detail queries. It may change between workflow stages. |
| - status | Integer | 1 = queueing, 2 = processing, 3 = completed, 4 = failed. |
| - url | String | Original source URL. |
| - media_type | String | Original media type. |
| - progress | Number | Progress when available. |
| - analysis_result | Object | Algorithm result, available after completion. |
| — track_manifest_url | String | Required for video replacement; image analysis does not require a tracking manifest. |
| — media | Array | Detected objects. |
| --- obj_id | Integer | Detected person/object ID for mappings. |
| - error_reason | String | Failure reason when available. |
data.status: 3, then read person IDs from data.analysis_result.media[].obj_id. Completed video analysis must also contain track_manifest_url; completed image analysis does not require it. Pass that analysis ID as analyze_id and the detected IDs as mappings[].obj_id when creating a task. Failed analysis uses status: 4; inspect its failure reason before retrying.
For input limits, billing, callbacks, and error codes, see the Clothing Swap V5 overview.
Authorizations
ApiKeyAuthBearerAuth
Query Parameters
Analysis data._id returned by analyze; the record must belong to your user/team.
Pattern:
^[a-fA-F0-9]{24}$