# TikTok Scraper (`tacps126/tiktok-scraper`) Actor

TikTok profiles, videos and comments: followers, likes, views, shares, saves, music, hashtags, post time, plus comments with replies, by username or video link. Only-new monitoring.

- **URL**: https://apify.com/tacps126/tiktok-scraper.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Scraper

Profiles, videos and comments from TikTok in one Actor. Paste usernames or video links and get followers,
likes, views, shares, saves, music, hashtags and the exact post time, plus comments with their replies. No
TikTok account needed.

### At a glance

- **Profiles:** followers, following, total likes, video count, bio and bio link, verified, business account
  and category, TikTok Shop seller, live right now, account creation date.
- **Videos:** views, likes, comments, shares, saves, reposts, caption, hashtags, mentions, post time, location,
  language, duration, cover, music (title, artist, original sound), AI-generated label, pinned flag, author
  with follower count.
- **Comments:** text, likes, reply count, post time, language, pinned or liked by the creator, commenter, and
  replies under each comment.
- **From profiles:** each profile's latest videos (up to 10) and pinned videos, with a date filter.
- **Monitoring:** turn on *Only new videos and comments* and schedule the run to get each new video or comment
  once. Profiles come back every run, so follower growth can be tracked.
- **Price:** $1 per 1,000 profiles, $1 per 1,000 videos, $0.30 per 1,000 comments, plus a small start fee
  per run.

### Who uses it

- Marketers and agencies vetting creators: reach, engagement rate, posting rhythm, shop seller flag.
- Brands tracking their own and competitors' accounts and the comments under their videos.
- Researchers and analysts collecting comments for sentiment and topic analysis.

### Input

| Field | What it does |
|---|---|
| Profiles | Usernames (`tiktok`, `@tiktok`) or profile links |
| Video links | Video or photo post links, short `vm.tiktok.com` links, or video IDs |
| Latest videos per profile | 0 to 10; pinned videos come on top unless left out |
| Full details for profile videos | Likes, comments, shares, saves, music and more for each profile video (on by default) |
| Posted after | Only profile videos from this date (`2026-11-01`) or period (`7 days`) |
| Comments per video / Replies per comment | How many comments, and replies under each, for every video |
| Comments only | Comments of the video links without the video records |
| Max results | Most rows per run |

Example: three creators, their videos from the last 30 days, 50 comments under each video.

```json
{
  "profiles": ["tiktok", "@nba", "https://www.tiktok.com/@espn"],
  "postedAfter": "30 days",
  "commentsPerVideo": 50
}
```

Example: all comments and replies of one video.

```json
{
  "videoUrls": ["https://www.tiktok.com/@tiktok/video/7707063215498399006"],
  "commentsOnly": true,
  "commentsPerVideo": 5000,
  "repliesPerComment": 100
}
```

### Output

One row per profile, video or comment; `type` says which. Fields TikTok does not show for an item are left
out or empty.

```json
{
  "type": "video",
  "id": "7706618870655683871",
  "url": "https://www.tiktok.com/@everydaywithericksons/video/7706618870655683871",
  "text": "New pajamas, and new dance! #family #ilovemyfamily ...",
  "createdAt": "2026-11-10T18:57:41Z",
  "playCount": 2900000,
  "diggCount": 421900,
  "commentCount": 789,
  "shareCount": 40600,
  "collectCount": 26325,
  "hashtags": ["family", "ilovemyfamily", "christmaspj", "motherdaughterduo"],
  "locationCreated": "US",
  "author": { "username": "everydaywithericksons", "followers": 271900, "verified": false },
  "music": { "title": "original sound", "original": true, "duration": 35 },
  "media": { "duration": 15, "width": 720, "height": 1280 }
}
```

```json
{
  "type": "profile",
  "username": "tiktok",
  "nickname": "TikTok",
  "followers": 96816186,
  "following": 2,
  "likes": 468264325,
  "videos": 1516,
  "verified": true,
  "businessAccount": true,
  "shopSeller": false,
  "url": "https://www.tiktok.com/@tiktok"
}
```

