Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

TikTok Trending Feed

Dokumentacja API
https://api.sandbase.ai/v1/api/tiktok/trending-feed

Sample 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.

Cena
Od $0.0008USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 1 opcjonalnych

Playground

Wejście
2-letter country code for the proxy location (e.g. "US").
Set to true to return a simplified response.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

TikTok Trending Feed API

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.

Use cases

  • Spot what kind of content TikTok is showing to viewers in a given country right now.
  • Collect sample captions and hashtags to study content styles in a market.
  • Track the engagement counts of videos that appear in a country's feed.
  • Find authors and sounds that show up in the feed, then look them up in more detail.

Request

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.

Parameters

NameTypeRequiredDescription
regionstringYes2-letter country code for the proxy location (e.g. "US").
trimstringNoSet to true to return a simplified response.

Example 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
}

Response fields

FieldMeaning
data.videos[].idVideo ID as a string of digits. Use it to look up the video in other APIs.
data.videos[].urlLink to the video page on TikTok.
data.videos[].captionText posted with the video. Long captions can include hashtags inline.
data.videos[].hashtagsList of hashtag names from the caption, without the # sign.
data.videos[].views / likes / comments / saves / sharesEngagement counts for the video.
data.videos[].author / authorName / authorUserIdThe account handle, its display name and its numeric user ID.
data.videos[].createdUtcTime the video was posted, as a Unix timestamp in seconds.
data.videos[].durationSecondsLength of the video in seconds.
data.videos[].region2-letter country code attached to the video. It can differ from the requested region.
data.videos[].soundTitle / soundAuthor / soundClipIdName, author and ID of the sound used in the video.
data.videos[].image / videoUrl / authorImageLinks to the cover image, the video file and the author's avatar.

Notes

  • region is required. Use a 2-letter country code such as US.
  • The result is a rotating sample, so repeated calls can return different videos. It is not a ranked chart.
  • Set trim to true to get a simplified response.
  • To get more detail on a video from this feed, pass its id to TikTok Video Details. To see trending tags, use TikTok Trending Hashtags.

Pricing

Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
TikTokOd $0.0008 za wywołanieJSON
TikTokOd $0.0012 za wywołanieJSON
TikTokOd $0.0008 za wywołanieJSON
TikTokOd $0.0008 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON

Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API TikTok Trending Feed?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/trending-feed z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API TikTok Trending Feed?

Od $0.0008 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API TikTok Trending Feed?

Wymagane: region (string). Opcjonalne: trim (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API TikTok Trending Feed?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego TikTok lub klucza API?

Nie. TikTok Trending Feed działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API TikTok.