TikTok Video Search API
Pricing
from $0.17 / 1,000 videos
TikTok Video Search API
Search TikTok by keyword and get the videos TikTok shows for it, in TikTok's order: plays, likes, comments, shares, caption, hashtags, creator (with followers), sound, cover and post date, plus each video's rank. Keywords in, clean JSON out. No login.
Pricing
from $0.17 / 1,000 videos
Rating
0.0
(0)
Developer
DeepMine
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
1
Monthly active users
16 hours ago
Last modified
Categories
Share
Search TikTok by keyword and get the videos TikTok shows for that search, in TikTok's own order, as clean rows: plays, likes, comments, shares, saves, caption, hashtags, the creator and their follower count, sound, cover, post date and each video's rank in the results.
Type keywords the way you would on TikTok, or paste a tiktok.com/search?q=... link. No TikTok account, no cookies, no login.
| Creator | Caption | ▶️ Plays | ❤️ Likes | 📅 Posted | 🔍 Keyword | 🏅 Rank |
|---|---|---|---|---|---|---|
| @nativetyfood | $6.25 pork roll in Taiwan 🇹🇼 #taiwan #taipei #taip… | 11,800,000 | 389,900 | 2024-04-01 | street food | 2 |
| @street.food.1610 | Fastest fried rice EVER 😳🔥#food #foodie #streetfoo… | 8,500,000 | 574,400 | 2026-03-31 | street food | 3 |
| @deinfitnessmangae | Full Body Workout #workout #trainning #homeworkout… | 223,000 | 12,900 | 2026-08-12 | home workout | 1 |
$0.24 per 1,000 videos on the Starter plan ($0.25 Free, $0.21 Scale, $0.17 Business). The prefilled run (100 videos) costs about $0.02.
Why this one
- Up to ~250 videos per keyword. The Actor pages through the whole search TikTok shows logged-out visitors (216 for "street food", 243 for "skincare routine", 254 for "booktok recommendations" on 2026-09-27), not just the first screen.
- Rank included.
rankis the video's position in TikTok's results, so you can track who ranks for a term over time. - Sort by views or date, filter by window.
sortOrdersorts everything TikTok's search shows for the keyword by most views or newest first, then keeps your max;datePostedkeeps the last 24 hours, 7 or 30 days, 3 or 6 months. - Creator size on every video. Each row carries the creator's follower count and verified badge: find creators in a niche straight away.
- Many keywords per run, searched in parallel, each with its own limit and summary. Rows come keyword by keyword, in your order.
- Fails loudly, never silently. Every run saves a per-keyword summary (
OUTPUT). If TikTok refuses a keyword on every retry, the run is marked failed instead of quietly returning less. - Fast and light. Plain HTTP, no browser: 5 keywords and 782 videos took 32 seconds in our test.
Input
| Field | What it does | Default |
|---|---|---|
keywords | Search terms, one per line: street food, skincare routine, https://www.tiktok.com/search?q=booktok. | street food |
maxVideosPerKeyword | Videos per keyword, up to 1,000 (but see "How many videos per keyword?"). | 100 |
sortOrder | relevance (TikTok's order), mostRecent (newest first) or mostViews. The two sorts read the keyword's whole search (roughly 150-250 videos), sort it, then keep your max. | relevance |
datePosted | allTime, today, thisWeek, thisMonth, 3months or 6months (the last 24 hours, 7, 30, 90 or 180 days). | allTime |
postedAfter | Keep only videos posted after this date (2026-09-01, or via the API 30 days). With datePosted too, the later date wins. | all |
proxyConfiguration | Apify Proxy. Datacenter (the default) works; switch to residential only if a run reports blocks. | Apify datacenter |
Example:
{"keywords": ["street food", "skincare routine"],"maxVideosPerKeyword": 200}
The 50 most viewed videos of the last 30 days for a keyword:
{"keywords": ["street food"],"maxVideosPerKeyword": 50,"sortOrder": "mostViews","datePosted": "thisMonth"}
Output
One row per video, keyword by keyword in your order, each keyword's videos in TikTok's order (rank 1, 2, 3...) or in your sortOrder. Three table views in the Console:
- 📊 Overview: 🖼️ Cover, 🏷️ Username, 👤 Creator, 📝 Caption, 🔗 TikTok, ▶️ Plays, ❤️ Likes, 💬 Comments, 🔁 Shares, 👥 Followers, 📅 Posted, 🔍 Keyword, 🏅 Rank
- 📈 Stats: 🏷️ Username, 🔗 TikTok, ▶️ Plays, ❤️ Likes, 💬 Comments, 🔁 Shares, 🔖 Saves, 🔃 Reposts, 👥 Followers, ⏱️ Duration, 📅 Posted, 🔍 Keyword, 🏅 Rank
- 🔎 Details: 🖼️ Cover, 🏷️ Username, 🔗 TikTok, ⬇️ Video File, 🤖 AI Label, 💬 Has Captions, 🌐 Caption Language, 📺 Quality, 💾 File Size, ➕ Creator Following, ❤️ Creator Likes, 🎬 Creator Videos, 🎙️ Original Sound
Output fields
Every row has these keys, in this order. A value TikTok didn't send is null (never an empty string or a made-up 0).
cover: the video's cover image.authorName: the creator's display name.caption: the full caption, hashtags included.captionSnippet: the caption's first 50 characters on one line, for tables.authorUsername: the creator's TikTok username, without @.videoUrl: the video's page on TikTok.authorVerified: the creator has TikTok's verified badge.plays: views.likes: likes.comments: comments.shares: shares.saves: saves (TikTok's Favorites).reposts: reposts (TikTok's Repost button).authorFollowers: the creator's followers when the video was collected.durationSeconds: length in seconds (nullfor photo posts).postedAt: when it was posted (UTC).rank: position in TikTok's results for the keyword.hashtags: hashtags in the caption, without #.soundTitle: the sound's title ("original sound" is the creator's own audio).soundUrl: the sound's page on TikTok.videoFileUrl: the video file (MP4) in the best quality TikTok serves: a direct link anyone can open or download, no login or cookies (often H.265/HEVC, which some browsers don't play; download it to watch).nullfor photo posts.videoFileExpiresAt: when TikTok's links to the video file expire (UTC), about 2 days after the run: download before then.isPhotoPost:truefor a photo post (slideshow); its pictures are inphotos.isAiGenerated: TikTok labels the post as AI-generated.hasCaptions: TikTok has captions (subtitles) for the video.captionLanguages: the languages TikTok has captions in (eng-US, ...).captionLanguage: the caption text's language as TikTok detects it (en,es, ...).onScreenText: text the creator put on the video with TikTok's text stickers (several joined with|).placeName: the place the post is tagged with, when it has one.placeAddress: the tagged place's address.placeCity: the tagged place's city, when TikTok gives one.width: video width in pixels (nullfor photo posts).height: video height in pixels (nullfor photo posts).definition: TikTok's quality label (540p,720p,1080p).format: the video file format (mp4).fileSizeBytes: size of TikTok's standard video file, in bytes.authorAvatar: the creator's profile picture.authorBio: the creator's bio.authorFollowing: accounts the creator follows.authorLikes: total likes on all the creator's videos.authorVideos: the creator's public videos.authorPrivate: the creator's account is private (nullwhen TikTok doesn't say).soundAuthor: the sound's artist or creator.soundAlbum: the album of a released track, when TikTok names it.soundIsOriginal: the sound is the creator's own audio, not a released track.soundCover: the sound's cover art.photos: the images of a photo post (slideshow);nullfor videos.videoId: TikTok's video ID.authorId: TikTok's user ID of the creator.authorSecUid: the creator's secUid, the ID TikTok's own web API uses.soundId: TikTok's sound ID.poiId: TikTok's ID of the tagged place.playlistId: TikTok's ID of the creator's playlist the video is in, when it's in one.keyword: the search keyword (your input).scrapedAt: when it was collected (UTC).
Example row:
{"cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-...","authorName": "nativetyfood","caption": "$6.25 pork roll in Taiwan 🇹🇼 #taiwan #taipei #taipeitaiwan #streetfood #taiwanfood #nativety","captionSnippet": "$6.25 pork roll in Taiwan 🇹🇼 #taiwan #taipei #taip…","authorUsername": "nativetyfood","videoUrl": "https://www.tiktok.com/@nativetyfood/video/7352887253321960746","authorVerified": false,"plays": 11800000,"likes": 389900,"comments": 1720,"shares": 3826,"saves": 14159,"authorFollowers": 1500000,"durationSeconds": 99,"postedAt": "2024-04-01T14:05:00Z","rank": 2,"hashtags": ["taiwan", "taipei", "taipeitaiwan", "streetfood", "taiwanfood", "nativety"],"soundTitle": "original sound - Native Ty Food","soundUrl": "https://www.tiktok.com/music/original-sound-native-ty-food-7352887503252163370","photos": null,"videoId": "7352887253321960746","keyword": "street food","scrapedAt": "2026-09-27T19:07:35Z"}
Notes:
rankcounts every video TikTok returned, including ones a date filter dropped, so gaps are normal with a date filter. It stays TikTok's position when you sort.- TikTok rounds large counters on its web pages (269.9K plays shows as
269900); small numbers are exact. Now and then TikTok sends a video's plays, likes, shares and saves as 0 next to real comments; those come asnull. - Image links expire.
coverandphotosare signed by TikTok and stop working about 2 days after the run. Download the images you need soon after the run.
Run summary (OUTPUT)
{"results": 459,"inputs": [{"input": "street food", "status": "ok", "results": 216, "stopReason": "end", "keyword": "street food"},{"input": "skincare routine", "status": "ok", "results": 243, "stopReason": "end", "keyword": "skincare routine"},{"input": "porn", "status": "no_results", "results": 0, "stopReason": "no_results", "error": "TikTok shows no results for this keyword (it hides results for some terms)"}]}
status per keyword: ok, no_results (TikTok shows nothing, or hides results for that term), invalid, blocked (TikTok refused it on every retry; the run fails so you notice), stopped (your spending limit). stopReason: max_results, or end when TikTok showed no more videos. filteredOut counts videos dropped by datePosted or postedAfter; with a sort, sortedFrom is how many videos were read and sorted.
How many videos per keyword?
TikTok shows logged-out visitors a fixed list of roughly 150 to 250 videos per search, and it's the same list for every visitor (three separate visits to "street food" together added only 6%). For more coverage, add related keywords or long-tail variations ("street food bangkok", "street food nyc").
Pricing
Pay per result, no start fee and no minimum. Example: 1,000 videos cost $0.24 on the Starter plan.
| Your Apify plan | Per 1,000 videos |
|---|---|
| Free | $0.25 |
| Starter | $0.24 |
| Scale | $0.21 |
| Business | $0.17 |
You pay only for rows that reach your dataset. Keywords with no results and invalid inputs cost nothing. When your spending limit is reached, the run stops.
A video found under several keywords in one run is one row and one charge: it comes back once, under the first keyword that found it, and the run summary counts the repeats for each keyword (alreadyDeliveredUnderEarlierInput).
FAQ
Do I need a TikTok account? No. The Actor reads only what TikTok shows logged-out visitors.
Can I sort by date or by views? Yes: set sortOrder to mostRecent or mostViews. The videos are sorted after collecting, over everything TikTok's search shows for the keyword (roughly 150-250 videos), and then your max is kept, so maxVideosPerKeyword: 20 with mostViews gives the 20 most viewed of the whole search. The run reads the whole search for that, so it takes a little longer; you pay only for the videos you get. datePosted keeps a recent window.
Why did a nonsense keyword return videos? TikTok falls back to loosely related videos when nothing matches well. Check caption and hashtags if you need exact matches.
The same video under two keywords? It's one row and one charge, under the first keyword that found it (see Pricing).
Hashtags? Searching #booktok works like any keyword. For a hashtag's own feed plus its total views, use our TikTok Hashtag Videos API.
Feedback
Missing a field, or a result that doesn't look right? Open an issue on the Issues tab and we'll look into it. If the data helps you, a short review on this page helps other people find it.