# Tiktok Post Detail Scraper (`xtracto/tiktok-post-detail-scraper`) Actor

Get comprehensive TikTok video details (stats, hashtags, music, author data) using a fast HTTP-based scraper with no browser, login, or proxy required.

- **URL**: https://apify.com/xtracto/tiktok-post-detail-scraper.md
- **Developed by:** [Xtractoo](https://apify.com/xtracto) (community)
- **Categories:** Social media, Lead generation, Videos
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Post Detail Scraper

Get comprehensive metadata for any TikTok video - engagement stats, hashtags, music info, author details, and more. Returns rich data in **under 1.5 seconds**.

### ✨ Why Use This Actor?

- ⚡ **Ultra fast** - Average **1.4 seconds** per video (benchmarked)
- 💰 **Extremely cheap** - Uses only ~0.0001 CU per run (~$0.00003)
- 🪶 **Lightweight** - No browser needed, HTTP-only (~256 MB RAM)
- ✅ **No login required** - Works without any TikTok account
- 📊 **Richest data** - Returns 20+ fields including hashtags, music, dimensions, and reposts
- 🔗 **Flexible input** - Accepts video ID or full TikTok URL

### 🎯 Use Cases

- **Content analysis** - Analyze video performance metrics (views, likes, shares, saves)
- **Hashtag research** - Extract hashtags used in top-performing videos
- **Music/sound tracking** - Find which sounds are being used in viral content
- **Engagement monitoring** - Track how a specific video performs over time
- **Influencer analytics** - Get detailed stats on sponsored/branded content
- **Trend research** - Study what makes specific videos go viral

### 📥 Input

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `video_id` | string | Yes | - | TikTok video ID or full video URL |

#### Example input

```json
{
    "video_id": "7600353976667704584"
}
````

You can also pass a full URL:

```json
{
    "video_id": "https://www.tiktok.com/@user/video/7600353976667704584"
}
```

### 📤 Output

Each item in the dataset is the **raw video detail data extracted from TikTok's embed page HTML**, returned as-is without any parsing or transformation. This gives you the full data TikTok provides and lets you parse it however you need.

The only field added by the scraper is:

| Field | Type | Description |
|-------|------|-------------|
| `_input` | string | The video ID or URL used for the request |

Key top-level fields you'll find in the raw TikTok data:

- **`id`** - Video ID
- **`desc`** - Video caption/description
- **`createTime`** - Unix timestamp of when the video was posted
- **`author`** - Nested object with author details (`uniqueId`, `nickname`, `verified`, `region`, etc.)
- **`stats`** - Video engagement metrics (`playCount`, `diggCount`, `shareCount`, `commentCount`, `collectCount`, `repostCount`)
- **`video`** - Video metadata (`duration`, `cover`, `downloadAddr`, `format`, `definition`, etc.)
- **`music`** - Music/sound details (`title`, `authorName`, `original`, `playUrl`)
- **`challenges`** - Array of hashtags used in the video
- **`textExtra`** - Hashtag positions within the description text
- **`isAd`** - Whether the video is an ad
- **`imagePostInfo`** - Corousel image url

> **Note**: The exact fields may vary between videos (e.g. `imagePost` is present for photo slideshows). TikTok may add or change fields over time.

#### Example output

```json
{
  "id": "7593738594569817367",
  "desc": "@regi09._ 🫶🏽 #fyp #love #loveyou ",
  "createTime": 1768055051,
  "author": {
    "id": "7165941169842914310",
    "uniqueId": "puporka_kristof",
    "nickname": "💐",
    "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/5d5b0fcf8ecacfd93aa9a24bf3155b5d~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=5d089d8e&x-expires=1776531600&x-signature=1CRygpS6d9JfdldfPV8mJxreHnY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
    "verified": false
  },
  "video": {
    "id": "7593738594569817367",
    "duration": 0,
    "ratio": "",
    "width": 0,
    "height": 0,
    "cover": "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/99f78fa984034a51b51b83aac9e87778~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=4BJQKSKWu%2F2SMxAO1RW195miNE4%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1",
    "originCover": "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/99f78fa984034a51b51b83aac9e87778~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=4BJQKSKWu%2F2SMxAO1RW195miNE4%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1"
  },
  "stats": {
    "diggCount": 226,
    "shareCount": 72,
    "commentCount": 8,
    "playCount": 7986,
    "collectCount": 0,
    "repostCount": 0
  },
  "music": {
    "id": "7306725305686002434",
    "title": "ْ",
    "authorName": "ٰ"
  },
  "challenges": [
    {
      "id": "229207",
      "title": "fyp"
    },
    {
      "id": "4231",
      "title": "love"
    },
    {
      "id": "6244",
      "title": "loveyou"
    }
  ],
  "textExtra": [
    {
      "Start": 0,
      "End": 9,
      "Type": 0,
      "IsCommerce": false,
      "SubType": 0,
      "AwemeId": "",
      "HashtagName": "",
      "UserId": "7485850843608318999",
      "UserUniqueId": "regi09._",
      "SecUid": "MS4wLjABAAAA3rCuXQTC30sXNNtniGHvKS1zkbFvPPBGrb3XZafibMPsiMYuSX0hcDdcAh3m061Z"
    },
    {
      "Start": 15,
      "End": 19,
      "Type": 1,
      "IsCommerce": false,
      "SubType": 0,
      "AwemeId": "",
      "HashtagName": "fyp",
      "HashtagId": "229207"
    },
    {
      "Start": 20,
      "End": 25,
      "Type": 1,
      "IsCommerce": false,
      "SubType": 0,
      "AwemeId": "",
      "HashtagName": "love",
      "HashtagId": "4231"
    },
    {
      "Start": 26,
      "End": 34,
      "Type": 1,
      "IsCommerce": false,
      "SubType": 0,
      "AwemeId": "",
      "HashtagName": "loveyou",
      "HashtagId": "6244"
    }
  ],
  "imagePostInfo": {
    "displayImages": [
      {
        "height": 1560,
        "width": 1170,
        "urlList": [
          "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/99f78fa984034a51b51b83aac9e87778~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=4BJQKSKWu%2F2SMxAO1RW195miNE4%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1",
          "https://p19-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/99f78fa984034a51b51b83aac9e87778~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=Zs408ECm0e7Wg%2Fqg6VEGU%2Bqqnw4%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1"
        ]
      },
      {
        "height": 1560,
        "width": 1170,
        "urlList": [
          "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/fb9154d953a844778e02e0e90792b599~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=wZi0%2BVGDILHBXpPZbKcWagmqTV0%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1",
          "https://p19-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/fb9154d953a844778e02e0e90792b599~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=bzwWF8xcU7hCdVz%2BeJytnwOdPKw%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1"
        ]
      },
      {
        "height": 852,
        "width": 872,
        "urlList": [
          "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/a5ed054b11f2486bb3e5890bdff83b71~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=QbIuCQJigROMEJov3ua9Nh3mrB8%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1",
          "https://p19-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/a5ed054b11f2486bb3e5890bdff83b71~tplv-photomode-image.jpeg?dr=9616&x-expires=1776531600&x-signature=B7PVNIB327OSY62STBJy3B%2BqiOw%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8&ftpl=1"
        ]
      }
    ]
  },
  "_input": "7593738594569817367"
}
```

### 🛠️ Technical Details

- **Engine**: HTTP-only - no browser required
- **Docker image**: `apify/actor-python:3.12`
- **Memory**: ~256 MB RAM
- **Proxy**: Not required (works without proxy)

# Actor input Schema

## `video_id` (type: `string`):

TikTok video ID or full URL. Example: 7600353976667704584 or https://www.tiktok.com/@user/video/7600353976667704584

## Actor input object example

```json
{}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/tiktok-post-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/tiktok-post-detail-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call xtracto/tiktok-post-detail-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/tiktok-post-detail-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Tiktok Post Detail Scraper",
        "description": "Get comprehensive TikTok video details (stats, hashtags, music, author data) using a fast HTTP-based scraper with no browser, login, or proxy required.",
        "version": "1.0",
        "x-build-id": "f26a8NCEIRENuyWOV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~tiktok-post-detail-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-tiktok-post-detail-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/xtracto~tiktok-post-detail-scraper/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-tiktok-post-detail-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/xtracto~tiktok-post-detail-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-tiktok-post-detail-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "video_id"
                ],
                "properties": {
                    "video_id": {
                        "title": "Video ID or URL",
                        "type": "string",
                        "description": "TikTok video ID or full URL. Example: 7600353976667704584 or https://www.tiktok.com/@user/video/7600353976667704584"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
