# TikTok Video Detail Scraper (`axery/tiktok-video-detail-scraper`) Actor

Scrape a single TikTok video - play/like/comment/share counts, author profile with follower stats, hashtags used, music, and direct video file URLs. No login, no API key.

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

## Pricing

from $10.00 / 1,000 results

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

Scrapes a single TikTok video — play/like/comment/share counts, author profile with follower stats, hashtags used, music, and direct video file URLs. No login, no API key.

Useful for tracking specific viral videos, influencer/creator research, and building a video-performance dataset.

### What makes this different

**Uses the one TikTok surface that actually renders without a signed request.** TikTok's desktop web pages for this same data — the video page under `@user/video/{id}`, the hashtag page, the profile page — are gated behind an anti-bot layer that returns either a challenge page or a stripped-down placeholder with no items, confirmed directly against live pages rather than assumed. TikTok's own mobile web video page renders the full record server-side with no such gate. This Actor reads that page specifically, not the desktop one.

**Author stats come bundled with the video**, not just a username — follower count, total likes, following count, and video count travel with every row, so a single video result doubles as a creator-size signal without a second lookup.

**Hashtags carry their own site-wide reach**, not just a name — each hashtag in a video's caption comes with the total video count posted under it, useful for judging how competitive or niche a tag actually is.

### What's honestly out of scope

**No comment text.** The video record's own `comments` field always comes back empty on this page — real comment content lives behind TikTok's signed `/api/comment/list/` endpoint, which requires the `X-Bogus`/`X-Gnarly` request-signing scheme this Actor deliberately does not implement. `comment_count` is a real number; the comments themselves are not fetched.

**No video list from a hashtag or profile.** The equivalent profile page does carry full bio and stats fields, but its video grid loads separately after the page renders and isn't part of the server-rendered data this Actor reads. This Actor is scoped to one video per input, not a channel/hashtag browse.

### Input

| Field | Type | Notes |
|---|---|---|
| `videos` | array | Full TikTok video URLs or bare numeric video IDs. |
| `proxyConfiguration` | object | Defaults to Residential. |

### Output

```json
{
  "video_id": "tiktok.com:6718335390845095173",
  "description": "Scramble up ur name & I'll try to guess it #foryoupage #petsoftiktok",
  "play_count": 159000,
  "like_count": 35100,
  "comment_count": 5495,
  "author_username": "scout2015",
  "author_follower_count": 9000000,
  "hashtags": [{"id": "88764338", "name": "foryoupage", "video_count": 4305265721}],
  "play_url": "https://v16-webapp-prime.tiktok.com/video/tos/...",
  "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
}
```

A video that's removed, private, or an invalid ID fails with a clear message rather than returning a hollow row. Each run also writes a `RUN_COVERAGE` record to the key-value store with what was requested, what came back, and any per-video failures.

### Local development

```bash
pip install -r requirements.txt
python test_local.py 6718335390845095173 --out sample_output.json
python test_local.py https://www.tiktok.com/@scout2015/video/6718335390845095173
```

`sample_output.json` is real output from a live run.

# Actor input Schema

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

Full TikTok video URLs or bare numeric video IDs. Each is fetched independently into the same dataset.

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

Apify Proxy settings. Defaults to Residential - TikTok's desktop web paths for this same data are gated behind an anti-bot layer, so Apify's own container IP range is a plausible target for the same defense even on this less-restricted mobile-web path.

## Actor input object example

```json
{
  "videos": [
    "https://www.tiktok.com/@scout2015/video/6718335390845095173"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per video: engagement counts, author profile + stats, hashtags, music, video file URLs.

# 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/@scout2015/video/6718335390845095173"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/tiktok-video-detail-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/@scout2015/video/6718335390845095173"] }

# Run the Actor and wait for it to finish
run = client.actor("axery/tiktok-video-detail-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/@scout2015/video/6718335390845095173"
  ]
}' |
apify call axery/tiktok-video-detail-scraper --silent --output-dataset

```

## MCP server setup

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