Get the post privacy settings of a TikTok account
GET/business/video/settings/Gọi qua 360: GET https://partner.quantri360.com/v1/tiktok_business/business/video/settings/
Mô tả API
Cài đặt quyền riêng tư khi đăng bài của tài khoản: các mức hiển thị được chọn, có được bật bình luận / Duet / Stitch không, độ dài video tối đa. Dùng trước khi đăng video qua API.
- Chỉ có dữ liệu khi tài khoản đã cấp quyền đăng video. Tài khoản nối trước ngày 26/10/2026 cần nối lại để cấp thêm quyền này; nếu chưa, TikTok vẫn trả
code = 0nhưngdatarỗng{}.
Request
Địa chỉ
GET https://partner.quantri360.com/v1/tiktok_business/business/video/settings/
Xác thực & gian hàng
| Tên | Vị trí | Kiểu | Mẫu | Mô tả |
|---|---|---|---|---|
| Authorization | header | header | Bearer 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_id | query | string | 7000000000000000001 | Tà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. |
Tham số request
Không có tham số riêng (ngoài tham số chung).
Ví dụ request
curl -s "https://partner.quantri360.com/v1/tiktok_business/business/video/settings/?platform_shop_id=-000AbCdEfGhIjKlMnOpQrStUvWxYz012345" \ -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/business/video/settings/",
params={
"platform_shop_id": "-000AbCdEfGhIjKlMnOpQrStUvWxYz012345"
},
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/business/video/settings/');
for (const [k, v] of Object.entries({"platform_shop_id":"-000AbCdEfGhIjKlMnOpQrStUvWxYz012345"})) 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/business/video/settings/' . '?' . http_build_query(['platform_shop_id' => '-000AbCdEfGhIjKlMnOpQrStUvWxYz012345']); $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
Tham số phản hồi (nguyên của TikTok Business)
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| code | int | 0 | 0 = thành công; khác 0 xem `message` (TikTok trả HTTP 200 kèm code lỗi; vd 40002 = tham số sai, message liệt kê giá trị hợp lệ). |
| message | string | OK | Thông điệp của TikTok. |
| request_id | string | 2021080307532501024502410704A7306F | Mã request TikTok — ghi lại khi cần tra lỗi. |
| data | object | Dữ liệu. | |
| privacy_level_options | string[] | ["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","SELF_ONLY"] | Mức hiển thị được chọn. Tài khoản công khai: PUBLIC_TO_EVERYONE (mọi người) · MUTUAL_FOLLOW_FRIENDS (bạn bè) · SELF_ONLY (chỉ mình tôi). Tài khoản riêng tư: FOLLOWER_OF_CREATOR (người theo dõi) · MUTUAL_FOLLOW_FRIENDS · SELF_ONLY. |
| comment_disabled | bool | false | `true` = KHÔNG bật được "Cho phép bình luận" (vd tài khoản đặt bình luận "Không ai"). |
| duet_disabled | bool | false | `true` = KHÔNG bật được Duet (đặt "Chỉ mình tôi" hoặc tài khoản riêng tư). |
| stitch_disabled | bool | false | `true` = KHÔNG bật được Stitch (đặt "Chỉ mình tôi" hoặc tài khoản riêng tư). |
| max_video_post_duration_sec | int | 3600 | Độ dài video tối đa được đăng (giây). |
Bắt đầu dùng
- Đăng ký tài khoản Partner
- Mở loại dữ liệu thuộc nhóm Tài khoản TikTok (Organic API) ở trang nền tảng
- Tạo API key (tick kênh TikTok Business)
- Gọi theo ví dụ ở trên