Network API

TikTok API for Posting, Scheduling, and Analytics

Ayrshare's TikTok API lets developers publish videos and photo carousels to TikTok personal and business accounts via a single REST endpoint. It supports scheduled posts, drafts, content labels, comment management, and analytics across 14+ social networks through one integration.

Your users link their own TikTok accounts through an OAuth flow inside your product, on Ayrshare's audited TikTok app. Posts go out public from day one, without your own TikTok audit.

One integration, 14+ networks, 30M+ API calls a day.

X
Facebook
Instagram
TikTok
Bluesky
YouTube
LinkedIn
Pinterest
Telegram
Reddit
Threads
Snapchat
Google Business
WhatsApp

14+

networks on one integration

10 GB

max video upload

30M+

API calls handled daily

99.99%

API uptime

14+

networks on one integration

10 GB

max video upload

30M+

API calls handled daily

99.99%

API uptime

Before you build

What Do You Need to Use the TikTok API?

TikTok has several APIs, and posting runs through one of them: the Content Posting API, with Direct Post for publishing and Upload for sending drafts to a creator's inbox. The Display API reads profile and video data, and the Business API covers ads. Until TikTok audits your app, the Content Posting API keeps every post private and lets only 5 users post through your app in any 24 hours.

Access

A TikTok developer app with the Content Posting API, then an audit that checks your app against TikTok's terms and content sharing guidelines. Apps built only for internal or test use don't pass.

Cost

TikTok publishes no fee for the Content Posting API. The cost is the audit, building to TikTok's posting UX rules, and yearly reauthorization for every user.

Account types

Personal and business accounts. Business accounts are always public, so followers-only posts need a private personal account.

Key limits

About 15 posts per creator per day, shared across every app that creator uses, and 6 posts per minute.

A content calendar of scheduled TikTok videos with a recommended posting time and a Post now button

Post and schedule TikTok videos in your language

Each sample publishes a TikTok video now, then schedules a second one. Same endpoint, same JSON, in Node.js, Python, PHP, Java, Go, Ruby, C#, or plain cURL. Add a Profile-Key header to post for one of your users.

# 1. Publish a TikTok video nowcurl -X POST https://api.ayrshare.com/api/post \  -H "Authorization: Bearer $AYRSHARE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "post": "Behind the scenes of launch week #buildinpublic",    "platforms": ["tiktok"],    "mediaUrls": ["https://example.com/launch.mp4"]  }'
# 2. Schedule one for later (ISO 8601, UTC)curl -X POST https://api.ayrshare.com/api/post \  -H "Authorization: Bearer $AYRSHARE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "post": "Friday product drop #newrelease",    "platforms": ["tiktok"],    "mediaUrls": ["https://example.com/drop.mp4"],    "scheduleDate": "2026-11-06T17:00:00Z"  }'
Specs

TikTok API Limits: Post Types, Media, and Characters

TikTok's rules in one place. The full list lives in the TikTok media guidelines and the TikTok publishing options.

Video

10 minmax length

MP4, MOV, or WebM, 3 seconds to 10 minutes, 23 to 60 FPS, in 9:16 or 16:9.

Images

20 MBper image

JPG, JPEG, or WEBP. WebP is converted to JPEG automatically. PNG isn't accepted. 1080 x 1920, 1920 x 1080, or square up to 1080 x 1080.

Post types

35photos per carousel

Video posts, photo carousels, and drafts sent to the creator's TikTok inbox. One post can't mix photos and video.

Captions

2,200characters

Hashtags and @mentions count. TikTok drops line breaks.

Accounts

1 yearbetween reauthorizations

Personal and business TikTok accounts. Each user reauthorizes once a year, with a reminder 15 days before.

Labels

3content labels

AI-generated, paid partnership, or promotional content. The AI label can't be removed after posting.

Processing

1 to 2 minto go live

Posts start as pending. A webhook reports the live TikTok URL once processing finishes.

Scheduling and rate limits

15posts per day per account

Pass a scheduleDate to publish later. TikTok allows 6 posts per minute; Ayrshare allows 300 API calls per 5 minutes per profile.

what else can you send to TikTok?

Post up to 35 photos in one carousel

Choose the cover image, add a title, and let TikTok add music.

Why Ayrshare

Why Use Ayrshare Instead of the TikTok API Directly?

Ayrshare's TikTok app is already audited, so your product sends one request and your users' posts go out public. Ayrshare runs TikTok's creator-info check, upload, and processing flow, renews access tokens that TikTok expires every 24 hours, and sends a webhook with the TikTok ID and URL once the video is live. When TikTok changes its API, the fix ships on our side, not in your sprint.

For a step-by-step walkthrough, read How to Post to TikTok with an API.

See TikTok Processing and Webhooks
  1. Step 1

    Your app sends one request

    POST /post with the video URL and tikTokOptions. Returns a pending ID right away.

  2. Step 2

    Ayrshare runs the TikTok flow

    Creator-info check, chunked upload, processing, and the 24-hour token refresh.

  3. Live in 1m 42s

    Your webhook gets the result

    TikTok video ID, postUrl, and status, usually within 1 to 2 minutes. Comments arrive by webhook too.

After you publish

Beyond Posting: The Rest of the TikTok Lifecycle

When your product needs TikTok analytics or comment moderation, it's already on the same integration. No second vendor, no second auth flow.

TikTok account analytics (followers, video views, likes, profile views) beside a comment thread with a reply box

Analytics

Post and account metrics in the same JSON shape as every other network, refreshed every 24 to 48 hours. The account owner turns on analytics in the TikTok app.

Analytics API

Comments

Read, reply, hide, and delete from one endpoint, next to Instagram, YouTube, and the rest.

Engagement API

History

Pull a creator's past TikTok videos with metrics, including ones not posted through Ayrshare.

History API

Pre-publish checks

Check a post for banned hashtags, duplicate content, and posting limits before it reaches your customer's account.

Validate docs

Not available on TikTok

Direct messages, and deleting a published TikTok through the API.

See every network you can reach with the same integration on the supported networks page.

TikTok API questions

Yes. Ayrshare's TikTok API lets developers publish videos and photo carousels to TikTok personal and business accounts via a single REST endpoint. It supports scheduled posts, drafts, content labels, comment management, and analytics across 14+ social networks through one integration. You send a video URL to the /post endpoint, and a webhook tells you when TikTok has published it, usually within 1 to 2 minutes.

Yes. Send up to 35 JPG or JPEG images in one post, up to 20 MB each. You can choose the cover image and add a title. WebP images are converted for you, but PNG isn't accepted.

Yes. Pass a scheduleDate in ISO 8601 UTC format and Ayrshare publishes the video or photo post at that time. Webhooks report the final status, including the live TikTok URL.

Both personal and business accounts. Your users link their own account through a hosted OAuth page, and you post for them by sending their Profile-Key. Each user reauthorizes once a year, with a reminder 15 days before.

TikTok allows 6 posts per minute and 15 per day for each account through its API, so spread bulk posting with scheduled dates. Ayrshare's own limit is 300 calls per 5 minutes per profile, not shared across your organization. See handling TikTok 429 errors.

Yes, for each video and for the whole account. TikTok refreshes analytics every 24 to 48 hours and reports account totals over a rolling 60 days. The account owner must turn on analytics in the TikTok app.

Add TikTok to your product this week.

Get an API key, publish your first TikTok video, and turn on the other networks with the same call when you need them.