TikTok's trending feed shows which videos are going viral in a specific region right now. With the TikTok trending API from TikTokAPI.store, you can fetch this data programmatically for any country — useful for trend research, content strategy tools, and social media dashboards.
GET https://api.tiktokapi.store/api/v1/feed/trending
?region=US
&count=20
Supported region codes include: US, GB, IN, DE, FR, JP, BR, ID, and many more.
import requests
API_KEY = "your_api_key"
headers = {"Authorization": f"Bearer {API_KEY}"}
def get_trending(region="US", count=20):
r = requests.get(
"https://api.tiktokapi.store/api/v1/feed/trending",
headers=headers,
params={"region": region, "count": count}
)
return r.json()["data"]["videos"]
# Get top 20 trending in the US
videos = get_trending("US", 20)
for v in videos:
print(f"{v['desc'][:60]} — {v['stats']['play_count']:,} plays")
regions = ["US", "GB", "IN", "DE", "BR"]
for region in regions:
videos = get_trending(region, 5)
print(f"
--- {region} Top 5 ---")
for v in videos:
print(f" {v['desc'][:50]}")
Each video object in the trending feed includes:
desc — video captionstats.play_count — total view countstats.like_count — like countstats.comment_count — comment countauthor.nickname — creator namemusic.title — sound being usedplay — watermark-free video URLimport schedule, time, json, requests
API_KEY = "your_key"
headers = {"Authorization": f"Bearer {API_KEY}"}
def collect_trending():
r = requests.get(
"https://api.tiktokapi.store/api/v1/feed/trending",
headers=headers,
params={"region": "US", "count": 50}
)
with open(f"trending_{int(time.time())}.json", "w") as f:
json.dump(r.json()["data"]["videos"], f)
print("Saved trending snapshot")
schedule.every(6).hours.do(collect_trending)
while True:
schedule.run_pending()
time.sleep(60)
Get started with a free account at tiktokapi.store. The free plan is enough for daily trend monitoring; upgrade to Pro ($29/mo) for real-time polling at high frequency.
100 requests/day free. No credit card required. Instant API key.
Get your free API key