tag_namestringbắt buộc
Tag name
https://api.sandbase.ai/v1/api/tiktok/web/tag-detailRetrieves detail information for a specified TikTok hashtag via the web platform based on the provided tag name parameter.
[
{
"data": {
"challengeInfo": {
"challenge": {
"coverLarger": "",
"coverMedium": "",
"coverThumb": "",
"desc": "",
"id": "72988465",
"isCommerce": false,
"profileLarger": "",
"profileMedium": "",
"profileThumb": "",
"stats": {
"videoCount": 0,
"viewCount": 9000000000
},
"title": "openai"
},
"challengeAnnouncement": {
"body": "",
"title": ""
},
"stats": {
"videoCount": 0,
"viewCount": 9000000000
},
"statsV2": {
"videoCount": "363927",
"viewCount": "8965521395"
}
},
"cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
"extra": {
"fatal_item_ids": [],
"logid": "20261006203925E0289067E818CE19A121",
"now": 1791290365000
},
"log_pb": {
"impr_id": "20261006203925E0289067E818CE19A121"
},
"shareMeta": {
"desc": "Watch awesome short videos created with trending hashtag #openai",
"title": "#openai on TikTok"
},
"statusCode": 0,
"status_code": 0,
"status_msg": "",
"tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns detail data for one TikTok hashtag, including its ID, title, and view and video counts. It needs one input: the hashtag name in tag_name, without the # sign.
openai has gathered.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/tag-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tag_name": "openai"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
tag_name | string | Yes | Tag name |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"challengeInfo": {
"challenge": {
"coverLarger": "",
"coverMedium": "",
"coverThumb": "",
"desc": "",
"id": "72988465",
"isCommerce": false,
"profileLarger": "",
"profileMedium": "",
"profileThumb": "",
"stats": {
"videoCount": 0,
"viewCount": 9100000000
},
"title": "openai"
},
"challengeAnnouncement": {
"body": "",
"title": ""
},
"stats": {
"videoCount": 0,
"viewCount": 9100000000
},
"statsV2": {
"videoCount": "377014",
"viewCount": "9077075330"
}
},
"cookie": "tt_chain…",
"extra": {
"fatal_item_ids": [],
"logid": "20261103154429F2959E7F1D151604ED12",
"now": 1793691870000
},
"log_pb": {
"impr_id": "20261103154429F2959E7F1D151604ED12"
},
"shareMeta": {
"desc": "Watch awesome short videos created with trending hashtag #openai",
"title": "#openai on TikTok"
},
"statusCode": 0,
"status_code": 0,
"status_msg": "",
"tt_chain_token": "0k5cdiqY…"
}
| Field | Meaning |
|---|---|
challengeInfo.challenge.id | Numeric ID of the hashtag (challenge) as a string. |
challengeInfo.challenge.title | The hashtag name, shown without the # sign. |
challengeInfo.challenge.isCommerce | Boolean flag that shows whether the hashtag is marked as commercial. |
challengeInfo.challenge.desc | Hashtag description text. It is an empty string for this tag. |
challengeInfo.statsV2.viewCount / challengeInfo.statsV2.videoCount | Total views and total videos for the hashtag, returned as numeric strings. Prefer these over the stats fields, because stats.videoCount is 0 in this response. |
challengeInfo.stats.viewCount / challengeInfo.stats.videoCount | The same counts as plain numbers. viewCount looks rounded, and videoCount is 0 here. |
challengeInfo.challenge.coverLarger / coverMedium / coverThumb | Cover image URLs in three sizes. They are empty strings for this tag. |
shareMeta.title / shareMeta.desc | Title and description text TikTok uses when someone shares the hashtag page. |
statusCode / status_msg | Request status. 0 in statusCode means the call worked, and status_msg holds a message if there is one. |
tag_name, for example openai.challengeInfo.statsV2 for counts, since the values in challengeInfo.stats can be 0 or rounded.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/tag-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_name": "openai"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
tag_namestringbắt buộcTag name
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"challengeInfo": {
"challenge": {
"coverLarger": "",
"coverMedium": "",
"coverThumb": "",
"desc": "",
"id": "72988465",
"isCommerce": false,
"profileLarger": "",
"profileMedium": "",
"profileThumb": "",
"stats": {
"videoCount": 0,
"viewCount": 9000000000
},
"title": "openai"
},
"challengeAnnouncement": {
"body": "",
"title": ""
},
"stats": {
"videoCount": 0,
"viewCount": 9000000000
},
"statsV2": {
"videoCount": "363927",
"viewCount": "8965521395"
}
},
"cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
"extra": {
"fatal_item_ids": [],
"logid": "20261006203925E0289067E818CE19A121",
"now": 1791290365000
},
"log_pb": {
"impr_id": "20261006203925E0289067E818CE19A121"
},
"shareMeta": {
"desc": "Watch awesome short videos created with trending hashtag #openai",
"title": "#openai on TikTok"
},
"statusCode": 0,
"status_code": 0,
"status_msg": "",
"tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
TikTok Tag DetailAPI này TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.05 mỗi lần gọi | JSON |
Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/web/tag-detail với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: tag_name (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. TikTok Tag Detail chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.