SocialAPI.ai

The TikTok API for publishing, comments and mentions

Publish to TikTok, then answer every comment and mention, through one API.

  • Free tier, no credit card
  • Instant API key
  • MCP server included
On TikTok

ledge.skate

New white lows just landed. In store Saturday, all sizes.

POST/v1/posts201 Created

Capabilities: What you can build on TikTok

Every capability is one endpoint, the same one you call on every other platform.The screens show where each call lands.

  • Comments

    List comments and their replies on your TikTok posts, reply, post a new comment, hide or like comments, and delete your own comments.

    • GET/v1/inbox/comments/{postId}
    • POST/v1/inbox/comments/{postId}
    31 comments
    • maya.r

      Do these come in black?

      2h

      ledge.skateCreator

      Yes, black with a gum sole, sizes 36 to 46.

      1m
    • jin.k

      Skated mine all weekend, the grip is unreal.

      5hLiked by creator
    • View hidden comments (1)
  • Mentions

    Retrieve the TikTok posts and comments that mention your account in one list, and reply to the comments that mention you.

    • GET/v1/accounts/{id}/mentions
    • caption mentions
    • comment mentions
    • reply
  • Publishing

    Publish videos and photo posts of 2 to 35 images, and list what's published back through GET /v1/posts.

    • POST/v1/posts
    • GET/v1/posts
    • video
    • photo, 2 to 35 images
    • list published
  • Webhooks

    New comments on your TikTok posts arrive at your webhook endpoint as comment.received events, in the same envelope as every other platform.

    Webhook events

    • comment.received

On every platform

  • Agent-ready

    Every TikTok capability is a typed tool on the SocialAPI.ai MCP server.

    • social_api_validate_post
    • social_api_list_post_comments
    • social_api_retry_post
  • One API key

    The key that calls TikTok calls all 13 platforms.

    Authorization: Bearer sapi_key_…
  • Predictable errors

    The same status codes everywhere, whatever the platform behind them.

    • 401expired token
    • 429rate limited
    • 501not on this platform

Call the TikTok API

Publish a video to TikTok

Upload a video, then call POST /v1/posts. SocialAPI.ai validates the post against TikTok's rules before sending it and returns a normalized response once TikTok finishes publishing.

curl -X POST https://api.social-api.ai/v1/posts \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "targets": [{ "account_id": "<tiktok-account-id>" }],
    "text": "Behind the scenes of our latest build",
    "media_ids": ["<uploaded-video-media-id>"],
    "platform_data": {
      "tiktok": { "privacy_level": "PUBLIC_TO_EVERYONE" }
    },
    "publish_now": true
  }' | jq

# Response
{
  "id": "<post-id>",
  "status": "published",
  "targets": [
    {
      "platform": "tiktok",
      "account_id": "<tiktok-account-id>",
      "status": "published",
      "platform_post_id": "7380000000000000001"
    }
  ]
}

Comparison: The official API vs one API key

AspectThe TikTok API for Business (direct)With SocialAPI.ai
Getting accessThe TikTok API for Business (direct)Register an app on the TikTok API for Business portal and pass TikTok's access reviews for the Accounts and Mentions APIs.With SocialAPI.aiNo application. Connect a TikTok account through OAuth on the free tier today.
Comments and mentionsThe TikTok API for Business (direct)Separate endpoints per resource, a video id passed with every comment write, and errors returned as HTTP 200 with a code in the body.With SocialAPI.aiThe same inbox endpoints and Interaction shape as Instagram and YouTube, with standard HTTP status codes.
Uploading videoThe TikTok API for Business (direct)Chunked upload protocol with initialization, ranged PUTs, and status polling.With SocialAPI.aiUpload once through the unified media endpoint; chunking and polling happen behind it.
Multi-platformThe TikTok API for Business (direct)A TikTok-only integration with its own auth, retries, and data shapes.With SocialAPI.aiThe same POST /v1/posts call that publishes to Instagram, Threads, and LinkedIn.

In depth: How the TikTok API works on SocialAPI.ai

