regionstringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
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/trending-feed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"region": "US"
}'Đặ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.
regionstringbắt buộc2-letter country code for the proxy location (e.g. "US").
trimstringSet to true to return a simplified response.
Đâ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.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
TikTok Trending FeedAPI này TikTok | Từ $0.0008 mỗi lần gọi | JSON |
TikTok | Từ $0.0012 mỗi lần gọi | JSON |
TikTok | Từ $0.0008 mỗi lần gọi | JSON |
TikTok | Từ $0.0008 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 |
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/trending-feed 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.
Từ $0.0008 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: region (string). Tùy chọn: trim (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 Trending Feed 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.