API Reference
TikTok API
Post videos, schedule content, and manage multiple TikTok accounts with a single API call.
Quick Start
Get started in 3 steps
Get API Key
Sign up for free and get your API key in seconds.
Connect Account
Use our OAuth flow to connect TikTok accounts.
Start Posting
Make API calls to post content to TikTok.
const response = await fetch('https://getlate.dev/api/v1/posts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: 'Check out this tutorial! #coding #api',
mediaItems: [{ type: 'video', url: 'https://example.com/video.mp4' }],
platforms: [{
platform: 'tiktok',
accountId: 'acc_abc123',
platformSpecificData: {
tiktokSettings: {
privacy_level: 'PUBLIC_TO_EVERYONE',
allow_comment: true,
allow_duet: true,
allow_stitch: true
}
}
}],
scheduledFor: '2025-01-15T14:00:00Z'
})
});
const post = await response.json();
console.log(post.post._id); // '65f1c0a9e2b5af0012ab34cd'Endpoints
TikTok Endpoints
/v1/postsCreate or schedule a TikTok video post
/v1/posts/{id}Get status and details of a TikTok post
/v1/posts/{id}Cancel a scheduled TikTok post
/v1/profilesList all connected TikTok accounts
Media Specs
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Video | MP4, MOV, WebM | 287.6 MB | 3 sec - 10 min duration |
| Aspect Ratio | 9:16 recommended | 1080x1920 px | Vertical video performs best |
| Audio | AAC | 128kbps+ | Required for video posts |
Late automatically transcodes and optimizes media for TikTok's requirements.
Rate Limits
API Limits
TikTok's Content Posting API has strict rate limits. Late automatically queues and retries requests, handling backoff logic so you don't have to.
Late handles all rate limiting automatically. We queue and retry requests as needed.
Capabilities
Features
- Post videos to TikTok Creator and Business accounts
- Schedule posts for optimal engagement times
- Automatic video transcoding to TikTok specs
- Multi-account management from one API
- Webhook notifications for post status
- Caption and hashtag support
- Draft mode for content approval workflows
Response
Response Example
{
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"status": "scheduled",
"content": "Check out this tutorial! #coding #api",
"scheduledFor": "2025-01-15T14:00:00Z",
"platforms": [{
"platform": "tiktok",
"accountId": { "_id": "acc_abc123", "username": "@yourhandle" },
"status": "pending"
}],
"createdAt": "2025-01-10T10:30:00Z"
},
"message": "Post scheduled successfully"
}Start building with TikTok API
Skip the TikTok Content Posting API complexity. Late handles OAuth, video encoding, and rate limits so you can ship faster.
Free tier available • No credit card required • 99.97% uptime