TikTok Scraper icon

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:

FieldExampleMeaning
typevideovideo, comment or user
descriptionUncle Jerry and his family...Video caption
views, likes, shares, saves141567, 18651, 237, 274Engagement counts
durationSeconds89Video length
music.titleoriginal soundSound used in the video
author.usernamestoolpresidenteCreator handle, with followers and verified flag
videoUrl, coverUrlhttps://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.

EventWhat is chargedPrice per 1,000
VideoOne video row from a profile, search or hashtag$1.00
Video fetched by linkOne video fetched from a link you gave$6.50
CommentOne comment row$0.50
Follower or followingOne user row from a followers or following list$1.00
ProfileOne 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.