# TikTok, Instagram & Facebook Video Downloader (MP4) (`tactful_anvil/tiktok-instagram-facebook-video-downloader`) Actor

TikTok video downloader, Instagram Reels downloader and Facebook video downloader in one: paste links or @usernames, get MP4 files with permanent links plus caption, views, likes and date. Bulk from profiles, date filters, daily new-only mode. No login. Failed videos are free.

- **URL**: https://apify.com/tactful_anvil/tiktok-instagram-facebook-video-downloader.md
- **Developed by:** [Mr Zack](https://apify.com/tactful_anvil) (community)
- **Categories:** Videos, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 video file (mp4)s

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/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, Instagram & Facebook Video Downloader (MP4)

Download **TikTok videos, Instagram Reels and Facebook videos as MP4 files** — from single links or in bulk from a creator's profile. Every video comes back as one clean row: a **permanent MP4 link**, plus caption, views, likes, comments, upload date, length and author. No login, no cookies, no API key.

**What makes it different**

- 🎯 **Three platforms, one Actor.** Paste TikTok, Instagram and Facebook links together — the Actor sorts them out.
- 👤 **Bulk from profiles.** `@username` or a profile link → that creator's newest videos (up to 500 on TikTok and Instagram).
- 🔗 **Permanent links.** Files are saved to a key-value store in *your* Apify account. The `fileUrl` keeps working after the platform's own link has expired.
- 🧹 **TikTok without the watermarked copy** when TikTok offers a clean file (it usually does).
- 📅 **Filters before download:** date range, minimum views, caption keywords, skip pinned, newest or most viewed. Skipped videos cost nothing.
- 🔁 **Daily archive mode:** *Only new videos* remembers what you already downloaded, so a schedule only pays for new posts.
- 💸 **You pay only for delivered files.** Private, deleted, photo-only, oversized and failed videos are free status rows.

### How to use it

1. Paste links into **Video links** and/or creators into **Profiles** (`@nasa`, `https://www.tiktok.com/@nasa`, `https://www.instagram.com/nasa/`, `https://www.facebook.com/NASA`).
2. Choose **Platform for usernames** for plain `@names` (or write `tiktok:@name`, `ig:name`, `fb:name` per line).
3. Click **Start**. Download the MP4s from the `fileUrl` column (or from the run's key-value store), or export the rows as JSON / CSV / Excel.

#### Input example

```json
{
  "urls": [
    "https://www.tiktok.com/@nasa/video/7300000000000000000",
    "https://www.instagram.com/reel/DfpowZdlfMz/",
    "https://www.facebook.com/NASA/videos/985176134108927/"
  ],
  "handles": ["tiktok:@nasa"],
  "maxVideosPerProfile": 5,
  "onlyPostsNewerThan": "30 days",
  "saveFiles": true,
  "maxFileSizeMb": 50,
  "videoStoreName": "my-videos"
}
```

#### Output example

```json
{
  "url": "https://www.instagram.com/reel/DfpowZdlfMz/",
  "platform": "instagram",
  "profile": "@nasa",
  "status": "ok",
  "charged": true,
  "chargedAs": "video-file",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/…/records/instagram-DfpowZdlfMz.mp4",
  "fileKey": "instagram-DfpowZdlfMz.mp4",
  "fileSizeMb": 5.6,
  "width": 720,
  "height": 1280,
  "directVideoUrl": "https://scontent….cdninstagram.com/….mp4",
  "videoId": "DfpowZdlfMz",
  "author": "nasa",
  "caption": "Spacewalk or moonwalk? 🌝 …",
  "hashtags": ["NASA", "Astronaut", "ToTheMoon"],
  "durationSec": 29.12,
  "uploadedAt": "2026-11-12T17:53:22.000Z",
  "viewCount": 6495609,
  "likeCount": 91045,
  "commentCount": 1054,
  "followerCount": 104331088
}
```

Every row has a `status`. `ok` means the video was delivered and charged; every other status is free and comes with a plain-language `error`: `too_big`, `photo_post`, `not_found`, `private`, `blocked`, `needs_file`, `no_file`, `save_failed`, `budget_limit`, `timeout`. The run's key-value store also holds a `SUMMARY` record (counts per status, megabytes saved, profiles listed).

### Pricing (pay per event)

| Event | Price | When |
|---|---|---|
| Video file (MP4) | **$0.005** | A video saved as an MP4 with a permanent link (*Save video files* on — default) |
| Video link | **$0.003** | Instagram / Facebook only: the platform's own MP4 link, no copy kept (*Save video files* off) |
| Actor start | $0.001 | Once per run |

100 TikTok / Instagram / Facebook videos as MP4 files ≈ **$0.50**. Nothing is charged for videos that fail, are private, are photo posts, are over your size limit or are left out by a filter. Set *Maximum cost per run* in the run options to cap a run; the Actor stops cleanly at that limit.

### Good to know

- **TikTok** file links only open with the cookies of the request that created them, so TikTok videos need *Save video files* on (default).
- **TikTok profiles:** TikTok sometimes refuses to list a profile to cloud servers. The profile then gets one free `blocked` row — paste that creator's video links instead (single TikTok links work reliably). Instagram and Facebook profiles list normally.
- **Instagram and Facebook** links in `directVideoUrl` are the platform's own and **expire after some hours**. Use `fileUrl` for anything you keep.
- **Storage:** without a store name, files live in the run's own key-value store and are removed with your plan's data retention. Give a **Video store name** to keep them until you delete them. Stored files count toward your Apify storage.
- **Size:** the best quality that fits *Max file size* (default 50 MB, up to 100 MB) is saved. A 60-second Reel is typically 5–15 MB.
- **Facebook pages** show their latest ~10–25 videos without a login; older videos need their direct links.
- **Photo posts** (TikTok slideshows, Instagram carousels without video) have no video file and are returned as free `photo_post` rows.
- **Public content only.** The Actor never logs in, never solves captchas and does not use residential proxies. If a platform refuses a video, the row says `blocked` and is free — retry later.
- **YouTube** is not supported.
- Download only content you have the right to use. Respect creators' copyright and each platform's terms.

### FAQ

**Can I download all videos of a TikTok or Instagram account?** Yes — add the profile and raise *Videos per profile* (up to 500). Combine with *Only posts newer than* for a date range.

**Can I run it every day?** Yes. Schedule it with *Only new videos* on and a *Video store name*: each day only new posts are downloaded and paid for, and files accumulate in one store.

**Does it remove the TikTok watermark?** It does not edit videos. TikTok usually offers a clean playback file next to the watermarked "download" file; the Actor takes the clean one when it exists.

**Can I use it from code, Make, Zapier or n8n?** Yes, like any Apify Actor: start it through the Apify API or integrations and read the dataset. Each row's `fileUrl` can be downloaded directly.

# Actor input Schema

## `urls` (type: `array`):

TikTok videos, Instagram Reels / video posts and Facebook videos / Reels — one link per line. Short links (vm.tiktok.com, fb.watch) work. Profile links pasted here are listed like <b>Profiles</b> below. Duplicates are skipped automatically.

## `handles` (type: `array`):

Download a creator's newest videos: <code>@nasa</code>, <code>https://www.tiktok.com/@nasa</code>, <code>https://www.instagram.com/nasa/</code> or a Facebook page <code>https://www.facebook.com/NASA</code>. Plain usernames use <b>Platform for usernames</b>; <code>tiktok:@name</code> / <code>ig:name</code> / <code>fb:name</code> pick the platform per line.

## `profilePlatform` (type: `string`):

Where to look up plain usernames (<code>@name</code> / <code>name</code>). Profile links always use their own platform.

## `maxVideosPerProfile` (type: `integer`):

Newest videos to download from each profile (after the filters below). Instagram and TikTok: up to 500; Facebook: the latest videos a page shows without a login (about 10-25).

## `maxVideos` (type: `integer`):

Stop after this many unique videos in total (links + all profiles).

## `saveFiles` (type: `boolean`):

<b>On</b> (default): each video is saved as an MP4 in a key-value store and the row gets a permanent <code>fileUrl</code> that opens without a login or token (charged as <i>video-file</i>). Works for TikTok, Instagram and Facebook. <b>Off</b>: only the platform's own MP4 link (<code>directVideoUrl</code>, Instagram and Facebook only; it expires after some hours) — cheaper, charged as <i>video-link</i>. TikTok's own links only open with the run's cookies, so TikTok needs this on.

## `maxFileSizeMb` (type: `integer`):

Videos whose best file with sound is larger are not saved and not charged (status <code>too_big</code>). The best quality that fits is taken. A 60-second Reel is usually 5-15 MB.

## `videoStoreName` (type: `string`):

Save the files in a named key-value store in your account (e.g. <code>my-videos</code>). Named stores are kept until you delete them; without a name the files live in this run's own store and expire with your plan's data retention. A schedule overwrites a video's file instead of copying it twice.

## `onlyPostsNewerThan` (type: `string`):

A date (<code>2026-10-01</code>) or a period (<code>7 days</code>, <code>24 hours</code>, <code>2 weeks</code>). Older videos are skipped before download and never charged. Empty = no date filter.

## `onlyPostsOlderThan` (type: `string`):

End of a date range: a date (<code>2026-09-30</code>, that whole day included) or a period (<code>30 days</code> = posted at least 30 days ago). Newer videos are skipped and never charged. Empty = no end date.

## `minViews` (type: `integer`):

Only download videos with at least this many views (0 = all). Videos whose views are not public are kept.

## `skipPinned` (type: `boolean`):

Leave out the videos a creator pinned to the top of the profile (they are often old).

## `sortBy` (type: `string`):

<b>Newest</b> = the most recent videos. <b>Most viewed</b> = the top videos by views among the latest ones listed.

## `captionContains` (type: `string`):

Only download videos whose caption holds one of these words, separated by commas: <code>recipe, #mealprep</code>. Empty = all. Skipped videos get no row and cost nothing.

## `onlyNew` (type: `boolean`):

Skip videos an earlier run of yours already downloaded (remembered in a key-value store named <code>video-downloader-seen</code> in your account). Ideal for a daily schedule that archives the same creators.

## `proxyConfiguration` (type: `object`):

Not needed for most runs: Instagram switches to Apify Proxy (datacenter) by itself when it refuses a connection. Your own proxy URLs can be used. Residential proxy is not used by this Actor (video files are large and residential traffic is billed per GB).

## Actor input object example

```json
{
  "handles": [
    "@nasa"
  ],
  "profilePlatform": "instagram",
  "maxVideosPerProfile": 3,
  "maxVideos": 100,
  "saveFiles": true,
  "maxFileSizeMb": 50,
  "onlyPostsNewerThan": "",
  "onlyPostsOlderThan": "",
  "minViews": 0,
  "skipPinned": false,
  "sortBy": "newest",
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `videos` (type: `string`):

Every row of the run.

## `files` (type: `string`):

The saved MP4 files when no store name was given.

# 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 = {
    "handles": [
        "@nasa"
    ],
    "maxVideosPerProfile": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("tactful_anvil/tiktok-instagram-facebook-video-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 = {
    "handles": ["@nasa"],
    "maxVideosPerProfile": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("tactful_anvil/tiktok-instagram-facebook-video-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 '{
  "handles": [
    "@nasa"
  ],
  "maxVideosPerProfile": 3
}' |
apify call tactful_anvil/tiktok-instagram-facebook-video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tactful_anvil/tiktok-instagram-facebook-video-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/L6gHWRFex6cYlb93k/builds/w04felMQZ5kYPtgc0/openapi.json
