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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
regionstringจำเป็น2-letter country code for the proxy location (e.g. "US").
trimstringSet to true to return a simplified response.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok Trending FeedAPI นี้ 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
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/trending-feed โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0008 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: region (string). ตัวเลือก: trim (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Trending Feed ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก