# TikTok Video Scraper: Views, Likes, Shares & Saves (`automatic/tiktok-video-scraper`) Actor

Views, likes, comments, shares and saves for any public TikTok video or a profile's latest videos, plus caption, hashtags, music, author and follower count. No login. CSV, Excel or JSON.

- **URL**: https://apify.com/automatic/tiktok-video-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (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 $2.50 / 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.

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 Video Scraper

Get views, likes, comments, shares and saves for any public TikTok video, or the latest videos from any creator or brand profile. Each video is one clean row you can sort, compare and export to CSV or Excel.

### What you get

- **Engagement stats:** plays, likes, comments, shares and saves for every video.
- **Content details:** caption, hashtags, mentions, caption language, posting country, sound, duration and video size.
- **Creator context:** username, display name, follower count, verified badge, profile picture and cover image.
- **Honest "latest videos":** pinned videos are skipped by default, so a profile gives you its newest posts. Turn on `includePinned` to keep them, clearly marked.

### Also available

The social media suite: pick the job.

| Actor | Use when |
|---|---|
| **TikTok Videos (this Actor)** | Views, likes and shares for any video |
| [TikTok Profiles & Videos](https://apify.com/automatic/tiktok-profile-video-scraper) | Creator stats and latest video metrics |
| [TikTok Shop](https://apify.com/automatic/tiktok-shop-scraper) | US TikTok Shop products and sold counts |
| [Instagram Posts](https://apify.com/automatic/instagram-post-scraper) | Full post history with captions and engagement |
| [YouTube Scraper](https://apify.com/automatic/youtube-scraper) | Videos, channels, search results and comments |
| [Twitch Channels & Streams](https://apify.com/automatic/twitch-channels-streams-scraper) | Live streams, channels, VODs and clips |

### Who it's for

Brand and social teams tracking their own or competitors' TikTok content, agencies vetting influencers before a campaign, and analysts building engagement reports.

### Input

Two profiles, five latest videos each:

```json
{
  "profiles": ["nike", "nba"],
  "latestVideos": 5,
  "maxItems": 10
}
```

This is the Console prefill. It returns 10 videos in about 30 seconds.

| Field | What it controls |
|---|---|
| `profiles` | Public usernames or profile links, such as `nike` or `https://www.tiktok.com/@nba`; up to 100. |
| `videoUrls` | Public video links, short links or 15–21 digit video IDs; up to 100. |
| `latestVideos` | Latest videos per profile: 1–10, default 10. |
| `maxItems` | Total videos across all sources: 1–10,000, default 100. |
| `includePinned` | Also collect pinned videos. They come first, count toward `latestVideos` and have `isPinned: true`. Default off. |

Profiles and video links can be mixed in one run. Duplicates are collected once. A run with no input returns a one-video sample and marks it with `usedExample: true` in OUTPUT. Invalid settings end the run green with `OUTPUT.status: "no_results"` and a message naming the field and the fix, before anything is fetched or charged.

### Pricing

**$0.0025 per delivered video ($2.50 per 1,000) plus $0.005 per run start.** One video is one dataset row. The start fee is charged per GB of memory, rounded up with a minimum of one; the default 512 MB run is one start event. Failed sources produce no charged rows. A result or charge limit can reduce the number of delivered rows.

| Example at 512 MB | Rows | Cost |
| --- | ---: | ---: |
| Console prefill | 10 | $0.03 |
| One run delivering 100 rows | 100 | $0.26 |
| One run delivering 1,000 rows | 1,000 | $2.51 |

Costs include one start and are rounded to the nearest cent.

### Output example

```json
{
  "id": "7707914180556262686",
  "url": "https://www.tiktok.com/@nba/video/7707914180556262686",
  "description": "🏆 Quick rewind ⏪ Full recap. Here’s everything from tonight’s @OKC Thunder vs. @LA Clippers matchup! 🏆 #NBA #basketball #OKCThunder #LAClippers #EmiratesNBACup ",
  "hashtags": [
    "nba",
    "basketball",
    "okcthunder",
    "laclippers",
    "emiratesnbacup"
  ],
  "mentions": [
    "okcthunder",
    "laclippers"
  ],
  "plays": 15500,
  "likes": 769,
  "comments": 36,
  "shares": 21,
  "saves": 29,
  "createdAt": "2026-11-14T06:44:07+00:00",
  "isPinned": false,
  "durationSeconds": 100,
  "videoWidth": 720,
  "videoHeight": 1280,
  "videoQuality": "720p",
  "captionLanguage": "en",
  "postCountry": "US",
  "isAd": false,
  "musicId": "7707914257450552095",
  "musicTitle": "original sound",
  "musicAuthor": "NBA",
  "author": "nba",
  "authorId": "134941634731003904",
  "authorName": "NBA",
  "authorUrl": "https://www.tiktok.com/@nba",
  "authorFollowers": 27500000,
  "authorVerified": true,
  "authorAvatarUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/96baa67dc02aba45029cbe1aae50a83d~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=1cb3ea19&x-expires=1794844800&x-signature=QKZy9k5z0MQg3XrBp4AdYHImKFk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
  "coverUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/owmiIUFwAyq2eQHwIADAQMeqjHVABEHIAAEDfn~tplv-tiktokx-dmt-logom:tos-useast8-i-0068-tx2/oEBETEAAEia6B3ikDbBlAIzgARNAl1PbDA4Gv.image?dr=9634&x-expires=1794844800&x-signature=FH5eLAf1m%2BBmOCQ2OzTUjprPfg4%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast8",
  "postType": "video",
  "scrapedAt": "2026-11-14T16:57:50+00:00"
}
```

Fields: `id`, `url`, `description`, `hashtags`, `mentions`, `plays`, `likes`, `comments`, `shares`, `saves`, `createdAt`, `isPinned` (`true`/`false` for profile videos, `null` for video links), `durationSeconds`, `videoWidth`, `videoHeight`, `videoQuality`, `captionLanguage`, `postCountry`, `isAd`, `musicId`, `musicTitle`, `musicAuthor`, `author`, `authorId`, `authorName`, `authorUrl`, `authorFollowers`, `authorVerified`, `authorAvatarUrl`, `coverUrl`, `postType`, `scrapedAt`. Missing public values are `null`, never invented zeros. Dates are ISO 8601 UTC.

### Exports

Download the dataset as JSON, CSV or Excel. OUTPUT holds the run summary, per-profile coverage (including how many pinned videos were found) and a reason for every source that failed.

### Good to know

- Pasted a profile link under video links, or a video link under profiles? It is collected anyway and noted in OUTPUT. Hashtag, sound and search pages aren't supported yet; they are listed in `OUTPUT.skippedSearches` (and in `sourceErrors`) with a reason, never charged, and don't fail the run. A run that delivered videos and skipped such an entry ends `OUTPUT.status: "partial"`; when nothing at all could be run or found because of your links, it ends `status: "no_results"` with the reason.
- Each profile returns up to its 10 latest public videos. For older videos, add their links or IDs to `videoUrls`.
- Pinned videos are recognised because they sit above newer posts. A pinned video that is also the creator's newest post is returned as a normal latest video with `isPinned: false`.
- Counts are TikTok's public figures, which TikTok rounds for large numbers (for example 37,100,000 plays). `isAd` is TikTok's own ad flag and can be true for promoted brand posts that show no label on the page.
- Public videos only; photo posts are skipped and never charged. Private, deleted and unavailable videos are listed in OUTPUT with a reason and are not charged.
- Media links (cover, profile picture) can expire. Video file downloads, comments and transcripts are not included.
- Each run is independent; there is no saved-state or date-filter option.

# Actor input Schema

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

Public TikTok usernames or profile links, for example nike or https://www.tiktok.com/@nba. Each profile returns its latest videos. Up to 100 entries.

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

Public video links, short links or 15–21 digit video IDs, for example https://www.tiktok.com/@nike/video/7698062113742310670. Up to 100 entries. Photo posts are skipped.

## `latestVideos` (type: `integer`):

How many of each profile's latest videos to collect, from 1 to 10. Pinned videos are skipped unless you include them below.

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

Total number of videos across all profiles and links.

## `includePinned` (type: `boolean`):

Also collect videos the creator pinned to the top of the profile. They come first, count toward the latest-videos number and are marked isPinned: true.

## Actor input object example

```json
{
  "profiles": [
    "nike",
    "nba"
  ],
  "latestVideos": 5,
  "maxItems": 10,
  "includePinned": false
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "nike",
        "nba"
    ],
    "latestVideos": 5,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/tiktok-video-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": [
        "nike",
        "nba",
    ],
    "latestVideos": 5,
    "maxItems": 10,
}

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

```

## MCP server setup

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