TikTok Scraper: Videos, Comments, Hashtags and Profiles
This Actor returns TikTok videos from profiles, keyword searches, hashtags and video links, with views, likes, shares, saves, music and author details, plus optional comments, followers and profile rows. It is for marketers, agencies and researchers who track creators, trends and campaigns on TikTok.
Main price: $1.00 per 1,000 videos, same on every Apify plan.
What you can do with it
- Collect a creator's videos, newest first, with optional profile details.
- Search TikTok by keyword for brand monitoring and content ideas.
- See which videos run under a hashtag or campaign.
- Read comments under videos, one row per comment.
- Export followers or following of public accounts for influencer research.
What you get
Results come as rows in an Apify dataset, which you can export as JSON, CSV or Excel or read over the API. These are the main fields:
| Field | Example | Meaning |
|---|---|---|
type | video | video, comment or user |
description | Uncle Jerry and his family... | Video caption |
views, likes, shares, saves | 141567, 18651, 237, 274 | Engagement counts |
durationSeconds | 89 | Video length |
music.title | original sound | Sound used in the video |
author.username | stoolpresidente | Creator handle, with followers and verified flag |
videoUrl, coverUrl | https://v45.tiktokcdn-eu.com/... | Media links (they expire after some hours) |
Pricing
This Actor is pay per event, with one price for every Apify plan, the free plan included. Prices are per 1,000 events.
| Event | What is charged | Price per 1,000 |
|---|---|---|
| Video | One video row from a profile, search or hashtag | $1.00 |
| Video fetched by link | One video fetched from a link you gave | $6.50 |
| Comment | One comment row | $0.50 |
| Follower or following | One user row from a followers or following list | $1.00 |
| Profile | One profile row for a username you gave, with followers, likes and video count | $6.50 |
No run start fee. Prices come from the Apify Store and can change; the Actor's Apify page always shows the current ones. Platform usage is billed through your Apify account.
Run it from code
Create an API token in Apify Console (Settings, API and Integrations) and replace YOUR_APIFY_TOKEN. This call starts a run with a small input and returns the rows when it finishes. Synchronous calls suit small inputs; for big jobs, start a run and read the dataset later.
curl
curl -X POST "https://api.apify.com/v2/acts/apisamurai~tiktok-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profiles": [
"khaby.lame"
],
"maxItemsPerSource": 10
}'Python (pip install apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {
"profiles": ["khaby.lame"],
"maxItemsPerSource": 10,
}
# Start the Actor and wait for it to finish.
run = client.actor("apisamurai/tiktok-scraper").call(run_input=run_input)
# Read the results from the run's default dataset.
items = client.dataset(run.default_dataset_id).list_items().items
for item in items:
print(item)JavaScript (npm install apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
profiles: ['khaby.lame'],
maxItemsPerSource: 10,
};
// Start the Actor and wait for it to finish.
const run = await client.actor('apisamurai/tiktok-scraper').call(input);
// Read the results from the run's default dataset.
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);Client calls follow the Python and JavaScript client docs. The full input reference is on the Actor's Apify page.
FAQ
- Do I need a TikTok account?
- No. You never enter TikTok credentials or cookies. Only an Apify account is needed.
- Do the video and cover links last?
- No. TikTok media links expire after some hours, so download the files soon after the run.
- What about private accounts?
- Only public data is collected. Private accounts and deleted or region-restricted videos return nothing and are not charged.
- What is not charged?
- Duplicates, videos outside your date, view or like filters, placeholder rows and empty runs. There is no start fee.
- Where do I report a problem?
- Email hello@apisamurai.com, or open an issue on the Actor's Apify page.