# TikTok Scraper - Profile Videos, Views, Likes & Video Data (`kantolabs/tiktok-scraper`) Actor

Scrape public TikTok profiles and video URLs: caption, views, likes, comments, shares, saves, hashtags, music, author stats, cover and subtitle links. One row per video, $2.80 per 1,000 videos. Free date and popularity filters. Logged out, no login needed.

- **URL**: https://apify.com/kantolabs/tiktok-scraper.md
- **Developed by:** [Kanto Labs](https://apify.com/kantolabs) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 videos

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

### What does TikTok Scraper do?

**TikTok Scraper** collects public **TikTok video data** from **profiles** and **video URLs**: caption, post time, **views, likes, comments, shares and saves**, hashtags, mentions, the sound used, video length and size, cover image, subtitle links and the author's follower and like counts. You get **one clean row per video**, ready for a spreadsheet, a database or an automation in n8n, Make or Zapier.

It reads only what TikTok shows a signed-out visitor. No TikTok account, no login and no cookies are needed, and no personal data beyond the public page is collected.

### Why use this TikTok scraper?

- **$2.80 per 1,000 videos**, with no start fee and no add-on charges.
- **Date and popularity filters are free.** Videos your filters skip are not charged.
- **Failures are free.** Private accounts, deleted videos, typos and blocked requests give an error row that costs nothing.
- **Stable field names.** Rows keep the same shape on every run, so your integrations don't break.
- **Subtitle links included.** Where TikTok has captions for a video, you get the WebVTT file links at no extra cost.

### How to scrape TikTok profiles and videos

1. Add **Profiles**: usernames such as `nasa`, `@nasa` or `https://www.tiktok.com/@nasa`.
2. Set **Videos per profile** (newest first, up to 5,000).
3. Optionally add **Video URLs** for single videos, photo posts or `vm.tiktok.com` short links.
4. Optionally set filters: posted after/before a date (e.g. `30 days`), minimum likes, minimum views, skip pinned videos.
5. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through the Apify API.

### Pricing explained

You pay per video delivered. Paid-plan discounts apply automatically.

| Plan | Price per video | 1,000 videos |
|---|---|---|
| Free / Bronze | $0.0028 | $2.80 |
| Silver | $0.00252 | $2.52 |
| Gold and above | $0.00224 | $2.24 |

**Example:** 20 brand accounts x 50 latest videos = 1,000 videos = **$2.80**. If a date filter keeps only 300 of them, you pay **$0.84**. Set "Maximum cost per run" and the scraper stops cleanly when it is reached.

### Input example

```json
{
  "profiles": ["nasa", "natgeo"],
  "maxVideosPerProfile": 50,
  "oldestPostDate": "30 days",
  "minViews": 10000
}
```

### Output example

```json
{
  "id": "7702504724049743117",
  "url": "https://www.tiktok.com/@nasa/video/7702504724049743117",
  "text": "Another week of building, flying, and looking ahead at NASA 🚀 ...",
  "createTimeISO": "2026-10-30T16:52:44.000Z",
  "playCount": 180700,
  "diggCount": 16300,
  "commentCount": 363,
  "shareCount": 625,
  "collectCount": 1908,
  "hashtags": [],
  "author": { "username": "nasa", "nickname": "NASA", "verified": true, "followers": 2200000, "likes": 11500000, "videos": 62 },
  "music": { "title": "original sound - NASA", "author": "NASA", "original": false },
  "video": { "durationSeconds": 108, "width": 720, "height": 1280, "definition": "720p", "subtitles": [{ "language": "eng-US", "format": "webvtt", "url": "https://..." }] },
  "source": "profile",
  "sourceInput": "nasa"
}
```

`diggCount` is TikTok's own name for likes (hearts) and `collectCount` for saves. Error rows have `input`, `url`, `errorCode` (`NOT_FOUND`, `PROFILE_PRIVATE`, `PROFILE_EMPTY`, `VIDEO_NOT_FOUND`, `VIDEO_PRIVATE`, `FILTER_NO_PASS`, `INVALID_INPUT`, `BLOCKED`) and `error`.

### What it does not do

- **No hashtag or keyword search.** TikTok only serves those lists to signed requests, which this scraper does not make. Hashtag and search links give a free error row.
- No comments, followers lists or video file downloads.
- `locationCreated` is filled for video URLs only; profile listings don't include it.

### Use cases

- **Influencer research:** compare views, likes and posting frequency across creators.
- **Competitor and brand tracking:** schedule a daily run on competitor accounts with `oldestPostDate: "1 day"`.
- **Content analysis:** feed captions, hashtags and subtitle links into an AI pipeline.
- **Campaign reporting:** check the numbers on a list of sponsored video URLs.

### FAQ

**Is it legal to scrape TikTok?** This Actor collects only publicly visible data. You are responsible for how you use it, including data-protection laws such as GDPR when a profile belongs to a private person.

**Why did a profile return an error row?** The account may be private, banned, renamed or have no public videos. Error rows are never charged.

**Can I run it on a schedule or through the API?** Yes. Use Apify Schedules, the REST API, or the Make, n8n and Zapier integrations.

### Other Kanto Labs Actors

- [Video Frame Extractor](https://apify.com/kantolabs/video-frame-extractor): pull frames and thumbnails from TikTok, YouTube and other videos.
- [Video Ad Creative Breakdown](https://apify.com/kantolabs/video-creative-breakdown): hook, shot list and transcript for any video ad.
- [Video to LLM Context](https://apify.com/kantolabs/video-to-llm-context): turn a video into a transcript plus key frames for AI tools.

Questions or a missing field? Open an issue in the **Issues** tab and we'll answer quickly.

# Actor input Schema

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

TikTok usernames or profile URLs, e.g. nasa, @nasa or https://www.tiktok.com/@nasa. You get the profile's latest public videos, newest first. Private, banned or missing accounts give a free error row.

## `maxVideosPerProfile` (type: `integer`):

Maximum number of videos returned for each profile (newest first). Filtered-out videos do not count and are not charged.

## `postURLs` (type: `array`):

Single TikTok video links: https://www.tiktok.com/@user/video/<id>, photo posts, or vm.tiktok.com / vt.tiktok.com short links. One row per video. Deleted or private videos give a free error row.

## `oldestPostDate` (type: `string`):

Profiles only. Keep videos posted on or after this date (e.g. 2026-10-01) or within a relative period (e.g. 30 days). Scanning stops at this date. Free - no add-on charge.

## `newestPostDate` (type: `string`):

Profiles only. Keep videos posted on or before this date. Scanning starts at this date, so older periods are reached directly. Free.

## `minLikes` (type: `integer`):

Keep only videos with at least this many likes (hearts). Free filter; skipped videos are not charged.

## `maxLikes` (type: `integer`):

Keep only videos with fewer likes than this. Free filter.

## `minViews` (type: `integer`):

Keep only videos with at least this many plays. Free filter.

## `excludePinnedPosts` (type: `boolean`):

Leave out the videos the creator pinned to the top of the profile (they are often old). Free.

## Actor input object example

```json
{
  "profiles": [
    "nasa"
  ],
  "maxVideosPerProfile": 10,
  "excludePinnedPosts": false
}
```

# Actor output Schema

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

No description

## `csv` (type: `string`):

No description

# 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": [
        "nasa"
    ],
    "maxVideosPerProfile": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("kantolabs/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": ["nasa"],
    "maxVideosPerProfile": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("kantolabs/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": [
    "nasa"
  ],
  "maxVideosPerProfile": 10
}' |
apify call kantolabs/tiktok-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kantolabs/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/orWwiBHQ3ncEKZgwV/builds/8unXn6IDtMcZpuc2p/openapi.json
