# Check Your Video Before Posting to TikTok (`posh_brewery/tiktok-video-preflight-checker`) Actor

Is your video too long, too large or in the wrong format? Check your video file links and get a simple report showing problems and how to fix them. Try the examples first. No developer fee; Apify usage costs may apply. Independent tool.

- **URL**: https://apify.com/posh_brewery/tiktok-video-preflight-checker.md
- **Developed by:** [SSS YYS](https://apify.com/posh_brewery) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 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

## Check your video before posting to TikTok

**Is your video too long, too large or in the wrong format? Find out before you upload it.**

Paste a link to your own video file. Get a simple report showing **what is OK, what needs fixing and what could not be checked**, with suggestions for what to do next.

- Check the file format, video size, length and frame rate.
- Check up to 20 video links at once.
- Try the included sample videos first — no TikTok login needed.

**Start with the examples:** click **Try for free**, keep **Try the built-in examples** selected, then click **Start**. Open the report to see the results.

**Using your own video?** You need a link directly to the video file, such as an MP4 in your media storage. A TikTok post link will not work. The default download limit is **32 MiB per file**, adjustable up to 64 MiB.

**What this means:** checks are based on TikTok's rules for automated video uploads. This tool checks the video file, not its content, music rights or whether TikTok will approve the post. A passing result does not guarantee publication.

**No developer fee.** Running the tool may use your Apify credits or incur Apify usage costs. This is an independent tool, not an official TikTok product.

Already use **n8n, Make or your own publishing workflow**? You can add this check before uploading and download results as CSV or JSON.

### Try it in three steps

1. Keep **Try the built-in examples** selected and click **Start**.
2. Open **Video checks** to see one result per example.
3. Open **the check report** for details, or download the CSV/JSON files.

The examples are four tiny solid-color videos generated for this project: a supported file, a low-frame-rate file, a frame that is too small, and a longer file that needs the target account's duration limit. No social-media content is downloaded in example mode.

Demo runs also provide a **synthetic sample video** download. You can reuse this generated file to test your own automation without private footage.

### Check your own files

1. Select **Check my video file links**.
2. Add up to 20 **HTTPS direct file links** you have permission to process and tick the permission checkbox.
3. If you know the target account's maximum video duration, enter it in seconds. Leave it at 0 if unknown.

Use a direct link to your media storage. A TikTok, Instagram or YouTube post link is not a direct file link. This Actor does not log in to social platforms, download their posts, publish videos, request passwords or use cookies.

```json
{
  "inputMode": "urls",
  "videoUrls": ["https://your-media-host.example/your-video.mp4"],
  "hasProcessingPermission": true,
  "accountMaxDurationSeconds": 0,
  "maxFileMiB": 32
}
```

Replace the example address with your authorized file link. No external AI or paid media-processing API key is required.

### What gets checked?

These are the documented **TikTok Content Posting API** file rules, checked on **19 November 2026**. They are not a universal statement about every upload method in TikTok's mobile app.

| Check | Implemented rule |
|---|---|
| File container | MP4, MOV or WebM, identified from file data rather than its URL extension |
| Video encoding | H.264, H.265, VP8 or VP9 |
| Frame dimensions | Both width and height between 360 and 4096 pixels |
| Frame rate | Reported average and nominal rate between 23 and 60 FPS |
| Duration | At most 600 seconds for the upload endpoint, subject to the account's actual limit |
| Account duration | Without a supplied limit, files up to 180 seconds pass this check; longer files need more information |
| File size | Documented maximum 4 GB; measured complete file size is compared conservatively |

The downloadable JSON includes the rule source, ruleset identifier, measured values and suggested next steps.

Official source: [TikTok Media Transfer Guide](https://developers.tiktok.com/docs/en/content-posting-api-media-transfer-guide).

### Understand PASS, FAIL and UNKNOWN

- **PASS:** the implemented file checks passed. **This does not guarantee that TikTok will accept or publish the video.**
- **FAIL:** at least one measured property does not meet an implemented file rule.
- **UNKNOWN:** something could not be established, such as an account-specific duration limit, an inaccessible file, an ambiguous container, or a tool download limit.

A completed Actor run can contain FAIL or UNKNOWN results. The run succeeded in producing a report; that is different from the video passing its checks.

The tool does not check app approval, OAuth permissions, account eligibility, TikTok domain ownership, rate limits, moderation, copyright or music rights. A file can meet these technical requirements and still be rejected. No legal-compliance certification is provided.

Frame rates and duration are taken from media metadata; frames are not audited individually and full-file decode integrity is not verified. Audio encoding and subjective image/sound quality are not part of the current rule checks. A vertical 9:16 ratio is not treated as mandatory in this API rule.

An unusual reported nominal/base frame rate can occur with variable-frame-rate media. If the average rate is in range but the nominal value is outside it, the result is UNKNOWN rather than an unsupported claim of definite failure.

### Files and limits

- Default download limit: **32 MiB per file**; configurable from 1 to 64 MiB.
- Maximum **20 links** and **128 MiB total downloaded per run**.
- A bounded download time budget and per-file metadata inspection timeout are enforced.
- Files above a tool limit return UNKNOWN, not a claim that TikTok rejected them.
- Only HTTPS on port 443, without embedded username/password, is supported. Private/local network addresses and unsafe redirect destinations are blocked.
- Up to three redirects may be followed to inspect a file. TikTok's own PULL_FROM_URL method does not accept redirects; any observed redirects are shown separately and must be considered in your upload setup.

Larger videos need a different inspection route. Do not assume this Actor's smaller resource limits are TikTok's upload limits.

### Connect it to an automation

A typical workflow is:

**Your media storage → Run this Actor → Read one row per video → Route PASS / FAIL / UNKNOWN separately → Your existing publishing process**

Use the Apify API or the Apify integration in your automation tool. The **API** tab contains the exact request for this Actor. Match results by `fileId`: `video-001` is the first input URL, `video-002` is the second, and so on. Original URLs are not copied into output rows.

### Downloads

- **report.html:** readable results and suggested fixes.
- **checks.csv:** one summary row per video.
- **report.json:** complete measured properties, rule checks and limitations.
- **Default dataset:** one structured result per input file.

### Privacy and permissions

Submit only files you own or are authorized to process. Media bytes are handled temporarily and are not saved by this Actor. No original videos are included in reports, and no video data is sent to an external AI service.

**Your original links remain in your Apify run input.** Apify inputs, logs, datasets and reports follow the platform's storage and sharing settings. Signed links may contain access credentials, so use appropriately scoped, short-lived links and manage your run storage. This is not a promise that no data is retained anywhere.

### 中文说明

发 TikTok 前，先看看视频是不是太长、太大，或格式不合适。把自己的视频文件链接放进来，就能看到哪里有问题、建议怎么改。第一次可以直接用内置示例，不需要登录 TikTok。

每次最多检查 20 个视频。需要能直接打开视频文件的链接，普通 TikTok 帖子链接不能用。默认每个视频最多下载 32 MiB，可调到 64 MiB。这是按 TikTok 自动上传接口的文件要求检查，不检查内容、音乐版权，也不能保证一定发布成功。

PASS 只代表已实现的文件检查通过，不保证一定能发布成功。FAIL 表示发现明确的技术问题；UNKNOWN 表示信息不足或遇到本工具的下载限制。默认每个文件最多下载 32 MiB，最高可设为 64 MiB，每次合计最多 128 MiB。

开发者不收费；运行账号仍可能消耗 Apify 的计算和存储额度。测试运行和开发者自己的运行不代表真实外部用户或付费客户。

### Feedback

Use the Issues tab to report a problem. Include the rule/check name, a sanitized metadata example and the expected behavior. Do not post private media links, tokens or confidential files in public issues.

# Actor input Schema

## `inputMode` (type: `string`):

The example checks four tiny, generated files. Your own files require HTTPS direct links, not TikTok post links.

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

One HTTPS direct media URL per line, up to 20. Use files you own or have permission to process. No passwords or cookies. Links may be retained in your Apify run input; avoid confidential URLs. Default file limit: 32 MiB; maximum 64 MiB.

## `hasProcessingPermission` (type: `boolean`):

Required when checking your own links. Only submit media you are authorized to process.

## `accountMaxDurationSeconds` (type: `integer`):

Optional: the maximum returned by your own TikTok creator-info query. 0 means unknown. Files over 180 seconds then get UNKNOWN for duration; the tool never logs in to fetch this limit.

## `maxFileMiB` (type: `integer`):

A tool limit, not a TikTok rule. Files above this limit get UNKNOWN. Each run downloads at most 128 MiB in total and uses a bounded download time budget.

## Actor input object example

```json
{
  "inputMode": "demo",
  "hasProcessingPermission": false,
  "accountMaxDurationSeconds": 0,
  "maxFileMiB": 32
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `json` (type: `string`):

No description

## `records` (type: `string`):

No description

## `sample` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("posh_brewery/tiktok-video-preflight-checker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("posh_brewery/tiktok-video-preflight-checker").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 '{}' |
apify call posh_brewery/tiktok-video-preflight-checker --silent --output-dataset

```

## MCP server setup

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

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/FEYlqEuFfwaMFJWCq/builds/XKRHkeNUd6ZRdgXqO/openapi.json
