# TikTok Scraper — Videos, Profiles & Stats (`innolabs/tiktok-scraper`) Actor

TikTok scraper API: videos from profiles and video URLs with views, likes, comments, shares, saves, hashtags and music, plus profile stats. No login.

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

## Pricing

from $0.22 / 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

## TikTok Scraper — Videos, Profiles & Stats

Get TikTok videos and profiles as clean data: for every video the caption, post time, plays,
likes, comments, shares and saves, hashtags and mentions, duration, cover image, sound
(music) and author with follower count; for every profile the followers, following, total
likes, video count, bio, bio link and verified badge. Scrape a profile's newest videos (or
its whole history), single video links, or both in one run. No TikTok account, no login,
no API key. Export as JSON, CSV or Excel, or use it as a TikTok API.

### What does TikTok Scraper do?

Add TikTok profiles such as **@khaby.lame** or **https://www.tiktok.com/@nba** and/or video
links such as **https://www.tiktok.com/@nba/video/7710515855678901535**, and the scraper
returns two kinds of records:

- **Video records** (`recordType: "video"`) — one per video or photo post:
  - **Engagement stats** — `playCount`, `likeCount`, `commentCount`, `shareCount`,
    `saveCount`, `repostCount`, exact numbers as TikTok counts them.
  - **Content** — caption `text`, `hashtags`, `mentions`, `createTime` (ISO, UTC),
    `durationSeconds`, width/height, `coverUrl`, `language`; photo posts (slideshows) are
    flagged with `isSlideshow` and carry their `imageUrls`.
  - **Author** — username, nickname, ID, verified flag, follower count, avatar.
  - **Sound** — `musicTitle`, `musicAuthor`, `musicId`, original-sound flag and a link to
    the audio.
- **Profile records** (`recordType: "profile"`) — one per profile: `followerCount`,
  `followingCount`, `likeCount` (total hearts), `videoCount`, `friendCount`, `bio`,
  `bioLink`, `verified`, private-account flag, account creation date, language, business
  and seller flags, avatar.

Profiles are listed newest first, page by page, as deep as you want: set **Max videos per
profile** to 10 for a quick check or to several thousand for the full history. Date filters
limit the videos to a time window.

### Use cases

- **Influencer marketing** — compare creators by followers, average views and engagement
  rate before you contact them; track campaign videos after they go live.
- **Competitor and brand monitoring** — follow what competing brands post, how often, and
  which videos and sounds perform best.
- **Content strategy** — find the hashtags, video lengths and posting times that drive
  plays and shares on the profiles you care about.
- **Social listening and research** — build datasets of captions, hashtags and engagement
  for academic or market research.
- **Reporting dashboards** — schedule daily runs and feed views, likes and follower growth
  into Google Sheets, Looker Studio or your BI tool.
- **AI agents and assistants** — let an agent fetch fresh TikTok stats on demand.

### How much does it cost?

You pay only for the records you get (pay-per-event). Duplicates, failed links and records
above your limits are never charged.

| Event | What you pay for | Free plan | Paid plans (from) |
| --- | --- | --- | --- |
| `video` | One TikTok video or photo post with stats, author, sound and hashtags | $0.225 per 1,000 | $0.22 per 1,000 |
| `profile` | One TikTok profile with followers, following, likes, video count and bio | $0.225 per 1,000 | $0.22 per 1,000 |

"Paid plans (from)" is the Gold-and-above price; Bronze ($0.2233) and Silver ($0.2217) sit
in between. Apify also charges a tiny actor-start fee per run.

Worked examples (Free plan prices):

1. **Quick check** — the prefilled input (one profile with its 10 newest videos plus one
   video link that is among them) returns 1 profile + 10 videos = 11 records:
   11 × $0.225 / 1,000 = **$0.0025**.
2. **Influencer shortlist** — 200 creators with their 50 newest videos each = 200 profiles +
   10,000 videos = 10,200 records: 10,200 × $0.225 / 1,000 = **$2.30** ($2.24 on Gold+).
   Set **Max videos per profile** to 0 for profile stats only: 200 × $0.225 / 1,000 =
   **$0.045**.

