VI | EN
Message us on Messenger
Developer resources

Get playable assets — TikTok Business API

Get playable assets · 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 playable assets

GET/playable/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/playable/get/
Description

Use this endpoint to get a list of playable assets.

Request

Endpoint

GET https://partner.quantri360.com/v1/tiktok_business/playable/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
playable_idquerystringNoPlayable asset ID to filter the results by.
playable_namequerystringNoPlayable asset name to filter the results by.
playable_urlquerystringNoPlayable URL.
statusquerystringNoPlayable asset status . Enum values:AUDIT_FAIL, AUDIT_SUCCESS,VALIDATE_FAIL,VALIDATE_SUCCESS,VALIDATING.
operation_statusquerystringNoPlayable asset operation status. Enum values:UPLOADED,SAVED,DELETED. Default value: SAVED.
pagequerynumberNoCurrent number of pages. Value range: ≥ 1. Default value: 1.
page_sizequerynumberNoPage size. Value range: 1-100. Default value: 10.

Request examples

curl -s "https://partner.quantri360.com/v1/tiktok_business/playable/get/" \
  -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/playable/get/",
    params={},
    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/playable/get/');
for (const [k, v] of Object.entries({})) 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/playable/get/' . '?' . http_build_query([]);
$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
codenumberReturn code. For the complete list of response codes and descriptions, see Appendix-Return codes.
messagestringReturn message. For details, see Appendix-Return codes.
request_idstringThe log id of a request, which uniquely identifies the request.
dataobjectReturned data.
listobject []Playable asset list.
advertiser_idstringAdvertiser ID.
playable_idstringPlayable asset ID.
playable_urlstringPlayable URL.
playable_namestringPlayable asset name.
playable_orientationstringPlayable asset orientation . Enum values: - `BOTH`: vertical or horizontal. - `LANDSCAPE`: horizontal. - `PORTRAIT`: vertical.
statusstringPlayable asset status. Enum values:`AUDIT_FAIL`,`AUDIT_SUCCESS`, `VALIDATE_FAIL`, `VALIDATE_SUCCESS`,`VALIDATING`.
operation_statusstringPlayable asset operation status. Enum values:`UPLOADED`,`SAVED`,`DELETED`.
page_infoobjectPagination information.
pagenumberCurrent page number.
page_sizenumberPage size.
total_numbernumberTotal number of results.
total_pagenumberTotal pages of results.

Response sample

HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "{{request_id}}",
    "data": {
        "list": [
            {
                "advertiser_id": "{{advertiser_id}}",
                "operation_status": "SAVED",
                "playable_id": "{{playable_id}}",
                "playable_name": "{{playable_name}}",
                "playable_orientation": "BOTH",
                "playable_url": "{{playable_url}}",
                "status": "VALIDATE_SUCCESS"
            }
        ],
        "page_info": {
            "page": 1,
            "page_size": 100,
            "total_number": 1,
            "total_page": 1
        }
    }
}
(/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