# TikTok Video Scraper (`seemuapps/tiktok-video-scraper`) Actor

Scrape TikTok video data by URL. Extract stats, author info, music metadata, and direct download links for any public TikTok video.

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

## Pricing

from $7.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.

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

Extract data from any public TikTok video by URL. Provide one or more video links and get back stats, author info, music metadata, and direct download links — no login required.

### What it does

Paste in one or more TikTok video URLs and the actor returns a full data record for each one: like counts, plays, shares, comments, saves, the author's profile stats, the music used, hashtags, topic labels, and a signed download URL for the video file itself.

### Use cases

- **Content analysis** — track engagement metrics (likes, plays, shares, saves) across a set of videos
- **Competitor research** — benchmark a competitor's top videos by performance
- **Influencer vetting** — verify view counts and engagement before a brand deal
- **Trend monitoring** — collect data on viral videos for market research
- **Content archiving** — capture video metadata and download URLs for a library of TikToks

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `postURLs` | `string[]` | ✅ | One or more TikTok video URLs to scrape |
| `maxItems` | `integer` | | Max number of videos to scrape (default: `0` = no limit) |

#### Example input

```json
{
  "postURLs": [
    "https://www.tiktok.com/@tiktokcreators/video/7630922277026090254"
  ]
}
````

Supported URL formats:

- `https://www.tiktok.com/@username/video/VIDEO_ID`
- `https://vt.tiktok.com/SHORT_CODE/`
- `/@username/video/VIDEO_ID`

### Output

One dataset record per video URL:

```json
{
  "id": "7630922277026090254",
  "webVideoUrl": "https://www.tiktok.com/@tiktokcreators/video/7630922277026090254",
  "desc": "Video caption text #hashtag",
  "createTimeISO": "2026-04-20T12:00:00.000Z",
  "locationCreated": "US",
  "isAd": false,
  "likeCount": 4200,
  "shareCount": 310,
  "playCount": 98000,
  "commentCount": 87,
  "saveCount": 512,
  "hashtags": ["hashtag"],
  "diversificationLabels": ["Comedy", "Entertainment"],
  "authorMeta": {
    "id": "123456789",
    "name": "tiktokcreators",
    "nickname": "TikTok Creators",
    "verified": true,
    "signature": "Bio text here",
    "avatar": "https://...",
    "followerCount": 1200000,
    "followingCount": 42,
    "heartCount": 8500000,
    "videoCount": 340
  },
  "videoMeta": {
    "height": 1280,
    "width": 720,
    "duration": 30,
    "ratio": "720p",
    "coverUrl": "https://...",
    "downloadUrl": "https://..."
  },
  "musicMeta": {
    "musicId": "987654321",
    "musicName": "original sound",
    "musicAuthor": "tiktokcreators",
    "musicOriginal": true,
    "musicAlbum": "",
    "musicDuration": 30,
    "musicPlayUrl": "https://..."
  }
}
```

#### Output fields

| Field | Type | Description |
|---|---|---|
| `id` | `string` | TikTok video ID |
| `webVideoUrl` | `string` | Full URL to the video on TikTok |
| `desc` | `string` | Video caption |
| `createTimeISO` | `string` | ISO 8601 timestamp of when the video was posted |
| `locationCreated` | `string` | Country code where the video was created |
| `isAd` | `boolean` | Whether the video is a paid advertisement |
| `likeCount` | `number` | Total likes |
| `shareCount` | `number` | Total shares |
| `playCount` | `number` | Total plays |
| `commentCount` | `number` | Total comments |
| `saveCount` | `number` | Total saves (bookmarks) |
| `hashtags` | `string[]` | Hashtags used in the caption |
| `diversificationLabels` | `string[]` | Topic labels assigned by TikTok (e.g. "Comedy", "Sports") |
| `authorMeta.id` | `string` | Author's TikTok user ID |
| `authorMeta.name` | `string` | Author's username |
| `authorMeta.nickname` | `string` | Author's display name |
| `authorMeta.verified` | `boolean` | Whether the author has a verified badge |
| `authorMeta.signature` | `string` | Author's bio |
| `authorMeta.avatar` | `string` | Author's profile picture URL |
| `authorMeta.followerCount` | `number` | Author's total followers |
| `authorMeta.followingCount` | `number` | Number of accounts the author follows |
| `authorMeta.heartCount` | `number` | Total likes received across all the author's videos |
| `authorMeta.videoCount` | `number` | Total number of videos posted by the author |
| `videoMeta.height` | `number` | Video height in pixels |
| `videoMeta.width` | `number` | Video width in pixels |
| `videoMeta.duration` | `number` | Video duration in seconds |
| `videoMeta.ratio` | `string` | Video resolution label (e.g. `"720p"`) |
| `videoMeta.coverUrl` | `string` | Thumbnail/cover image URL |
| `videoMeta.downloadUrl` | `string` | Signed CDN URL to download the video MP4 (expires after a short time) |
| `musicMeta.musicId` | `string` | TikTok music/sound ID |
| `musicMeta.musicName` | `string` | Music track name |
| `musicMeta.musicAuthor` | `string` | Music track author |
| `musicMeta.musicOriginal` | `boolean` | Whether the sound is original to this video |
| `musicMeta.musicAlbum` | `string` | Album name (if applicable) |
| `musicMeta.musicDuration` | `number` | Music duration in seconds |
| `musicMeta.musicPlayUrl` | `string` | Direct URL to stream the audio track |

### Notes

- Only **public** videos are supported — private or deleted videos will be skipped with an error logged
- `videoMeta.downloadUrl` is a signed URL that expires — download the file immediately if needed
- `saveCount` reflects TikTok's "collect" / bookmark count

# Actor input Schema

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

One or more TikTok video URLs to scrape. Supports full URLs, short URLs (vt.tiktok.com), and path-only format (/@username/video/ID).

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

Maximum number of videos to scrape. Set to 0 for no limit.

## Actor input object example

```json
{
  "postURLs": [
    "https://www.tiktok.com/@tiktokcreators/video/7630922277026090254"
  ],
  "maxItems": 0
}
```

# Actor output Schema

## `results` (type: `string`):

Each record contains: id, desc, createTimeISO, stats (likeCount, shareCount, playCount, commentCount, saveCount), authorMeta (id, name, nickname, verified, signature, avatar, followerCount, followingCount, heartCount, videoCount), videoMeta (height, width, duration, ratio, coverUrl, downloadUrl), musicMeta (musicId, musicName, musicAuthor, musicOriginal, musicAlbum, musicDuration, musicPlayUrl), hashtags, diversificationLabels, locationCreated, isAd, webVideoUrl.

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

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

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

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Video Scraper",
        "description": "Scrape TikTok video data by URL. Extract stats, author info, music metadata, and direct download links for any public TikTok video.",
        "version": "1.0",
        "x-build-id": "ykpIYqeTzLQCU8cIQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/seemuapps~tiktok-video-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-seemuapps-tiktok-video-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/seemuapps~tiktok-video-scraper/runs": {
            "post": {
                "operationId": "runs-sync-seemuapps-tiktok-video-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/seemuapps~tiktok-video-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-seemuapps-tiktok-video-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": [
                    "postURLs"
                ],
                "properties": {
                    "postURLs": {
                        "title": "TikTok Video URLs",
                        "type": "array",
                        "description": "One or more TikTok video URLs to scrape. Supports full URLs, short URLs (vt.tiktok.com), and path-only format (/@username/video/ID).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of videos to scrape. Set to 0 for no limit.",
                        "default": 0
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