Apify Free plan includes $5 monthly credit, enough for about 22,000 videos or profiles
every month.

### How to use TikTok Scraper

1. Open the actor in Apify Console and click **Try for free**.
2. In **Profiles**, add TikTok handles (`@nba`, `nba`) or profile links. In **Video URLs**,
   add video links, short links (`vm.tiktok.com/…`) or video IDs. You can use either field
   or both.
3. Set **Max videos per profile** (newest first; 0 = profile record only) and, if you like,
   the date filters **Videos published on or after / before**.
4. Click **Start**. A profile with 30 videos takes about two seconds.
5. Open the **Output** tab (Videos and Profiles views) and export as JSON, CSV, Excel or
   HTML.

Through the API:

1. Get your API token in Apify Console → Settings → Integrations.
2. Call the actor with your input JSON (see [Integrations and API](#integrations-and-api)).
3. Read the dataset items from the run.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `profiles` | array | – | TikTok profiles: `@handle`, `handle` or `https://www.tiktok.com/@handle`. Each gives one profile record plus its newest videos. |
| `videoUrls` | array | – | Video or photo links (`https://www.tiktok.com/@user/video/<id>`), short links (`vm.tiktok.com/…`, `tiktok.com/t/…`) or bare video IDs. |
| `maxVideosPerProfile` | integer | `30` | Newest videos per profile. `0` = profile records only. |
| `oldestPostDate` | string | – | Only profile videos published on or after this date (`YYYY-MM-DD`, UTC). |
| `newestPostDate` | string | – | Only profile videos published on or before this date (`YYYY-MM-DD`, UTC). |
| `includeProfiles` | boolean | `true` | Add one profile record per profile. Turn off for videos only. |
| `maxItems` | integer | `1000` | Hard cap on records (videos + profiles) for the whole run. |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings. The default works; blocked requests are retried on a new IP. |
| `debug` | boolean | `false` | Log retries and every profile page. |

Provide at least one profile or video link.

Example — three creators, 50 newest videos each:

```json
{
    "profiles": ["@nba", "@mrbeast", "https://www.tiktok.com/@khaby.lame"],
    "maxVideosPerProfile": 50
}
```

Example — everything a brand posted in October 2026, videos only:

```json
{
    "profiles": ["@nike"],
    "maxVideosPerProfile": 1000,
    "oldestPostDate": "2026-10-01",
    "newestPostDate": "2026-10-31",
    "includeProfiles": false
}
```

Example — stats for specific videos (campaign tracking):

```json
{
    "videoUrls": [
        "https://www.tiktok.com/@khaby.lame/video/7709194461913419038",
        "https://vm.tiktok.com/ZMabc1234/"
    ]
}
```

### Output

Video record from a real run on 2026-11-21 (signed links shortened):

```json
{
    "recordType": "video",
    "id": "7710515855678901535",
    "url": "https://www.tiktok.com/@nba/video/7710515855678901535",
    "text": "🏆 “Uncle!” Aaron Gordon’s nephew couldn’t wait for a postgame reunion! 🏆 #NBA #basketball #EmiratesNBACup #AaronGordon #DenverNuggets ",
    "createTime": "2026-11-21T07:00:04Z",
    "createTimeUnix": 1795244404,
    "authorUsername": "nba",
    "authorNickname": "NBA",
    "authorId": "134941634731003904",
    "authorSecUid": "MS4wLjABAAAAsny0dcfyctb1_fdyyiu7JOLnblf8y3jd64yTHQLQoc9O5m57HhjT94OdgfSmNgaG",
    "authorVerified": true,
    "authorFollowers": 27500000,
    "authorAvatarUrl": "https://p19-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/734453bb…~tplv-tiktokx-cropcenter:1080:1080.jpeg?…",
    "playCount": 26300,
    "likeCount": 2018,
    "commentCount": 35,
    "shareCount": 9,
    "saveCount": 56,
    "repostCount": 0,
    "hashtags": ["nba", "basketball", "emiratesnbacup", "aarongordon", "denvernuggets"],
    "mentions": [],
    "durationSeconds": 6,
    "width": 720,
    "height": 1280,
    "definition": "720p",
    "coverUrl": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/ogYELDAAEiay…image?…",
    "isSlideshow": false,
    "imageUrls": [],
    "musicId": "7710515989133216543",
    "musicTitle": "original sound",
    "musicAuthor": "NBA",
    "musicOriginal": true,
    "musicUrl": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/…/?mime_type=audio_mpeg&…",
    "language": "en",
    "locationCreated": null,
    "isAd": false,
    "sourceType": "profile",
    "source": "https://www.tiktok.com/@nba",
    "scrapedAt": "2026-11-21T10:28:20Z"
}
```

Profile record from the same run:

```json
{
    "recordType": "profile",
    "id": "127905465618821121",
    "url": "https://www.tiktok.com/@khaby.lame",
    "username": "khaby.lame",
    "nickname": "Khabane lame",
    "bio": "Se vuoi ridere sei nel posto giusto😎 If u wanna laugh u r in the right place😎",
    "bioLink": null,
    "verified": true,
    "privateAccount": false,
    "secUid": "MS4wLjABAAAAwAg0rSzO65WQfz4RzQgGv2Xdv108BgPXhRrrmNVIHQZ9PO8-flwwRtEppYTS0OjA",
    "avatarUrl": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/08987e23…~tplv-tiktokx-cropcenter:1080:1080.jpeg?…",
    "followerCount": 162924566,
    "followingCount": 82,
    "likeCount": 2696106887,
    "videoCount": 1359,
    "friendCount": 77,
    "createTime": "2016-08-10T22:02:34Z",
    "language": "en",
    "isOrganization": false,
    "commerceUser": false,
    "ttSeller": false,
    "source": "https://www.tiktok.com/@khaby.lame",
    "scrapedAt": "2026-11-21T10:28:18Z"
}
```

Field notes:

- `recordType` — `video` or `profile`; filter on it when you export both kinds together.
- `id` — TikTok's video ID or user ID; stable across runs, use it as the key.
- `sourceType` / `source` — whether the video came from a profile or a video link, and which
  one.
- `playCount`, `likeCount`, … — exact counts at the time of the run. `authorFollowers` on
  video records is TikTok's rounded figure; the profile record has the exact number.
- `createTime` — ISO 8601 in UTC; `createTimeUnix` — the same as a Unix timestamp.
- `coverUrl`, `authorAvatarUrl`, `musicUrl`, `imageUrls` — TikTok's signed CDN links; they
  expire after a few days, so download what you want to keep.
- `locationCreated` — the country code TikTok records for the upload; filled on video-link
  records, usually empty on profile listings.

### Integrations and API

Run the actor and get the records back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/innolabs~tiktok-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"profiles": ["@nba"], "maxVideosPerProfile": 20}'
```

Python with [apify-client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("innolabs/tiktok-scraper").call(run_input={
    "profiles": ["@mrbeast", "@khaby.lame"],
    "maxVideosPerProfile": 30,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["recordType"] == "video":
        print(item["url"], item["playCount"], item["likeCount"])
    else:
        print(item["username"], item["followerCount"])
```

- **Make, Zapier, n8n** — use the Apify app or node to start the actor and send videos to
  Google Sheets, Airtable, Slack or a database.
- **Scheduling** — create a schedule in Apify Console to track the same profiles every day.
- **Webhooks** — trigger your pipeline when a run finishes.
- **AI agents (MCP)** — connect Claude, Cursor or other MCP clients through the Apify MCP
  server at https://mcp.apify.com and let your agent pull TikTok data on demand.

### FAQ

#### How many videos can I get per profile?

As many as the profile shows publicly. Videos are listed newest first in pages of 15, so
**Max videos per profile** of 1,000 or more walks back through the full history (we
fetched 1,331 of @khaby.lame's 1,359 videos in one run; TikTok hides a few old or removed
ones).

#### Do I need a TikTok account or cookies?

No. The scraper reads public TikTok pages without logging in, so you never risk your own
account. Private profiles return their profile record, but no videos.

#### Can I scrape hashtags or search results?

Not in this version. TikTok's hashtag and search feeds need a signed, logged-in-like browser
session; this scraper focuses on profiles and video links, which work reliably and cheaply.
To cover a topic, add the profiles that post about it.

#### How do the date filters work?

`oldestPostDate` and `newestPostDate` apply to profile videos (UTC dates, both inclusive).
Listing starts at `newestPostDate` and stops as soon as older videos than `oldestPostDate`
appear, so you only pay for videos in the window. Video links are always returned.

#### Why are some counts rounded?

Video stats and profile stats are exact. Only `authorFollowers` on video records comes
from TikTok's rounded figure (e.g. 27,500,000); use the profile record for the exact
follower count.

#### Do I need a proxy?

No setup needed. The default Apify Proxy works; if TikTok throttles a request, the scraper
retries it automatically on a new IP.

#### Is it legal to scrape TikTok?

The scraper collects public information that anyone can see on TikTok without logging in.
Profiles and captions can contain personal data, so make sure your use complies with
TikTok's terms and the data-protection laws that apply to you (for example GDPR).

#### What happens with wrong or deleted links?

A profile or video that does not exist, is private or was removed is listed in the run's
`SUMMARY` record with the reason; the other inputs still run and you are not charged for
it.

### Limits

- Inputs are profiles and video links; hashtag, keyword search, sound and location feeds
  are not supported yet.
- Comments, followers/following lists, video file downloads and transcripts are not
  included.
- Pinned videos are listed in date order with the rest, not first.
- Media links (covers, avatars, audio, slideshow images) are signed by TikTok and expire
  after a few days.
- Stats are a snapshot at the time of the run; schedule runs to track them over time.

# Changelog

This Actor's version history is a separate document: https://apify.com/innolabs/tiktok-scraper/changelog.md

# Actor input Schema

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

TikTok profiles as @handle, handle or profile link (https://www.tiktok.com/@nba). Each profile gives one profile record plus its newest videos, up to Max videos per profile.

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

TikTok video or photo links such as https://www.tiktok.com/@nba/video/7710515855678901535, short links (vm.tiktok.com/…, tiktok.com/t/…) or bare video IDs.

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

Newest videos per profile, newest first. Set 0 to get profile records only.

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

Only profile videos published on or after this date (YYYY-MM-DD, UTC). Scraping a profile stops once older videos are reached.

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

Only profile videos published on or before this date (YYYY-MM-DD, UTC). Listing starts at this date, so newer videos are not downloaded.

## `includeProfiles` (type: `boolean`):

Add one profile record (followers, following, likes, video count, bio, verified) per profile. Turn off to get videos only.

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

Hard cap on records (videos + profiles) for the whole run. The run stops cleanly when reached and you are never charged above it.

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

Proxy for TikTok requests. The default Apify Proxy works; blocked requests are retried on a new IP automatically.

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

Log retries and every profile page.

## Actor input object example

```json
{
  "profiles": [
    "@khaby.lame"
  ],
  "videoUrls": [
    "https://www.tiktok.com/@khaby.lame/video/7709194461913419038"
  ],
  "maxVideosPerProfile": 10,
  "includeProfiles": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records produced by the run: video records (recordType video) and profile records (recordType profile).

# 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": [
        "@khaby.lame"
    ],
    "videoUrls": [
        "https://www.tiktok.com/@khaby.lame/video/7709194461913419038"
    ],
    "maxVideosPerProfile": 10,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("innolabs/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": ["@khaby.lame"],
    "videoUrls": ["https://www.tiktok.com/@khaby.lame/video/7709194461913419038"],
    "maxVideosPerProfile": 10,
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("innolabs/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": [
    "@khaby.lame"
  ],
  "videoUrls": [
    "https://www.tiktok.com/@khaby.lame/video/7709194461913419038"
  ],
  "maxVideosPerProfile": 10,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call innolabs/tiktok-scraper --silent --output-dataset

```

## MCP server setup

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