capabilities.work

Direct Post a Video from a URL

A 3-step recipe with TikTok for Developers. We can help you get access.

Recipe · 3 steps

Direct Post a Video from a URL

Direct post a video from a URL and poll until publishing completes.

  1. Query the creator's content posting settings to confirm the requested privacy level and interaction settings are permitted.
  2. Initiate a direct post that pulls the video from the supplied URL and applies the caption and privacy/interaction settings.
  3. Poll the publish status using the publish_id. Repeats while the job is still processing and branches on the terminal states.
What you'll need to have ready
  • accessToken: OAuth 2.0 user access token with video.publish scope.
  • videoUrl: Publicly reachable URL of the video to pull and publish.
  • title: Caption/title for the post (max 2200 chars).
  • privacyLevel: Privacy level for the post.
  • disableComment: Whether to disable comments on the post.
  • disableDuet: Whether to disable duet for the post.
  • disableStitch: Whether to disable stitch for the post.
For your developer

Arazzo workflow tiktok-for-developers:direct-post-video, 3 operations: queryCreatorInfo → initVideoPublish → getPublishStatus. Specs on APIs.io.