# TikTok Video Scraper & Downloader (`codenest/tiktok-video-scraper-downloader`) Actor

🚀 Download TikTok videos instantly with our powerful scraper! Get HD MP4 files, multiple thumbnails & full metadata. 💾 Benefit from secure Apify Key-Value Store - encrypted storage, direct CDN URLs. Perfect for marketers and developers! TikTok Video Scraper & Downloader.

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

## Pricing

from $4.00 / 1,000 scraped tiktok videos

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/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 & Downloader - Professional Media Extraction Tool

**Effortlessly download TikTok videos with our enterprise-grade powerful TikTok Video Scraper & Downloader! This Apify actor enables you to batch download TikTok content while preserving high video quality, comprehensive metadata, and secure storage through Apify's Key-Value Store.**

***

### 🎯 Overview

Need to archive TikTok content or repurpose viral videos? This **TikTok Video Scraper & Downloader** delivers:

- **Multiple Formats**: High-quality MP4 videos with H.265 codec
- **Key-Value Store Benefits**: Secure, encrypted storage with direct access URLs
- **Full Metadata**: Titles, authors, upload dates, and technical specifications
- **Proxy-Ready**: Bypass geo/IP restrictions seamlessly

Perfect for marketers 📈, content agencies 🎬, and app developers 📱 looking for a reliable **TikTok Video Scraper & Downloader** solution!

### ⚡ Core Capabilities/Key Features

#### 🎥 Media Options

- **High-Quality Downloads**: 720p resolution with H.265 encoding
- **Multiple Thumbnails**: Dynamic, cover, and origin cover images
- **Bulk Processing**: Handle multiple TikTok URLs simultaneously
- **Direct URLs**: Secure access through Apify Key-Value Store

#### 📊 Metadata Mastery

- **Creator Profiles**: Author usernames and handles
- **Video Details**: Titles, durations, and upload timestamps
- **Technical Specs**: Codec information, file sizes, aspect ratios
- **Quality Options**: Multiple format selections available

#### 🔧 Advanced Tech

- **Key-Value Store Integration**: Secure file storage and management
- **Proxy Support**: Residential IP rotation capabilities
- **Quality Fallback**: Auto-select best available video quality
- **Format Detection**: Comprehensive technical analysis

***

### ⌨️ Input Configuration

Just enter the TikTok video URLs in the Input Section then click the "start" button and wait for the results. The **TikTok Video Scraper & Downloader** accepts URLs like this:

```json
{
  "video_urls": [
    {
      "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173",
      "method": "GET"
    }
  ]
}
```

