How to Get TikTok Trending Videos by Country via API

TikTokAPI.store Team · · 2 min read

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.

Endpoint overview

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.

Python example

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")

Compare trends across countries

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]}")

What data comes back

Each video object in the trending feed includes:

  • desc — video caption
  • stats.play_count — total view count
  • stats.like_count — like count
  • stats.comment_count — comment count
  • author.nickname — creator name
  • music.title — sound being used
  • play — watermark-free video URL

Use cases

  • Trend newsletters: Automatically compile weekly "What's trending on TikTok" digests
  • Content strategy tools: Help creators understand what's performing in their region
  • Brand monitoring: Track whether brand-related content is trending
  • Academic research: Study regional differences in viral content
  • Marketing dashboards: Surface TikTok trends alongside other social data

Scheduling with Python

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

Start using the TikTok API for free

100 requests/day free. No credit card required. Instant API key.

Get your free API key