```json
{
  "type": "comment",
  "id": "7706640501151892238",
  "videoId": "7706618870655683871",
  "text": "Dad shooting straight",
  "createdAt": "2026-11-10T20:22:25Z",
  "diggCount": 44794,
  "replyCount": 71,
  "user": { "username": "example_user", "nickname": "A" }
}
```

`diggCount` is TikTok's name for likes, `collectCount` for saves. Replies carry `replyToId`, the comment they
answer.

### Questions

**How many videos per profile?** The latest 10 plus pinned ones, the same list TikTok shows to visitors who
are not logged in. For a longer history, schedule the run with *Only new videos and comments* and it builds up
over time.

**Can I search by hashtag or keyword?** Not in this version; paste profiles or video links.

**Private accounts?** The profile row is returned; their videos are not visible and are skipped.

**Is this personal data?** Profiles, videos and comments are public posts. Usernames of commenters are
personal data in some places; use the data within the law that applies to you.

# Actor input Schema

## `profiles` (type: `array`):

TikTok usernames (tiktok or @tiktok) or profile links. Each returns the profile (followers, following, likes, videos, bio, verified, business and shop seller flags) and its latest videos.

## `videoUrls` (type: `array`):

Video or photo post links (tiktok.com/@user/video/..., short vm.tiktok.com links) or bare video IDs. Each returns the full video record, and its comments when asked for below.

## `videosPerProfile` (type: `integer`):

How many of each profile's newest videos to return (up to 10), plus its pinned videos unless left out below. 0 returns the profile only.

## `videoDetails` (type: `boolean`):

Open each profile video for the full record: likes, comments, shares, saves, reposts, exact post time, music, hashtags, mentions, location. Off: views, caption, cover and post date only, faster.

## `skipPinned` (type: `boolean`):

Skip the videos a profile pinned to the top.

## `postedAfter` (type: `string`):

Only profile videos posted on or after this date (2026-11-01) or within a period (7 days, 2 weeks, 1 month).

## `commentsPerVideo` (type: `integer`):

Comments to return for each video (from the links and from profiles), most relevant first. 0 = no comments.

## `repliesPerComment` (type: `integer`):

Replies to return under each comment that has some. 0 = no replies.

## `commentsOnly` (type: `boolean`):

For the video links: return their comments without the video records.

## `maxItems` (type: `integer`):

Most rows per run: profiles, videos and comments together.

## `onlyNew` (type: `boolean`):

Schedule the Actor and each run returns only videos and comments earlier runs did not deliver. Profiles are returned every run, so follower counts can be tracked over time.

## `monitorName` (type: `string`):

Optional name for the "only new" history, so several monitors can run side by side.

## `proxyConfiguration` (type: `object`):

Apify proxy on by default. Leave it as is unless you want to use your own proxy.

## `tenantId` (type: `string`):

Optional label used to keep separate histories for different clients or teams.

## `debug` (type: `boolean`):

Verbose logs.

## `delivery` (type: `object`):

Webhook: {"webhookUrl": "https://...", "format": "json" | "slack" | "discord", "onlyWhenResults": true, "includeItems": 10}. Google Sheets: {"spreadsheetId": "<id from the sheet URL>", "sheetName": "Sheet1"} plus the service account key below; share the sheet with the service account's e-mail first. Leave empty to only save results in the dataset.

## `googleServiceAccountJson` (type: `string`):

Only for Google Sheets delivery: paste the service account's JSON key. Stored encrypted; the account sees only sheets you share with it.

## Actor input object example

```json
{
  "profiles": [
    "tiktok"
  ],
  "videosPerProfile": 10,
  "videoDetails": true,
  "skipPinned": false,
  "commentsPerVideo": 0,
  "repliesPerComment": 0,
  "commentsOnly": false,
  "maxItems": 500,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per profile, video or comment; the type field says which.

## `summary` (type: `string`):

Counts, warnings, and whether the run stopped early.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "profiles": [
        "tiktok"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/tiktok-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "profiles": ["tiktok"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tacps126/tiktok-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "profiles": [
    "tiktok"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tacps126/tiktok-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tacps126/tiktok-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7NWoIaT04OG6xjdhp/builds/tjc2crbMZZz0lcCGI/openapi.json
