# TikTok Video Stats Scraper (`pellucid_bird/tiktok-video-stats-extractor`) Actor

Your TikTok reporting toolkit for known video URLs. Collect available views, likes, comment counts, shares and saves in dated snapshots for JSON or CSV export. Build campaign reports with Apify run resources included.

- **URL**: https://apify.com/pellucid_bird/tiktok-video-stats-extractor.md
- **Developed by:** [O M](https://apify.com/pellucid_bird) (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.49 / 1,000 tiktok video saveds

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

Turn public TikTok video links into dated metrics you can export as **JSON, CSV or Excel**. Get exact available views and likes, captions, publication dates, creator details, music and optional engagement counters. Use the results for campaign reporting, content research and scheduled snapshots of videos you already know.

**Full price: $0.0239 per run + $0.49 per 1,000 saved videos. Apify platform resources are included.** No API key, TikTok login or proxy setup is needed.

### Quick start

Paste public video links, start the Actor and download the Dataset:

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@apifytech/video/7398101551744552225",
    "https://www.tiktok.com/@apifylife/video/7200360993149553925"
  ],
  "maxItems": 2,
  "maxEstimatedCostUsd": 0.05
}
```

You can also provide numeric video IDs or ordinary TikTok share links. Direct links with the creator name are recommended. Profile URLs, keywords and hashtag searches are not accepted.

### Example result

This shortened example is from the public `apifytech` video checked on November 15, 2026. Counts can change between runs; the full output also includes optional creator, video and music fields.

```json
{
  "id": "7398101551744552225",
  "videoKey": "tiktok:7398101551744552225",
  "webVideoUrl": "https://www.tiktok.com/@apifytech/video/7398101551744552225",
  "playCount": 595,
  "diggCount": 21,
  "createTimeISO": "2024-08-01T09:32:32.000Z",
  "sourceMethod": "video-page"
}
```

Each saved record has a `scrapedAt` timestamp. Optional fields such as saves, shares or creator details are `null` when the public response does not provide them. Missing values are never replaced with guessed counts.

### Pricing

The complete Actor fee is **$0.0239 + $0.00049 × saved videos** for one run. Resources are included; there is no separate proxy or upstream API charge. The active Pricing tab is authoritative.

| Successful videos                       | Complete Actor fee |
| --------------------------------------- | -----------------: |
| 0 | $0.02390 |
| 1 | $0.02439 |
| 2 | $0.02488 |
| 10 | $0.02880 |
| 31 | $0.03909 |
| 500 across 17 runs of at most 31 videos | $0.65130 |

These totals assume the listed number of videos is successfully saved, sufficient spending limits and the stated number of runs. A startup fee applies even when no video is available. Failed, duplicate and filtered inputs do not create result charges. A partial run charges for its saved videos and its startup. Apify may apply the startup event again when a run is restarted; avoid restarting a stopped run blindly.

A cloud verification run saved 31 distinct public videos. For larger jobs, batches of up to 31 are a useful starting point. The 500-link input ceiling does not promise 500 completed results in one run; the 500-video example above includes all 17 startup fees. With a $0.05 allowance, event charges alone cover at most 53 saved videos; source and runtime limits may stop a run earlier.

For customers, `maxEstimatedCostUsd` limits the planned Actor event charges. Its input default is $0.10, while Apify's **Maximum charge** defaults to $0.05 for this Actor. The lower allowance applies; increase both when requesting more results. Setting the input allowance to zero stops collection but does not prevent Apify's startup event.

### What you get

| Fields                                       | Purpose                                                  |
| -------------------------------------------- | -------------------------------------------------------- |
| `id`, `videoKey`, `webVideoUrl`              | Stable video identity and source link                    |
| `text`, `createTimeISO`, `hashtags`          | Caption, publication time and available hashtags         |
| `playCount`, `diggCount`                     | Exact available views and likes                          |
| `commentCount`, `shareCount`, `collectCount` | Optional engagement counters                             |
| `authorMeta`                                 | Public creator identity and available profile statistics |
| `videoMeta`, `musicMeta`                     | Available duration, dimensions and sound details         |
| `scrapedAt`, `sourceMethod`, `warnings`      | Observation time, source route and missing-field notes   |

Use `videoKey` to join successive runs in your own database. Scheduling another run creates a new observation; this Actor does not provide historical metrics or calculate growth from observations it has not collected.

### Inputs

| Input                               | Default            | Meaning                                                           |
| ----------------------------------- | ------------------ | ----------------------------------------------------------------- |
| `videoUrls`                         | Two example videos | 1–500 public video links, IDs or share links                      |
| `maxItems`                          | 100                | Maximum successfully saved videos, up to 500                      |
| `publishedAfter`, `publishedBefore` | Unset              | Inclusive publication date/time filters in UTC                    |
| `maxEstimatedCostUsd`               | 0.10               | Planned total Actor charge allowance in USD                       |
| `requestTimeoutSecs`                | 15                 | Request deadline, including connection and response; 1–30 seconds |
| `maxRetries`                        | 1                  | 0–2 ordinary retries for transient failures                       |
| `proxyMode`                         | `none`             | Only direct public requests are supported                         |
| `postURLs`                          | Unset              | API alias of `videoUrls`; supply exactly one of them              |

For a whole-day upper date bound use `23:59:59Z`; a bare `YYYY-MM-DD` means midnight UTC. Repeated video IDs produce one row within the run.

### Coverage and limitations

- Collects public video metadata from the links you provide. It does not discover profile posts or search results, collect comment text, download videos or produce transcripts.
- TikTok may remove a video, restrict its region or change its public response. Authentication, privacy and access challenges are not bypassed. A persistent rate limit or explicit access challenge stops collection.
- A run may stop before `maxItems` when source availability, charge allowance, runtime or resource limits are reached. The requested count is a ceiling, not a completion guarantee.
- Read the `OUTPUT` record for per-link outcomes, saved count and `SUCCEEDED`, `PARTIAL`, `FAILED` or `INTERRUPTED` status. Only valid video records appear in the Dataset.

### API, schedules and AI workflows

Call `pellucid_bird/tiktok-video-stats-extractor` through Apify's API or SDK, or schedule repeated runs in Console. For an AI workflow, provide **known public TikTok video URLs** and request the fields above. The Dataset is structured JSON with stable IDs; `OUTPUT` explains incomplete coverage. No natural-language prompt or external AI account is required.

### Operational details

The Actor uses ordinary public video pages and one bounded legacy embed fallback when a page lacks supported data. TikTok's [Embed Videos documentation](https://developers.tiktok.com/docs/en/embed-videos) announces its future deprecation, so the main route is the public video page. A working result today does not guarantee future availability.

Runs use 512 MB and a cumulative 300-second work limit, with at most 1,000 physical requests, 256 MiB accounted transfer/output and 2 MiB per response. Customer work stops when its conservative resource estimate is no longer covered by confirmed event revenue. These guards protect the service; they do not promise that every input will finish.

Run storage is isolated. Completed records are deduplicated on a supported resume. If a dataset write loses its acknowledgement, collection stops with a reconciliation marker instead of risking another charge from an automatic append retry. Use a new run when the error says the existing storage cannot be safely resumed.

For a reproducible issue, include the run ID and an affected public video URL in the Actor's Issues tab. Do not submit account cookies, passwords or private tokens.

# Actor input Schema

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

1–500 direct TikTok video links, numeric video IDs or vm/vt/t short links. Profiles/searches are not supported. Duplicate IDs produce one row.

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

Stop after this many successful snapshots. Unavailable and filtered sources are not charged as results.

## `publishedAfter` (type: `string`):

Optional inclusive YYYY-MM-DD (midnight UTC) or ISO UTC timestamp.

## `publishedBefore` (type: `string`):

Optional inclusive YYYY-MM-DD (midnight UTC) or ISO UTC timestamp. Use 23:59:59Z for the end of a day.

## `requestTimeoutSecs` (type: `integer`):

Per physical request timeout.

## `maxRetries` (type: `integer`):

Bounded retries for transient HTTP or transport failures. Source changes do not cause unlimited retries.

## `maxEstimatedCostUsd` (type: `number`):

Total Actor event-charge allowance for customers, with platform resources included; owner calibration uses an estimated resource allowance. 0 stops collection. Startup may still be charged by Apify. Also set the platform maximum charge.

## `proxyMode` (type: `string`):

Requests are sent directly to ordinary public TikTok pages. Only none is supported. No login, credentials or proxy configuration is needed.

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

Optional alias of videoUrls for API compatibility. Supply exactly one of videoUrls or postURLs. Leave this empty/absent when using the main Video URLs field.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@apifytech/video/7398101551744552225",
    "https://www.tiktok.com/@apifylife/video/7200360993149553925"
  ],
  "maxItems": 100,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "maxEstimatedCostUsd": 0.1,
  "proxyMode": "none"
}
```

# Actor output Schema

## `videos` (type: `string`):

One successfully validated public video snapshot per charged row.

## `report` (type: `string`):

Saved counts, unavailable sources, filters, limits and billing context.

# 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/@apifytech/video/7398101551744552225",
        "https://www.tiktok.com/@apifylife/video/7200360993149553925"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pellucid_bird/tiktok-video-stats-extractor").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/@apifytech/video/7398101551744552225",
        "https://www.tiktok.com/@apifylife/video/7200360993149553925",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pellucid_bird/tiktok-video-stats-extractor").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/@apifytech/video/7398101551744552225",
    "https://www.tiktok.com/@apifylife/video/7200360993149553925"
  ]
}' |
apify call pellucid_bird/tiktok-video-stats-extractor --silent --output-dataset

```

## MCP server setup

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

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/ewL3QYsgyMKSdsIBZ/builds/G4vUkpdFvgjDeZm6J/openapi.json
