API Reference

TikTok API

TikTok's Content Posting API requires developer app registration, OAuth 2.0 flows, chunk uploads, and async status polling. Zernio replaces all of that with one POST request. No TikTok developer app needed.

Quick Start

  1. 1.
    Get API Key
    Sign up for free and get your API key in seconds.
  2. 2.
    Connect Account
    Use our OAuth flow to connect TikTok accounts.
  3. 3.
    Start Posting
    Make API calls to post content to TikTok.
Post a TikTok video (Node.js)
JavaScript
// Schedule a TikTok video with privacy and engagement settings
const response = await fetch('https://zernio.com/api/v1/posts', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    content: 'How to build a social media app in 2026 \u{1F680} #coding #developer #api',
    mediaItems: [{ type: 'video', url: 'https://example.com/tutorial.mp4' }],
    platforms: [{
      platform: 'tiktok',
      accountId: 'acc_abc123',
      platformSpecificData: {
        tiktokSettings: {
          privacy_level: 'PUBLIC_TO_EVERYONE',
          allow_comment: true,
          allow_duet: true,
          allow_stitch: true
        }
      }
    }],
    scheduledFor: '2026-03-15T14:00:00Z',
    timezone: 'America/New_York'
  })
});

const post = await response.json();
console.log(post.post._id); // 'post_65f1c0a9e2b5af'

TikTok Endpoints

POST/v1/posts

Create, schedule, or draft a TikTok video or photo post

GET/v1/posts/{id}

Get status, details, and platform-specific metadata of a TikTok post

PUT/v1/posts/{id}

Update a scheduled TikTok post (content, timing, or settings)

DELETE/v1/posts/{id}

Cancel a scheduled or delete a draft TikTok post

GET/v1/profiles

List all connected TikTok accounts with usernames and follower counts

GET/v1/analytics/{postId}

Get views, likes, comments, shares, and engagement rate for a TikTok post

Media Requirements

TypeFormatMax SizeNotes
VideoMP4, MOV, WebM287.6 MB3 sec – 10 min duration. Vertical (9:16) recommended.
PhotosJPEG, JPG, WebP20 MB per imageUp to 35 images per carousel post. PNG not supported by TikTok.
Aspect Ratio9:16 recommended1080×1920 pxVertical content gets significantly more reach on TikTok
AudioAAC128 kbps+Required for video posts. Zernio auto-transcodes if needed.
CaptionPlain text + hashtags2,200 charactersTikTok ignores line breaks in captions

Zernio automatically transcodes and optimizes media for TikTok's requirements.

API Limits

TikTok enforces strict rate limits and async video processing. Zernio handles queuing, backoff, and retries automatically. You get a webhook when your post goes live.

Zernio handles all rate limiting automatically. We queue and retry requests as needed.

Features

  • Post videos to TikTok Creator and Business accounts via REST API
  • Post photo carousels with up to 35 images per TikTok post
  • Schedule TikTok posts for any future date and time with timezone support
  • Automatic video transcoding to meet TikTok's encoding requirements
  • Multi-account management - connect unlimited TikTok accounts from one API key
  • Control privacy settings: public, followers-only, friends-only, or private
  • Enable or disable comments, duets, and stitches per post
  • AI-generated content labeling support for compliance
  • Branded content and promotional content toggle support
  • Webhook notifications when TikTok finishes processing your video
  • Draft mode - create TikTok drafts for content approval workflows
  • Cross-post to TikTok + 12 other platforms in a single API call
  • No TikTok developer app registration required - Zernio handles all platform approvals
  • Caption and hashtag support with 2,200 character limit

Response Example

Post a TikTok video (Python)
Python
import requests

# Schedule a TikTok video post with Zernio's API
response = requests.post(
    "https://zernio.com/api/v1/posts",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json={
        "content": "Python + TikTok API = \u{1F525} #python #automation",
        "mediaItems": [
            {"type": "video", "url": "https://example.com/demo.mp4"}
        ],
        "platforms": [{
            "platform": "tiktok",
            "accountId": "acc_abc123",
            "platformSpecificData": {
                "tiktokSettings": {
                    "privacy_level": "PUBLIC_TO_EVERYONE",
                    "allow_comment": True,
                    "allow_duet": True,
                    "allow_stitch": True
                }
            }
        }],
        "scheduledFor": "2026-03-15T14:00:00Z",
        "timezone": "Europe/London"
    }
)

print(response.json())
# {"post": {"_id": "post_65f1c0a9e2b5af", "status": "scheduled"}}

Start building with TikTok API

Free tier available · No credit card required · 99.97% uptime

SOC 2 CompliantGDPR Compliant