Publish videos and photo posts to TikTok, read and reply to the comments they get, and track the posts and comments that mention you, without registering a TikTok app or passing TikTok's access reviews. SocialAPI.ai's managed app covers you, and the same /v1/posts and inbox endpoints you use for every other platform cover TikTok.

TikTok comment management

Read every comment on your TikTok posts through the same inbox endpoint you use for Instagram and YouTube, with each comment's replies one call away. Reply to a comment, post a new top-level comment, hide or like comments, and delete your own comments. New comments also arrive at your webhook endpoint as comment.received events, so a support tool or agent can answer them as they come in.

Mention tracking and replies

Fetch the TikTok posts whose captions mention your account and the comments that mention it, merged into one list in the unified Interaction shape. Reply to a comment mention through the same reply call used for Instagram and Facebook mentions, to build brand monitoring, UGC collection, or response workflows.

No TikTok developer account required

SocialAPI.ai's managed TikTok app already holds TikTok's Accounts and Mentions permissions, covering profile, posts, comments, and mentions. Connect a TikTok account through OAuth and start publishing and replying without registering your own app or waiting on TikTok's reviews.

Video and photo publishing

Publish a video by uploading the file once, then calling POST /v1/posts, or publish a photo post of 2 to 35 JPEG or WebP images with media_type set to photo. Videos publish publicly, and photo posts take a privacy_level under platform_data.tiktok. SocialAPI.ai checks captions, image counts, formats, and privacy values before the request reaches TikTok and returns a clear error when one is off.

List published videos

Fetch a connected account's published TikTok videos through GET /v1/posts, the same endpoint used for every other platform. Posts published through SocialAPI.ai are stored immediately, and background sync also pulls in videos published natively on TikTok, including view, like, comment, and share counts.

The same endpoint as every other platform

Publishing to TikTok uses the same POST /v1/posts call, with targets and media_ids, that already publishes to Instagram, LinkedIn, and every other connected platform. TikTok-specific fields like privacy_level live under platform_data.tiktok, so the core of your integration code doesn't change per platform.

Simple, honest pricing.

Reading comments, DMs, and mentions is free and unlimited on every plan. Paid plans start at $29/mo with unlimited posts and interactions. The free tier needs no credit card.

Frequently asked questions

What developers ask before they ship TikTok.

Does TikTok have a public API?

Yes. The TikTok API for Business lets approved apps publish posts, read and reply to comments, and track mentions. Getting direct access means registering an app on TikTok's Business portal and passing TikTok's access reviews; SocialAPI.ai's managed app has already done both.

Is the TikTok API free?

TikTok does not charge for API access, but using it through your own app requires passing TikTok's access reviews first. SocialAPI.ai's managed connector skips that: start on the free tier, or move to a paid plan from $29/mo for higher volume.

Can I post videos to TikTok through an API?

Yes. POST /v1/posts publishes a video or a photo post to a connected TikTok account using pre-uploaded media IDs. SocialAPI.ai validates the post against TikTok's rules before the request reaches TikTok.

Can I read TikTok comments through the API?

Yes. List the comments on any of your TikTok posts and their replies, reply, hide or like comments, and delete your own comments through the same inbox endpoints used for every other platform. New comments also arrive as comment.received webhook events.

Can I track TikTok mentions through the API?

Yes, for TikTok Business Accounts. The mentions endpoint returns the posts and comments that mention your account in one list, and you can reply to a comment mention. TikTok surfaces a mention 24 to 48 hours after it happens.

Do I need a TikTok developer account?

No. SocialAPI.ai's managed connector already registered a TikTok app and passed TikTok's access reviews, so you connect a TikTok account through OAuth without registering or reviewing your own app.

Can AI agents post to TikTok?

Yes. The built-in MCP server exposes publishing, comments, and mentions as tools, so Claude and other MCP-capable agents can publish TikTok posts and answer comments inside your existing approval flow.

Every other platform, one API: Every other platform, one API

Same key, same shapes, same webhook.

Ready to unify your social interactions?

Free tier available. No credit card required. Ships with the MCP server.