App Logo
tiktok.com

Get TikTok trending videos

Get a sample of TikTok's Explore (trending) feed. The feed is re-ranked on every request (no stable cursor), so the script accumulates distinct videos across several calls up to `count` — a fresh trending snapshot, not a deterministic paginated list.

Input

count optional

Target number of distinct trending videos to gather.

Default: 20
categoryType optional

Explore category id (120 = aggregate/all trending; other numeric ids map to the Explore category tabs). Category 0 is invalid.

Default: 120

Output

videos required

A re-ranked trending snapshot (order not stable across runs).

Start building not clicking