regionstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
regionstringwajib2-letter country code for the proxy location (e.g. "US").
trimstringSet to true to return a simplified response.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
TikTok Trending FeedAPI ini TikTok | Dari $0.0008 per panggilan | JSON |
TikTok | Dari $0.0012 per panggilan | JSON |
TikTok | Dari $0.0008 per panggilan | JSON |
TikTok | Dari $0.0008 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
TikTok | $0.001 per panggilan | JSON |
Panduan:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/tiktok/trending-feed dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0008 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: region (string). Opsional: trim (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. TikTok Trending Feed berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API TikTok secara terpisah.