Rank your best-performing posts
top_videosRank recent TikTok videos by views, likes, comments, shares, or engagement rate. Scans up to 200 recent posts to identify your high-performing content.
Instructions
Your best posts, ranked. TikTok has no ranked endpoint, so this pages recent videos and sorts them locally: scan is how far back it looks, and anything older than that cannot win. Use this rather than calling list_videos and sorting in context, which spends the whole window on videos you discard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | How many recent videos to look through before ranking. Default 60, maximum 200. | |
| limit | No | How many to return. Default 10. | |
| metric | No | What to rank by. Default views. | |
| account | No | Which connected TikTok account to act as, by the name you gave it in TIKTOK_ACCOUNTS. Defaults to the first. Call list_accounts to see them. |