regionstringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
regionstringerforderlich2-letter country code for the proxy location (e.g. "US").
trimstringSet to true to return a simplified response.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Trending FeedDiese API TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | Ab $0.0012 pro Aufruf | JSON |
TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/trending-feed mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0008 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: region (string). Optional: trim (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. TikTok Trending Feed läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.