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.Get API KeySign up for free and get your API key in seconds.
- 2.Connect AccountUse our OAuth flow to connect TikTok accounts.
- 3.Start PostingMake API calls to post content to TikTok.
// 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
Create, schedule, or draft a TikTok video or photo post
Get status, details, and platform-specific metadata of a TikTok post
Update a scheduled TikTok post (content, timing, or settings)
Cancel a scheduled or delete a draft TikTok post
List all connected TikTok accounts with usernames and follower counts
Get views, likes, comments, shares, and engagement rate for a TikTok post
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Video | MP4, MOV, WebM | 287.6 MB | 3 sec – 10 min duration. Vertical (9:16) recommended. |
| Photos | JPEG, JPG, WebP | 20 MB per image | Up to 35 images per carousel post. PNG not supported by TikTok. |
| Aspect Ratio | 9:16 recommended | 1080×1920 px | Vertical content gets significantly more reach on TikTok |
| Audio | AAC | 128 kbps+ | Required for video posts. Zernio auto-transcodes if needed. |
| Caption | Plain text + hashtags | 2,200 characters | TikTok 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
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