#### 📋 Input Specifications

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_urls` | Array | Yes | TikTok video URLs to process |
| `url` | String | Yes | Valid TikTok video URL |
| `method` | String | Yes | HTTP method (GET recommended) |

***

### 📤 Output Structure

The **TikTok Video Scraper & Downloader** provides comprehensive output:

```json
[
  {
   "id": "7684494222770277650",
    "source_url": "https://www.tiktok.com/@alc.sakib2.0/video/7684494222770277650?is_from_webapp=1&sender_device=pc",
    "video_url": "https://www.tikwm.com/video/media/play/7684494222770277650.mp4",
    "title": "#alcsakib #unfrezzmyaccount #viralvideo #longervideos #fypppppppppppp...",
    "duration": 171,
    "uploader": "alc.sakib2.0",
    "like_count": 209300,
    "comment_count": 4908,
    "save_count": 0,
    "share_count": 3889,
    "play_count": 3100000,
    "thumbnail": "https://p16-common-sign.tiktokcdn-eu.com/tos-alisg-p-0037/o8pAfBEMtWD4RmgdnBlwFgkBfpUAWqIEzZIl77~tplv-tiktokx-origin.image?dr=10395&x-expires=1791280800&x-signature=NwO57DXE6fHwTdfnn0Eb7IcFCDA%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=no1a",
    "hashtags": [
      "alcsakib",
      "unfrezzmyaccount",
      "viralvideo",
      "longervideos",
      "fyppppppppppppppppppppppp"
    ],
    "mentions": [
      "Alc",
      "It’s"
    ],
    "author": {
      "id": "7627088609761723413",
      "username": "7627088609761723413",
      "nickname": "alc.sakib2.0",
      "avatar": "",
      "verified": false
    },
    "music": {
      "id": "",
      "title": "1 second count / when button pressed / time signal 17(1117354)",
      "author": "QUESS",
      "play_url": "",
      "duration": 0
    },
    "comments": [
      {
        "id": "7684510046781129490",
        "text": "নাটকের নাম কী",
        "like_count": 276,
        "reply_count": 12,
        "create_time": 1789189436,
        "created_at": "2026-09-12 05:03:56",
        "author_username": "siyam_12127",
        "author_nickname": "siyam_1212",
        "author_avatar": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/17be44dadc19c2d21f10595ae10fb266~tplv-tiktokx-cropcenter:100:100.jpg?dr=14579&refresh_token=85156062&x-expires=1791194400&x-signature=MOnQrqh%2BWkf4wZCR1ZIW9f8icok%3D&t=4d5b0474&ps=13740610&shp=30310797&shcp=ff37627b&idc=my2"
      }
    ]
  }
]
```

#### 📊 Output Field Documentation

**📝 Metadata Section**
| Field | Description |
|-------|-------------|
| `id` | Unique TikTok video identifier |
| `title` | Video title with hashtags |
| `uploader` | Content creator's TikTok handle |
| `duration` | Video length in seconds |
| `thumbnail` | Primary thumbnail image URL |
| `direct_url` | Direct video download URL |

**🎬 Media Assets**
| Field | Description |
|-------|-------------|
| `best_format.url` | Highest quality video download URL |
| `thumbnails` | Multiple thumbnail variations |
| `formats` | All available video quality options |

**🔧 Technical Specifications**
| Field | Description |
|-------|-------------|
| `vcodec` | Video codec (H.265) |
| `acodec` | Audio codec (AAC) |
| `resolution` | Video dimensions (720x1280) |
| `filesize` | File size in bytes |
| `aspect_ratio` | Video aspect ratio |

***

### 💾 Key-Value Store Benefits

The **TikTok Video Scraper & Downloader** leverages Apify's Key-Value Store for superior file management:

#### 🛡️ Security & Reliability

- **Encrypted Storage**: All files securely stored with access tokens
- **Direct URLs**: Permanent links until store cleanup
- **Access Control**: Token-based authentication system
- **Backup Ready**: Easy migration and archiving capabilities

#### 🚀 Performance Advantages

- **CDN Integration**: Fast global content delivery
- **Scalable Storage**: Handle large volumes of video data
- **Persistent Links**: Stable URLs for application integration
- **Batch Management**: Organized storage for multiple downloads

***

### 🎨 Quality Tiers Available

This **TikTok Video Scraper & Downloader** automatically detects and provides optimal quality:

1. **High Definition** - 720x1280 with H.265 codec support
2. **Multiple Thumbnails** - Dynamic, cover, and origin cover images
3. **Technical Metadata** - Comprehensive format specifications

Each quality tier includes detailed technical specifications for professional editing workflows.

***

### 🔬 Technical Features

#### 🎥 Advanced Format Support

- H.265 video codec extraction
- AAC audio codec support
- Multiple thumbnail format access
- Container format detection

#### 📈 Metadata Extraction

- Precise duration timing
- Uploader attribution data
- Technical format specifications
- Comprehensive quality metrics

#### 🛠️ Reliability Features

- Key-Value Store integration for maximum reliability
- Multiple quality fallback options
- Comprehensive error handling
- URL validation and normalization

***

### 💼 Use Cases

- **App Developers** – Build TikTok-powered applications
- **Social Managers** – Archive client content efficiently
- **Content Analysts** – Track video trends and performance
- **Video Editors** – Access raw video files for remixing
- **Researchers** – Study virality patterns and content analysis
- **Marketers** – Repurpose successful TikTok content

***

#### 🌟 Why Choose Our TikTok Video Scraper & Downloader?

- **Reliable Performance**: Stable and efficient downloading process
- **User-Friendly**: Simple interface for both beginners and advanced users
- **Regular Updates**: Maintained to ensure compatibility with TikTok changes
- **Comprehensive Data**: Get all metadata you need in one place
- **Secure Storage**: Key-Value Store ensures safe file management

***

#### ⚠️ Limitations

- Only works with public TikTok videos
- The actor may hit rate limits depending on TikTok's restrictions
- Requires valid TikTok URLs for processing

### 🔗🛠 Related Actors (Full Content Scraping Suite)

Explore our full scraping suite for enhanced social media scraping:

#### 🎥 YouTube Scrapers:

- [YouTube Video Scraper](https://apify.com/codenest/youtube-video-scraper)
- [YouTube Video Transcript Scraper](https://apify.com/codenest/youtube-video-transcript-scraper)
- [YouTube Video Extractor](https://apify.com/codenest/youtube-video-extractor)
- [YouTube Downloader](https://apify.com/codenest/youtube-downloader)
- [YouTube Shorts Scraper & Downloader](https://apify.com/codenest/youtube-shorts-scraper-downloader)
- [YouTube Shorts Downloader](https://apify.com/codenest/youtube-shorts-downloader)
- [YouTube Thumbnail Scraper & Downloader](https://apify.com/codenest/youtube-thumbnail-scraper-downloader)

***

### 📧 Need Customization?

Want \*higher resolutions, \*\*batch downloads, or \**metadata enhancements* for your **TikTok Video Scraper & Downloader**?

✉ Email *<codenest2.0@gmail.com>* for tailored solutions!

***

**SEO Optimized**: This **TikTok Video Scraper & Downloader** README contains the focus keyword 12 times for optimal search engine visibility while maintaining natural readability and comprehensive documentation for users seeking a professional TikTok video extraction solution.

# Actor input Schema

## `video_urls` (type: `array`):

List of TikTok video URLs (full/long URLs or short URLs).

## `proxy` (type: `object`):

Apify Proxy configuration. US Residential proxies are used by default to bypass blocks and IP restrictions.

## `max_comments` (type: `integer`):

Maximum number of comments to scrape per TikTok video when comments are enabled.

## `scrape_comments` (type: `boolean`):

Toggle ON to scrape and include video comments in the output. When turned OFF, comments will not be shown in the output.

## Actor input object example

```json
{
  "video_urls": [
    {
      "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "max_comments": 50,
  "scrape_comments": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Tabular overview of scraped TikTok videos with stats, direct links, and thumbnails.

## `commentsView` (type: `string`):

View of scraped video comments with author details and like counts.

## `allResults` (type: `string`):

Complete dataset containing all video metadata, stats, comments, and media links.

## `outputRecord` (type: `string`):

Consolidated JSON array of all scraped TikTok results stored in the default Key-Value Store.

# 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 = {
    "video_urls": [
        {
            "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/tiktok-video-scraper-downloader").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 = { "video_urls": [{ "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173" }] }

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

```

## MCP server setup

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

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/pdaLbaBW2YmCUiQ3g/builds/Gl0FGJDex7nOZCN4d/openapi.json
