# Tiktok Download Max (`paul_44/tiktok-download-max`) Actor

Download TikTok videos by URL or video ID. Supports standard URLs,
short URLs (vm.tiktok.com), and numeric IDs. Videos up to 100MB are
stored with public download links; larger videos return CDN URLs
(valid 12-24h). Includes metadata: author, views, likes, hashtags, duration.

- **URL**: https://apify.com/paul\_44/tiktok-download-max.md
- **Developed by:** [paul\_44](https://apify.com/paul_44) (community)
- **Categories:** Social media, Videos, E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

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

<h1 align="center">TikTok Video Download</h1>

<p align="center">
  <strong>Paste a TikTok link → get a direct download URL and full metadata.</strong><br/>
  No API keys. No cookies. No browser automation. ~10 seconds per video.
</p>

<p align="center">
  <a href="#features">Features</a> ·
  <a href="#how-to-use">How to use</a> ·
  <a href="#input">Input</a> ·
  <a href="#output">Output</a> ·
  <a href="#pricing">Pricing</a> ·
  <a href="#limitations">Limitations</a> ·
  <a href="#faq">FAQ</a>
</p>

---

### Features

- **Zero setup** — no API keys, no cookies, no login walls. Paste URLs and run.
- **Accepts any TikTok link format**
  - Canonical: `https://www.tiktok.com/@user/video/7106594312292453675`
  - Short link: `https://vm.tiktok.com/ZMxxx/`
  - Raw numeric ID: `7106594312292453675`
- **Direct, playable download URLs** — open them in a browser or pipe to `curl`/`wget`/`yt-dlp`. Links stay valid for **24 hours**.
- **Batch-friendly** — pass dozens of URLs at once; they run in parallel and share a warm TikTok session.
- **Full metadata** — author profile, view/like/comment/share counts, hashtags, duration, upload timestamp.
- **Structured output** — dataset is typed via `dataset_schema.json`, with prebuilt **Overview** and **Downloads** table views.

---

### How to use

<ol>
  <li>Open the Actor on Apify Console.</li>
  <li>Paste one or more TikTok URLs (or video IDs) into the <code>videoUrls</code> field.</li>
  <li>Click <strong>Start</strong>.</li>
  <li>When the run finishes, open the <strong>Dataset</strong> tab and click any <code>downloadUrl</code> — or export the whole dataset as JSON/CSV.</li>
</ol>

#### Quickstart — minimal input

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ]
}
````

#### Batch input — mixed formats

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@jtbcnews_official/video/7628806976562072852",
    "https://vm.tiktok.com/ZMxxx/",
    "7628806976562072852"
  ]
}
```

> <strong>Tip</strong> — No other settings to tune. If a field isn't listed in <a href="#input">Input</a>, this Actor doesn't use it.

***

### Input

The Actor takes a single required field.

<table>
  <thead>
    <tr>
      <th align="left">Field</th>
      <th align="left">Type</th>
      <th align="left">Required</th>
      <th align="left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>videoUrls</code></td>
      <td><code>string[]</code></td>
      <td>✅</td>
      <td>TikTok video URLs or raw numeric IDs. Canonical URLs, <code>vm.tiktok.com</code> short links, and bare IDs are all accepted. Minimum <strong>1</strong> item.</td>
    </tr>
  </tbody>
</table>

***

### Output

Each input URL becomes **one dataset row**. Failed items are logged and skipped — they don't appear in the dataset, so you're never billed for errors.

#### Key fields

<table>
  <thead>
    <tr>
      <th align="left">Field</th>
      <th align="left">Type</th>
      <th align="left">What it is</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>downloadUrl</code></td>
      <td><code>string</code></td>
      <td><strong>The direct link to the MP4.</strong> Open in a browser, or <code>curl -o video.mp4 "&lt;downloadUrl&gt;"</code>. Valid for <strong>24 hours</strong>.</td>
    </tr>
    <tr>
      <td><code>downloadStatus</code></td>
      <td><code>"success" | "error"</code></td>
      <td>Successful rows have <code>downloadUrl</code> populated. Error rows are excluded from the dataset (logged only).</td>
    </tr>
    <tr>
      <td><code>id</code></td>
      <td><code>string</code></td>
      <td>TikTok video numeric ID.</td>
    </tr>
    <tr>
      <td><code>url</code></td>
      <td><code>string</code></td>
      <td>Canonical <code>https://www.tiktok.com/@user/video/ID</code> URL.</td>
    </tr>
    <tr>
      <td><code>description</code></td>
      <td><code>string</code></td>
      <td>Video caption text.</td>
    </tr>
    <tr>
      <td><code>author</code></td>
      <td><code>object</code></td>
      <td><code>{ username, nickname, url }</code></td>
    </tr>
    <tr>
      <td><code>statistics</code></td>
      <td><code>object</code></td>
      <td><code>{ views, likes, comments, shares }</code></td>
    </tr>
    <tr>
      <td><code>hashtags</code></td>
      <td><code>string[]</code></td>
      <td>Hashtags extracted from the caption.</td>
    </tr>
    <tr>
      <td><code>duration</code></td>
      <td><code>number</code></td>
      <td>Video length in seconds.</td>
    </tr>
    <tr>
      <td><code>uploadedAt</code></td>
      <td><code>integer</code></td>
      <td>Upload time as unix seconds.</td>
    </tr>
    <tr>
      <td><code>fileSizeBytes</code></td>
      <td><code>integer</code></td>
      <td>Size of the MP4 at <code>downloadUrl</code>.</td>
    </tr>
  </tbody>
</table>

<details>
<summary><strong>Full JSON example</strong></summary>

```json
{
  "id": "7628806976562072852",
  "inputUrl": "https://www.tiktok.com/@user/video/7628806976562072852",
  "url": "https://www.tiktok.com/@user/video/7628806976562072852",
  "description": "Video caption…",
  "author": {
    "username": "user",
    "nickname": "Display Name",
    "url": "https://www.tiktok.com/@user"
  },
  "statistics": {
    "views": 123456,
    "likes": 1234,
    "comments": 56,
    "shares": 78
  },
  "duration": 15.2,
  "hashtags": ["fyp", "viral"],
  "uploadedAt": 1712345678,
  "downloadStatus": "success",
  "downloadUrl": "https://.../v/7628806976562072852?…",
  "fileSizeBytes": 5784873
}
```

</details>

#### Downloading files from the command line

```bash
## Export dataset as JSON, then stream each downloadUrl to disk
apify call paul_44/tiktok-download-pro \
  --input '{"videoUrls":["7628806976562072852"]}' \
  --output-dataset results.json

