# TikTok Video Stats Scraper — Views, Likes, Shares by URL (`nick.cheng/tiktok-video-stats`) Actor

Get TikTok video stats by URL or video ID — play count, likes, comments, shares, saves, reposts, caption, hashtags, music, duration and the creator's follower count. Bulk TikTok video scraper by URL, no login, no cookies, no signature hacks. Charged only for videos actually returned.

- **URL**: https://apify.com/nick.cheng/tiktok-video-stats.md
- **Developed by:** [Nicholas Cheng](https://apify.com/nick.cheng) (community)
- **Categories:** Social media, Lead generation, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 profile scrapeds

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TikTok Video Stats Scraper

**Give it TikTok video links or IDs, get one row of real numbers per video.** Play count, likes, comments, shares, saves, reposts, caption, hashtags, music, duration, and the creator's headline stats. No login, no cookies, no proxy configuration, no signature reverse-engineering. Accepts full links (`tiktok.com/@name/video/…`), share links (`vm.tiktok.com/…`, `tiktok.com/t/…`), or bare 19-digit video IDs.

**You are charged only for videos that actually came back.** A deleted, private, or mistyped link produces an explanatory row and costs nothing.

| | |
|---|---|
| **Input** | Video URLs, share links, or numeric video IDs |
| **Output** | One row per video, numbers as numbers |
| **Price** | **$0.01 per video — the same on every Apify plan** |
| **Video lists** | **Not supported.** TikTok does not render an account's video list to logged-out clients; you supply the links. See [What this Actor cannot do](#what-this-actor-cannot-do) |

***

### What you get

Real output from a run:

```json
{
  "itemType": "video",
  "videoId": "7676868860749827342",
  "url": "https://www.tiktok.com/@nasa/video/7676868860749827342",
  "description": "The Moon understood the assignment 🌕",
  "createdAt": "2026-08-22T14:52:29.000Z",
  "durationSeconds": 28,

  "playCount": 498000,
  "likeCount": 54700,
  "commentCount": 913,
  "shareCount": 2114,
  "collectCount": 4036,
  "repostCount": 0,

  "hashtags": [],
  "mentions": [],
  "music": { "id": "7677149386731735821", "title": "original sound - NASA", "authorName": "NASA", "isOriginal": false },

  "authorHandle": "nasa",
  "author": { "handle": "nasa", "nickname": "NASA", "isVerified": true, "followers": 1400000, "likes": 6600000, "videoCount": 35 },

  "isAd": false,
  "isPhotoPost": false,
  "duetEnabled": true, "stitchEnabled": true,
  "locationCreated": "US"
}
```

`playCount`, `likeCount`, `commentCount`, `shareCount`, `collectCount` (saves) and `repostCount` are
the numbers TikTok renders into the page for that video at the moment of the request. `author`
carries the creator's headline counts as of the same request, so a video row is enough for "how big
is this creator" without a second lookup. `isAd` and `isPhotoPost` are TikTok's own flags.

***

### Input

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7676868860749827342",
    "https://vm.tiktok.com/ZMabc123/",
    "7670634456419519758"
  ]
}
```

| Option | Notes |
|---|---|
| `videoUrls` | Full links, share links (followed to the final URL), or bare video IDs. De-duplicated |
| `maxItems` | Hard cap on rows for the run |

***

### Pricing

**$0.01 per video, on every Apify plan** — Free, Bronze, Silver, Gold, Platinum, Diamond. Check the
Pricing tab: all six columns are identical. The price a listing advertises in its title is not always
the price a free-plan run pays; here it is.

One request, one video, one charge. Being straight about the comparison: bulk list scrapers that
pull thirty videos per call can quote a lower per-video rate. This Actor fetches **the specific
videos you point it at**, one page each — a different job, priced as one.

#### What you are not charged for

| | What happens here |
|---|---|
| **Videos that are gone** | Deleted, private, region-blocked, or mistyped links produce one row marked `chargedForThis: false`. Nothing is billed. |
| **Empty or placeholder rows** | If the video data did not come back, no video row is written. |
| **The free plan** | Same code path, same fields, same limits. No demo mode, no row cap, no nulls in place of data. |

***

### What this Actor cannot do

- **No video lists for an account.** TikTok does not render them to logged-out clients. You bring the links; this Actor brings the numbers.
- **No comments, no search, no hashtag pages.** Same restriction.
- **No download URLs.** Media files are served with short-lived signed links; this Actor returns the cover image and metadata, not the video file.
- **Photo posts** (`/photo/` links) are handled by the same code path and flagged `isPhotoPost: true`, but have been exercised less than videos.
- For account profiles — follower count, bio, verification — use the [TikTok Profile & Video Stats Scraper](https://apify.com/nick.cheng/tiktok-profile-stats-scraper) or the [TikTok Follower Count Scraper](https://apify.com/nick.cheng/tiktok-follower-count).

***

### How it stays working

The video page is fetched exactly as a browser without cookies would fetch it, and the stats are read from the JSON TikTok embeds in the page for its own front-end. Three test rounds of twelve videos across five accounts returned 36/36 with zero retries. There is no signature to reverse-engineer and no login to get banned. If TikTok serves a page without video data, the request is retried and then reported as a failure — never filled in with nulls.

***

### Integrating

```bash
curl -X POST "https://api.apify.com/v2/acts/nick.cheng~tiktok-video-stats/run-sync-get-dataset-items?token=<TOKEN>" \
  -H 'Content-Type: application/json' \
  -d '{"videoUrls":["https://www.tiktok.com/@nasa/video/7676868860749827342"]}'
```

Official clients exist for JavaScript and Python, and results export as JSON, CSV, or Excel.

# Actor input Schema

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

Videos to look up, one row each: play, like, comment, share and save counts plus description, hashtags, music and author. Accepts full links (https://www.tiktok.com/@name/video/123…), share links (vm.tiktok.com/…, tiktok.com/t/…), or bare numeric video IDs. Photo-post links (/photo/…) are accepted and read from the same page data.

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

Hard ceiling on rows for the whole run, counting profiles and videos together. Leave at 0 for no limit.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7676868860749827342",
    "https://www.tiktok.com/@duolingo/video/7673613020710456590"
  ],
  "maxItems": 0
}
```

# Actor output Schema

## `videos` (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 = {
    "videoUrls": [
        "https://www.tiktok.com/@nasa/video/7676868860749827342",
        "https://www.tiktok.com/@duolingo/video/7673613020710456590"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nick.cheng/tiktok-video-stats").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 = { "videoUrls": [
        "https://www.tiktok.com/@nasa/video/7676868860749827342",
        "https://www.tiktok.com/@duolingo/video/7673613020710456590",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nick.cheng/tiktok-video-stats").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 '{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7676868860749827342",
    "https://www.tiktok.com/@duolingo/video/7673613020710456590"
  ]
}' |
apify call nick.cheng/tiktok-video-stats --silent --output-dataset

```

## MCP server setup

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

```

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/hqF6qoueW0mc0amwG/builds/Z5lR7kuKIGDgx7EnL/openapi.json
