Get Faceswap Result List
curl --request GET \
--url https://openapi.akool.com/api/open/v3/faceswap/result/listbyids \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.akool.com/api/open/v3/faceswap/result/listbyids"
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/v3/faceswap/result/listbyids', 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/v3/faceswap/result/listbyids",
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/v3/faceswap/result/listbyids"
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/v3/faceswap/result/listbyids")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.akool.com/api/open/v3/faceswap/result/listbyids")
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": {
"result": [
{
"faceswap_type": 123,
"faceswap_quality": 123,
"deduction_status": 123,
"image": 123,
"video_duration": 123,
"deduction_duration": 123,
"update_time": 123,
"_id": "<string>",
"userId": "<string>",
"uid": 123,
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}API Endpoints
Get Faceswap Result List
Get faceswap results by IDs
GET
/
api
/
open
/
v3
/
faceswap
/
result
/
listbyids
Get Faceswap Result List
curl --request GET \
--url https://openapi.akool.com/api/open/v3/faceswap/result/listbyids \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.akool.com/api/open/v3/faceswap/result/listbyids"
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/v3/faceswap/result/listbyids', 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/v3/faceswap/result/listbyids",
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/v3/faceswap/result/listbyids"
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/v3/faceswap/result/listbyids")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.akool.com/api/open/v3/faceswap/result/listbyids")
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": {
"result": [
{
"faceswap_type": 123,
"faceswap_quality": 123,
"deduction_status": 123,
"image": 123,
"video_duration": 123,
"deduction_duration": 123,
"update_time": 123,
"_id": "<string>",
"userId": "<string>",
"uid": 123,
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}Important Notes
- Result IDs should be comma-separated strings
- You can get the
_idfield from Image Faceswap or Video Faceswap API responses
Faceswap Status
| Status | Description |
|---|---|
| 1 | In Queue |
| 2 | Processing |
| 3 | Success |
| 4 | Failed |
Authorizations
ApiKeyAuthBearerAuth
Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
Query Parameters
Result IDs are strings separated by commas
⌘I