regionstring必填
2-letter country code for the proxy location (e.g. "US").
https://api.sandbase.ai/v1/api/tiktok/trending-feedSample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
您的输出将显示在这里
完成输入,然后点击运行。
Returns a sample of videos from TikTok's For You feed as served to a viewer in one country. Each video includes the caption, author, view, like, comment, save and share counts, sound details and links. The only required input is a 2-letter region code.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/trending-feed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"region": "US"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
region | string | Yes | 2-letter country code for the proxy location (e.g. "US"). |
trim | string | No | Set to true to return a simplified response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"videos": [
{
"author": "sampletok.store",
"authorImage": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/53a084b13e8c4b8d037…",
"authorName": "SampleTok",
"authorUserId": "7565970382990869526",
"caption": "#sampletok 💋 Free e.l.f. Glow Reviver Melting Lip Balm alert! 😍✨ Melt-in moistur…",
"comments": 1551,
"createdUtc": 1788564307,
"durationSeconds": 5,
"hashtags": [
"sampletok"
],
"id": "7681825159417810208",
"image": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/o0kf4AYbpmTNr…",
"likes": 59833
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.videos[].id | Video ID as a string of digits. Use it to look up the video in other APIs. |
data.videos[].url | Link to the video page on TikTok. |
data.videos[].caption | Text posted with the video. Long captions can include hashtags inline. |
data.videos[].hashtags | List of hashtag names from the caption, without the # sign. |
data.videos[].views / likes / comments / saves / shares | Engagement counts for the video. |
data.videos[].author / authorName / authorUserId | The account handle, its display name and its numeric user ID. |
data.videos[].createdUtc | Time the video was posted, as a Unix timestamp in seconds. |
data.videos[].durationSeconds | Length of the video in seconds. |
data.videos[].region | 2-letter country code attached to the video. It can differ from the requested region. |
data.videos[].soundTitle / soundAuthor / soundClipId | Name, author and ID of the sound used in the video. |
data.videos[].image / videoUrl / authorImage | Links to the cover image, the video file and the author's avatar. |
region is required. Use a 2-letter country code such as US.trim to true to get a simplified response.id to TikTok Video Details. To see trending tags, use TikTok Trending Hashtags.Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/trending-feed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"region": "US"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
regionstring必填2-letter country code for the proxy location (e.g. "US").
trimstringSet to true to return a simplified response.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
TikTok Trending Feed此 API TikTok | 每次调用从 $0.0008 起 | JSON |
TikTok | 每次调用从 $0.0012 起 | JSON |
TikTok | 每次调用从 $0.0008 起 | JSON |
TikTok | 每次调用从 $0.0008 起 | JSON |
TikTok | $0.001 每次调用 | JSON |
TikTok | $0.001 每次调用 | JSON |
指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/tiktok/trending-feed 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
起价每次调用 $0.0008,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:region (string)。 可选:trim (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。TikTok Trending Feed 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。