# TikTok Video Scraper - Views, Likes, Music & Hashtags by URL (`headply/tiktok-video-scraper`) Actor

Get full data for any TikTok video URL without an account: views, likes, comments, shares, saves, caption, hashtags, sound, duration, posting country and author stats. Accepts full and short links.

- **URL**: https://apify.com/headply/tiktok-video-scraper.md
- **Developed by:** [Mayowa Ogedengbe](https://apify.com/headply) (community)
- **Categories:** Social media, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 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 Video Scraper: Views, Likes, Comments & More by URL (No Login)

Get full data for any TikTok video **without a TikTok account, cookies or API key**. Paste video URLs, short links or
ids and get clean, structured stats in JSON, CSV or Excel.

- **Engagement:** **views, likes, comments, shares, saves** and reposts (exact counts).
- **Content:** caption, hashtags, mentions, publish time, duration, resolution, caption language, **country it was
  posted from**, AI-generated and ad flags, cover image.
- **Sound:** sound id, title, author, original or not.
- **Author:** username, id, display name, verified badge, follower count.
- **Any link format:** `tiktok.com/@user/video/…`, short links (`vm.tiktok.com`, `vt.tiktok.com`) or
  bare video ids. Duplicates are removed after short links are resolved, so you never pay twice for one video.

### Reliable, no login needed

Tested on 200 random real videos: **200/200 delivered**, every core field (ids, counts, time, author, sound,
posting country) at 100%. Videos that were deleted or made private are listed in the run summary and not billed.

### Input

```json
{
  "videos": [
    "https://www.tiktok.com/@nasa/video/7691683140015820046",
    "https://vm.tiktok.com/ZMhvqjqjq/",
    "7686148096895569165"
  ]
}
```

### Output sample

```json
{
  "type": "video",
  "id": "7691683140015820046",
  "webVideoUrl": "https://www.tiktok.com/@nasa/video/7691683140015820046",
  "text": "Suited up. Next stop: the International Space Station. 🚀 Crew-13 is targeting liftoff today ...",
  "createTimeISO": "2026-10-01T12:59:48.000Z",
  "playCount": 1500000,
  "diggCount": 153400,
  "commentCount": 1809,
  "shareCount": 3604,
  "collectCount": 9605,
  "repostCount": 0,
  "hashtags": [],
  "durationSec": 28,
  "videoWidth": 720,
  "videoHeight": 1280,
  "textLanguage": "en",
  "locationCreated": "US",
  "isAd": false,
  "isAIGenerated": false,
  "musicId": "7691683335575325454",
  "musicTitle": "original sound - NASA",
  "musicAuthor": "NASA",
  "authorUsername": "nasa",
  "authorNickname": "NASA",
  "authorVerified": true,
  "authorFollowers": 2100000,
  "source": "url",
  "scrapedAt": "2026-10-12T15:01:03.416Z"
}
```

Field names are stable: new fields may be added, existing ones are never renamed or removed. Missing values are
explicit `null`. Each run writes a `SUMMARY` record (delivered, not found, skipped inputs).

### Pricing

| Event | Price per 1,000 |
|---|---|
| Video | $2.50 |
| Run start | $0.001 per run |

Higher Apify plans get automatic discounts. **1,000 videos ≈ $2.50.** Never charged: deleted, private or invalid
videos, and duplicates.

### Track a campaign's videos (scheduled)

Put your campaign or influencer video links in a task and schedule it daily: each run gives the current views, likes,
comments and shares, ready to chart growth in Google Sheets or Looker Studio.

### API, n8n, Make

```bash
curl -X POST "https://api.apify.com/v2/acts/headply~tiktok-video-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos":["https://www.tiktok.com/@nasa/video/7691683140015820046"]}'
```

**n8n:** *Apify* node → *Run actor and get dataset*, actor `headply/tiktok-video-scraper`.

### FAQ and limits

- **Do I need a TikTok account?** No.
- **Comment text?** Not included: you get the comment count.
- **All videos of a creator?** Use [TikTok Profile Scraper](https://apify.com/headply/tiktok-profile-scraper).
- **Trending videos?** Use [TikTok Trending Videos Scraper](https://apify.com/headply/tiktok-trending-scraper).
- **Media links** (cover) are temporary links from TikTok.
- **Speed:** about 5–10 videos per second.

# Actor input Schema

## `mode` (type: `string`):

Internal.

## `videos` (type: `array`):

TikTok video URLs, short links (vm.tiktok.com / vt.tiktok.com) or bare video ids. One per line.

## Actor input object example

```json
{
  "mode": "video",
  "videos": [
    "https://www.tiktok.com/@nasa/video/7691683140015820046"
  ]
}
```

# 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 = {
    "videos": [
        "https://www.tiktok.com/@nasa/video/7691683140015820046"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("headply/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 = { "videos": ["https://www.tiktok.com/@nasa/video/7691683140015820046"] }

# Run the Actor and wait for it to finish
run = client.actor("headply/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 '{
  "videos": [
    "https://www.tiktok.com/@nasa/video/7691683140015820046"
  ]
}' |
apify call headply/tiktok-video-scraper --silent --output-dataset

```

## MCP server setup

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