Get comments
GET/comment/list/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/comment/list/
Description
Bình luận dưới video quảng cáo (cả quảng cáo thường lẫn Spark Ads) của một nhóm quảng cáo trong khoảng ngày. Khác /business/comment/list/ (bình luận dưới video tự nhiên của tài khoản TikTok).
- Lấy id nhóm quảng cáo từ báo cáo / cấu hình nhóm quảng cáo của tài khoản.
- Cần lịch sử dài hơn 30 ngày → gọi nhiều lần, mỗi lần một khoảng ≤ 30 ngày.
- Dữ liệu cá nhân người bình luận (tên, ảnh, định danh) — chỉ dùng để chăm sóc khách / quản lý bình luận của chính tài khoản.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/comment/list/
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| 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. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| search_field | query | string | Yes | ADGROUP_ID | Luôn là ADGROUP_ID (lọc theo nhóm quảng cáo). |
| search_value | query | string | Yes | 1820000000000000001 | Id nhóm quảng cáo. |
| start_time | query | string | Yes | 2026-10-01 | Từ ngày, YYYY-MM-DD. |
| end_time | query | string | Yes | 2026-10-27 | Đến ngày, YYYY-MM-DD. Khoảng start_time – end_time tối đa 30 ngày (quá → lỗi 40002). |
| comment_type | query | string[] | No | ["ALL"] | Mảng JSON: ALL (mặc định) · COMMENT (bình luận gốc) · REPLY (phản hồi). |
| sort_field | query | string | No | CREATE_TIME | CREATE_TIME (mặc định) · LIKES · REPLIES. |
| sort_type | query | string | No | DESC | DESC (mặc định) · ASC. |
| page | query | int | No | 1 | Trang, từ 1. |
| page_size | query | int | No | 100 | Số bình luận mỗi trang: 1–100, mặc định 10. |
Pagination
Lặp page = 1, 2, … tới khi page ≥ data.page_info.total_page.
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/comment/list/?platform_shop_id=7000000000000000001&search_field=ADGROUP_ID&search_value=1820000000000000001&start_time=2026-10-01&end_time=2026-10-27&page_size=100" \ -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/comment/list/",
params={
"platform_shop_id": "7000000000000000001",
"search_field": "ADGROUP_ID",
"search_value": "1820000000000000001",
"start_time": "2026-10-01",
"end_time": "2026-10-27",
"page_size": 100
},
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/comment/list/');
for (const [k, v] of Object.entries({"platform_shop_id":"7000000000000000001","search_field":"ADGROUP_ID","search_value":"1820000000000000001","start_time":"2026-10-01","end_time":"2026-10-27","page_size":100})) 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/comment/list/' . '?' . http_build_query(['platform_shop_id' => '7000000000000000001', 'search_field' => 'ADGROUP_ID', 'search_value' => '1820000000000000001', 'start_time' => '2026-10-01', 'end_time' => '2026-10-27', 'page_size' => 100]); $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)
| Name | Type | Sample | Description |
|---|---|---|---|
| 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. | |
| comments | object[] | Bình luận. | |
| comment_id | string | 7700000000000000001 | Id bình luận. |
| content | string | Còn size M không shop? | Nội dung. |
| comment_type | string | COMMENT | `COMMENT` · `REPLY`. |
| original_comment_id | string | Chỉ khi `REPLY`: id bình luận gốc. | |
| comment_status | string | PUBLIC | `PUBLIC` · `HIDDEN`. |
| hit_blockedword | bool | false | Chứa từ bị chặn. |
| likes | int | 3 | Lượt thích. |
| replies | int | 1 | Số phản hồi. |
| is_pinned | bool | false | Đã ghim. |
| can_delete | bool | false | Xóa được không. |
| create_time | string | 2026-10-20 10:15:00 | Thời điểm bình luận. |
| user_name | string | nguoi_dung_mau | Tên người dùng người bình luận. |
| user_id | string | 6123456789123456789 | Id người dùng TikTok. |
| user_avatar_url | string | Ảnh đại diện. | |
| campaign_id | string | ||
| campaign_name | string | ||
| adgroup_id | string | ||
| adgroup_name | string | ||
| ad_id | string | ||
| ad_name | string | ||
| ad_text | string | Tiêu đề quảng cáo. | |
| tiktok_item_id | string | Id video TikTok. | |
| video_play_url | string | Link phát video. | |
| video_cover_url | string | Ảnh bìa video. | |
| identity_id | string | Danh tính đăng quảng cáo. | |
| identity_type | string | TT_USER | `TT_USER` (tài khoản TikTok) · `CUSTOMIZED_USER` (danh tính tùy chỉnh). |
| is_auth_ttba | bool | Người dùng đã liên kết tài khoản TikTok Business. | |
| is_auth_comment_manage_scope | bool | Có quyền quản lý bình luận. | |
| app | string | Id ứng dụng. | |
| page_info | object | Phân trang. | |
| page | int | 1 | Trang hiện tại. |
| page_size | int | 100 | Số dòng mỗi trang. |
| total_number | int | 35 | Tổng số dòng. |
| total_page | int | 1 | Tổng số trang. |
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above