Automatically search TikTok videos on tiktok.com. Up to 300 videos per keyword, with caption, creator, post date, plays and likes.
About
Scroll TikTok search for a keyword and fifty videos later you still cannot say how many went up this month or which ones passed a million plays. Give it a keyword such as "cottage cheese ice cream" and a count, 30 by default and 300 at most, and you get back each video's caption, creator handle, post time, and its play, like, comment, share and save counts. A food brand checking whether a trend still has legs can pull 200 results, sort them by post time and see whether last week's videos still clear 100k plays before briefing creators. Results follow TikTok's own ranking, there is no date or region filter, and no video URL is returned, though the creator handle and video id are enough to rebuild one. It runs against a signed-in TikTok session, and a burst of runs can hit an empty response when TikTok rate limits the account.
Input
queryrequired
Search keyword(s).
countoptional
Target number of videos to collect. The script pages the search feed until this many are gathered or results run out.
Default: 30
Output
queryrequired
videosrequired
hasMorerequired
Example output
Shape only: placeholder values generated from the output schema, not
a real run.
Search TikTok videos by keyword, newest-relevance order, up to `count`.
Ask an AI agent connected to Reduck to run reduck/tiktok.com/search_videos, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/tiktok.com/search_videos
You do not need one. "Search TikTok videos" drives the real tiktok.com pages in a browser, so it works whether or not tiktok.com offers an API for this.
Required: query. Optional: count.
It returns query, videos, hasMore.
Yes. It acts as you on tiktok.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the tiktok.com cookies saved by the Reduck extension.
Unknown: its author has not declared whether it changes anything on tiktok.com, so treat it as if it could.
Ask an AI agent connected to Reduck to run reduck/tiktok.com/search_videos, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/tiktok.com/search_videos
It is part of Reduck's official curated catalogue.
No. Only a keyword and a count are accepted, and videos arrive in TikTok's own order. Every video carries a post time and its play and like counts, so narrowing by date or popularity happens on your side after the run.
Three causes show up in the code. The keyword can run out of matches. A results page can hold only accounts or hashtags and no videos, and the run stops there. And videos repeated across pages are removed before the list is returned. If hasMore comes back true, TikTok had more to give, so a second run or a narrower keyword may help.
TikTok sometimes answers the search request with a blank response when an account or IP has made many requests in a short time. The run stops with that error instead of returning a partial list. Wait a while or switch network, then try again.
Not as a full archive. Searching the hashtag word as a keyword returns TikTok's ranked matches, up to 300, which may not include every video that carries the tag.