VI | EN
Message us on Messenger
Developer resources

Get the results of a Smart Fix task — TikTok Business API

Get the results of a Smart Fix task · call it through Quantri360 with one API key for your own accounts / assets that you connected and authorized — 360 handles request signing and refreshing the authorization you granted.

Get the results of a Smart Fix task

GET/video/fix/task/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/
Description

Use this endpoint to get the results of a Smart Fix task.

Request

Endpoint

GET https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/

Authentication & shop

NameInTypeSampleDescription
AuthorizationheaderheaderBearer q360_live_ab12cd34_…Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand.
platform_shop_idquerystring7000000000000000001Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản.

Request parameters

NameInTypeRequiredSampleDescription
task_idquerystringYesFix task ID. Pass in the fix_task_id you get from the response of the /video/fix/task/create/ or /file/video/ad/upload/endpoint.

Request examples

curl -s "https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/?task_id=" \
  -H "Authorization: Bearer $KEY"
Python
import requests

KEY = "q360_live_..."  # khóa API của brand
r = requests.get(
    "https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/",
    params={
        "task_id": ""
    },
    headers={"Authorization": f"Bearer {KEY}"},
    timeout=60,
)
print(r.status_code)
print(r.json())
Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/');
for (const [k, v] of Object.entries({"task_id":""})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
  method: 'GET',
  headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());
PHP
<?php
$key = 'q360_live_...'; // khóa API của brand
$url = 'https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/' . '?' . http_build_query(['task_id' => '']);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]);
$res = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, "\n", $res;

Response

Response fields (as returned by TikTok Business)

NameTypeSampleDescription
codenumberResponse code. For the complete list of response codes and descriptions, see Appendix - Return Codes.
messagestringResponse message. For details, see Appendix - Return Codes.
dataobjectThe returned data
statusstringTask status. Enum values: `PROCESSING`, `FAILED`, `SUCCESS`.
error_msgstringError message. Returned only when the status is `FAILED`.
videosobject[]Fixed video info. Max size is 3. Returned only when the status is `SUCCESS`.
video_idstringFixed video ID.
video_urlstringFixed video preview URL. Valid only for 7 days.
request_idstringThe log id of a request, which uniquely identifies the request.

Response sample

HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "202208180952320101860032142108B920",
    "data": {
        "error_msg": null,
        "videos": [
            {
                "video_url": "http://v16m-default.akamaized.net/a17b15b1c623eea1856c89d521af1bfc/63074676/video/tos/alisg/tos-alisg-v-0000/c98a4fb0433d4e3e9adf27228c7543cb/?a=0&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=748&bt=374&cs=0&ds=1&ft=uSV.Ng3-Inz.Jx9oABM&mime_type=video_mp4&qs=0&rc=NTk2NWk7Nzg0O2VlMzloZUBpamtvcmU6ZnIzZTMzODYzNEAuMV9gLTIwNmAxLWMyNGI1YSNxLjNicjRnanNgLS1kMC1zcw%3D%3D&l=202208180952320101860032142108B920&btag=80000",
                "video_id": "v10033g50000cbv0mojc77ubeo6l1htg"
            },
            {
                "video_url": "http://v16m-default.akamaized.net/85d8eb552878e7f12f81c692e987bdb8/63074676/video/tos/alisg/tos-alisg-v-0000/67029d0cd5a7411bbd25c42062765a21/?a=0&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=748&bt=374&cs=0&ds=1&ft=uSV.Ng3-Inz.Jx9oABM&mime_type=video_mp4&qs=0&rc=M2k4OTs3Zjg6aWU0aTU7O0BpM3BqeWY6ZnIzZTMzODYzNEA1Yl81NS8vXjExNWJfYTY1YSNnZmAucjRnanNgLS1kMC1zcw%3D%3D&l=202208180952320101860032142108B920&btag=80000",
                "video_id": "v10033g50000cbv0mojc77uc1vcgimj0"
            },
            {
                "video_url": "http://v16m-default.akamaized.net/11609ae2c7055dfee98b657103e4e3e0/63074676/video/tos/alisg/tos-alisg-v-0000/cd9e274c0def4d398b1228a35ebabd19/?a=0&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=746&bt=373&cs=0&ds=1&ft=uSV.Ng3-Inz.Jx9oABM&mime_type=video_mp4&qs=0&rc=NjNkNzo8NGhoNmlmaTxpNkBpM2U4bzk6ZnMzZTMzODYzNEBeMDJeXzY2NmExNDMxMV4yYSNwNWhhcjQwanNgLS1kMC1zcw%3D%3D&l=202208180952320101860032142108B920&btag=80000",
                "video_id": "v10033g50000cbv0mp3c77u6dlk58bs0"
            }
        ],
        "status": "SUCCESS"
    }
}
(/code);

Get started

  1. Sign up for Partner
  2. Enable a data type of the Ads (Marketing API) group on the platform page
  3. Create an API key (tick the TikTok Business channel)
  4. Call it as in the examples above