tag_namestring必填
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=="
}
}
]选择一个示例,将其输入和结果加载到 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.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
tag_namestring必填Tag name
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"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=="
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
TikTok Tag Detail此 API TikTok | $0.001 每次调用 | JSON |
TikTok | $0.001 每次调用 | JSON |
TikTok | $0.001 每次调用 | JSON |
TikTok | $0.001 每次调用 | JSON |
TikTok | $0.001 每次调用 | JSON |
TikTok | $0.05 每次调用 | JSON |
指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/tiktok/web/tag-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:tag_name (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。TikTok Tag Detail 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。