jq -r '.[] | .downloadUrl' results.json | \
  xargs -I {} -P 4 curl -sSLO {}
```

***

### Pricing

You pay **only for successful downloads**. Failed items (invalid URL, private video, region block) are logged but excluded from the dataset and **not billed**.

Apify platform usage — compute units, residential proxy traffic, storage — is billed separately per your Apify plan.

> A **paid Apify plan is required** because residential proxies are needed to reach TikTok reliably. Free plans cannot run this Actor.

***

### Limitations

- **Private, deleted, or age-restricted videos** cannot be downloaded.
- **Region-locked content** — some broadcaster and brand accounts (e.g. Korean news outlets) are hidden by TikTok's WAF. The Actor auto-retries through a regional proxy, but a small fraction still fails. Failures are reported in the run log, not billed.
- **Download links expire after 24 hours.** Re-run the Actor for a fresh link.
- **IP-level rate limits** — TikTok occasionally rate-limits a specific proxy IP. Re-running the Actor rotates IPs and almost always works on the second attempt.

***

### FAQ

<details>
<summary><strong>Do I need to supply cookies or a TikTok login?</strong></summary>

No. The Actor obtains and refreshes its own session tokens internally. You only need the public URL or ID of the video.

</details>

<details>
<summary><strong>How long is <code>downloadUrl</code> valid?</strong></summary>

24 hours from when the run finished. After that, re-run the Actor to get a new link.

</details>

<details>
<summary><strong>Can I download the MP4 directly into Apify's key-value store?</strong></summary>

Not in this Actor — it returns a signed URL instead, which keeps compute cheap and downloads external. Pipe <code>downloadUrl</code> to <code>curl</code>, <code>yt-dlp</code>, or your storage of choice.

</details>

<details>
<summary><strong>Why did my video return an error?</strong></summary>

The most common causes are: the video is private or was deleted, the video is age-gated, or TikTok's WAF blocked the region of the proxy IP. The <code>error</code> field in the log explains which case hit.

</details>

<details>
<summary><strong>Does this use the official TikTok API?</strong></summary>

No. TikTok does not offer a public download API. This Actor scrapes the public web endpoints that the TikTok website itself uses.

</details>

***

### Support

Questions, bug reports, and feature requests — please use the **Issues** tab on the Actor's Apify Store listing. Include a sample video URL and the full run log whenever possible.

# Actor input Schema

## `videoUrls` (type: `array`):

TikTok video URLs or video IDs. Supports: https://www.tiktok.com/@user/video/123, https://vm.tiktok.com/ZMxxx/, or raw numeric IDs.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ]
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("paul_44/tiktok-download-max").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 = { "videoUrls": ["https://www.tiktok.com/@tiktok/video/7106594312292453675"] }

# Run the Actor and wait for it to finish
run = client.actor("paul_44/tiktok-download-max").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 '{
  "videoUrls": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ]
}' |
apify call paul_44/tiktok-download-max --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Tiktok Download Max",
        "description": "Download TikTok videos by URL or video ID. Supports standard URLs,\nshort URLs (vm.tiktok.com), and numeric IDs. Videos up to 100MB are\nstored with public download links; larger videos return CDN URLs\n(valid 12-24h). Includes metadata: author, views, likes, hashtags, duration.",
        "version": "0.0",
        "x-build-id": "f436IAp0b7wOJibcU"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/paul_44~tiktok-download-max/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-paul_44-tiktok-download-max",
                "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/paul_44~tiktok-download-max/runs": {
            "post": {
                "operationId": "runs-sync-paul_44-tiktok-download-max",
                "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/paul_44~tiktok-download-max/run-sync": {
            "post": {
                "operationId": "run-sync-paul_44-tiktok-download-max",
                "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": [
                    "videoUrls"
                ],
                "properties": {
                    "videoUrls": {
                        "title": "Video URLs",
                        "minItems": 1,
                        "type": "array",
                        "description": "TikTok video URLs or video IDs. Supports: https://www.tiktok.com/@user/video/123, https://vm.tiktok.com/ZMxxx/, or raw numeric IDs.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
