How to Scrape TikTok Search, Trends, Hashtags and More: Fast TikTok API Tutorial
Fast TikTok API puts seven kinds of TikTok scraping into one form: keyword search, trending videos, hashtags, user profiles, sounds, single videos and comments. Each video comes back with its full TikTok data: caption, author, plays, likes, comments, shares, saves, music, hashtags and a video link without watermark. You don’t need a TikTok account or proxies.
For this tutorial I searched for skincare routine in the United States, sorted by most liked, limited to this month’s posts. It returned 30 videos in 5 seconds for $0.012, with 63 million views between them. The whole flow in two minutes:
Below are the same steps with a screenshot for each.
What you can scrape
Pick one mode per run with What to scrape:
| Mode | Input it needs | What you get |
|---|---|---|
| Search by keyword | keyword, optional region, sort and publish date |
Videos matching the keyword |
| Trending videos | region (country) |
The trending feed for that country |
| Hashtag (URL) | url, e.g. https://www.tiktok.com/tag/fyp |
Videos under the hashtag |
| User profile (URL) | url, e.g. https://www.tiktok.com/@tiktok, or userId |
The account’s videos |
| Sound (URL) | url of a TikTok music page |
Videos that use the sound |
| Videos (URLs or IDs) | urls, a list of video links or IDs |
Full data for each video |
| Comments of a video (URL) | url of a video |
The video’s comments |
limit sets how many results you want, and Scrape all results (isUnlimited) keeps going as far as TikTok returns.
Step 1: Open the Actor and click “Try for free”
Go to the Actor page on Apify and click Try for free. If you don’t have an account yet, sign up first. The free plan comes with $5 of monthly credit.

Step 2: Pick what to scrape
Open the What to scrape dropdown and choose a mode. The form keeps the fields for every mode, so you only fill in the ones your mode uses (the table above lists them).

Step 3: Choose a country and type a keyword
For Search by keyword, set Country to the market you want results from, then type your search in Keyword (Search), right below it. I used skincare routine.

Step 4: Set the limit, sort and date filter
Under Number of videos per scrape, set Max results. Under Filters (for SEARCH):
- Sort by:
0relevance,1most liked,2most recent. - Publish date: all time, yesterday, this week, this month, last 3 months or last 6 months.

The same input as JSON (switch the form to the JSON tab to paste it):
{
"type": "SEARCH",
"keyword": "skincare routine",
"region": "US",
"sortType": 1,
"publishTime": "MONTH",
"limit": 30,
"isUnlimited": false
}
Other modes only change a couple of fields:
{ "type": "TREND", "region": "US", "limit": 100 }
{ "type": "HASHTAG", "url": "https://www.tiktok.com/tag/fyp", "limit": 100 }
{ "type": "USER", "url": "https://www.tiktok.com/@tiktok", "limit": 100 }
{ "type": "VIDEO", "urls": ["https://www.tiktok.com/@scarymanilla/video/7023014317612207366"] }
Step 5: Run it and check the results
Click Save & start. My run finished in 5 seconds with 30 results and cost $0.012.

Search results arrive as the full TikTok object under aweme_info, about 160 fields per video. The Search results output tab shows them as a table (views, likes, author, caption, link); the JSON view (the {=} button) shows every field. Here’s the statistics block of the most-viewed video in the run:

The same video, shortened:
{
"aweme_info": {
"aweme_id": "7704993444007087390",
"desc": "Night routine Mom life, skincare routine, couple, relationship memes #skincare #wife #routine ...",
"create_time": 1793977200,
"region": "US",
"author": { "unique_id": "thelearys", "nickname": "Amariz Leary", "follower_count": 1179755 },
"statistics": {
"play_count": 12974953,
"digg_count": 1276168,
"comment_count": 6909,
"share_count": 121186,
"collect_count": 52424
},
"music": { "title": "original sound - thelearys", "author": "Amariz Leary" },
"share_url": "https://www.tiktok.com/@thelearys/video/7704993444007087390",
"video": {
"duration": 102900,
"download_no_watermark_addr": { "url_list": ["https://..."] },
"play_addr": { "url_list": ["https://..."] }
}
}
}
digg_count is likes and collect_count is saves. create_time is a Unix timestamp in seconds, and video.duration is in milliseconds.
Step 6: Export to CSV, Excel or JSON
Click Export, pick a format (JSON, CSV, XML, Excel, HTML Table, RSS or JSONL) and download. Because each video is a deep object, JSON or JSONL keeps everything. For a spreadsheet, use Select fields to keep only the columns you need, for example aweme_info.desc, aweme_info.statistics.play_count and aweme_info.share_url.

Run it from code
Get your API token from Settings > API & Integrations in Apify Console, then use the official client.
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("novi/fast-tiktok-api").call(run_input={
"type": "SEARCH",
"keyword": "skincare routine",
"region": "US",
"sortType": 1,
"publishTime": "MONTH",
"limit": 30,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
video = item.get("aweme_info", item)
print(video["author"]["unique_id"], video["statistics"]["play_count"], video["desc"][:60])
Node.js (npm install apify-client):
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('novi/fast-tiktok-api').call({
type: 'TREND',
region: 'US',
limit: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'trending videos');
To track a trend or hashtag over time, save the input as a Task and add a Schedule, for example every morning. The Integrations tab can send each run’s results to Google Sheets, Slack, Make, Zapier or n8n.
Pricing
You pay per result, with no subscription:
| Event | Free plan | Paid plans |
|---|---|---|
| Each video | $0.40 per 1,000 | down to $0.30 per 1,000 |
| Each video fetched by URL (Videos mode) | $0.0025 | down to $0.002 |
| Actor start | $0.00023 per run | down to $0.0002 |
My 30-video run: 30 × $0.0004 + $0.00023 = $0.012. Set Maximum cost per run under Run options if you want a hard spending cap.
Tips
- Country sets the search market, not the creator’s location. My US search returned creators whose
regionwas the US, UK, Canada, Germany, Korea and more. - Use the right link field.
urltakes one hashtag, profile, sound or video link.urlsis only for Videos mode, where you can paste many. - Need several hashtags or keywords in one run? This Actor takes one per run. Ultimate TikTok Scraper takes a list of links in one run and has a clean, spreadsheet-ready output format.
- Video links expire. Download the files you need soon after the run.
FAQ
Do I need a TikTok account or cookies? No. The Actor only reads public data.
Are the video links really without watermark? Each video has a watermark-free link: download_no_watermark_addr when TikTok provides one (21 of my 30 videos), otherwise play_addr on videos where has_watermark is false.
Can I get trending videos for a specific country? Yes. Choose Trending videos and set Country. For a few regions TikTok only shows the feed to local visitors; the optional Proxy URL field takes your own proxy from a supported provider for those.
Does it get comments? Yes, with the Comments of a video (URL) mode. For comments at a larger scale, see TikTok Comment API.
Ready to try it? Open Fast TikTok API on Apify. A first run like the one above costs about a cent.