# Fast Tiktok Downloader API (`wilcode/fast-tiktok-downloader-api`) Actor

A powerful API for downloading TikTok videos, images and music with high success rate, flexible proxy support, and complete metadata extraction.

- **URL**: https://apify.com/wilcode/fast-tiktok-downloader-api.md
- **Developed by:** [Wilcode](https://apify.com/wilcode) (community)
- **Categories:** Videos, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 33 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Downloader API

### Introduction

This API extracts detailed information from TikTok videos (without watermarks) and photo. It provides download links for videos, photo and audio, author information, and engagement metrics like likes, shares, and comments with high success rate

### Features

- **Download Links**: Get direct links for video (without watermark), images slide and music downloads
- **Engagement Metrics**: Extract the number of likes, shares, and comments on a video
- **Author Information**: Fetch details about the video creator, including username and profile picture
- **Structured Output**: Returns clean JSON data for easy integration
- **Ultra-Fast Results**: Processes and delivers data in seconds
- **Multiple Download Methods**: Supports various methods to fetch videos

### Download Method

Based on the following table, it will save the most proxy costs for you!

Below are the servers to fetch video download links. You can choose the one that suits you or set it to Auto for the tool to automatically go through each method.

| **Method**            | **Proxy Requirement**      | **Description**                                 | **Response Time** |
|------------------------|----------------------------|------------------------------------------------|----------------|
| ⭐️**Auto**      | Residential Proxy          | Requires a residential proxy to fetch videos.  | 3s - 20s |
| ⭐️**TikTok**      | Residential Proxy          | Requires a residential proxy to fetch videos.  | 10s |
| ⭐️**Musically**   | Data Center Proxy          | Uses a data center proxy for video fetching.   | 3s |
| ⭐️**TikTok API**  | Data Center Proxy          | Uses a data center proxy for video fetching. | 3s |

### How It Works

1. Enter the list of links to the TikTok videos you want to download
2. The API will get download information from TikTok
3. If successful, the API outputs the video details in JSON format. If an error occurs, a structured error message is returned

### Input Example

```json
{
  "tiktokUrls": ["Link1", "Link2"],
  "apiVersion": "Auto",
  "proxySettings": {
    "useApifyProxy": true,
      "apifyProxyGroups": [
        "RESIDENTIAL"
      ],
    "apifyProxyCountry": "SG"
  },
}
```

### JSON Success Results

```json
{
  "success": true,
  "data": {
    "type": "video",
    "description": "[#2024MAMA] #APT by Rose & Brunomars #apt #rosé #brunomars #musiclyrics #lirikterjemahan #fyp #fypシ",
    "creator": {
      "name": "tewut",
      "profileImage": "https://profile-image-url.jpg"
    },
    "engagement": {
      "likes": "371",
      "comments": "7",
      "shares": "6"
    },
    "media": {
      "videoHD": ["https://video-download-url.mp4"],
      "videoSD": ["https://video-download-url.mp4"],
      "images": [],
      "music": "https://audio-download-url.mp3"
    }
  }
}
```

### JSON Failed Results

```json
{
  "success": false,
  "message": "Unable to retrieve video information."
}
```

# Actor input Schema

## `tiktokUrls` (type: `array`):

Enter one or more TikTok video URLs you want to download

## `apiVersion` (type: `string`):

Select the download method you want to use

## `proxySettings` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "tiktokUrls": [
    "https://www.tiktok.com/@brunomars/video/7427205403173211435"
  ],
  "apiVersion": "Auto",
  "proxySettings": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SG"
  }
}
```

# 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 = {
    "tiktokUrls": [
        "https://www.tiktok.com/@brunomars/video/7427205403173211435"
    ],
    "proxySettings": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "SG"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("wilcode/fast-tiktok-downloader-api").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 = {
    "tiktokUrls": ["https://www.tiktok.com/@brunomars/video/7427205403173211435"],
    "proxySettings": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "SG",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("wilcode/fast-tiktok-downloader-api").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 '{
  "tiktokUrls": [
    "https://www.tiktok.com/@brunomars/video/7427205403173211435"
  ],
  "proxySettings": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SG"
  }
}' |
apify call wilcode/fast-tiktok-downloader-api --silent --output-dataset

```

## MCP server setup

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

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/SX1JUsMl9loIS3xX9/builds/eEDI1WxVYwh5WvWod/openapi.json
