clawbus-tiktok-publish

Publish videos to TikTok using the MyBrandMetrics API. Supports both local video files and remote URLs. Use when you want to upload a video with a title and privacy settings to TikTok.

Audits

Pass

Install

openclaw skills install clawbus-tiktok-publish

TikTok Publisher Skill

This skill allows you to publish videos to TikTok via the MyBrandMetrics API.

How to use

To use this skill, call the publish_tiktok.py script with the required parameters.

Example Usage (Remote URL)

python3 /root/.openclaw/workspace/skills/tiktok-publisher/scripts/publish_tiktok.py --source "https://example.com/video.mp4" --title "My TikTok Title" --privacy-level "SELF_ONLY"

Example Usage (Local File)

python3 /root/.openclaw/workspace/skills/tiktok-publisher/scripts/publish_tiktok.py --source "/root/.openclaw/workspace/videos/my_video.mp4" --title "Hello from local file" --privacy-level "PUBLIC" --wait-for-published

Parameters:

  • --source: (Required) The direct URL or local path of the video file.
  • --title: (Required) The title for your TikTok post.
  • --privacy-level: (Optional) PUBLIC or SELF_ONLY (Default: SELF_ONLY).
  • --wait-for-published: (Optional) If set, the script will poll until the video is fully published.
  • --poll-interval: (Optional) Polling interval in ms (Default: uses API default).
  • --poll-timeout: (Optional) Polling timeout in ms (Default: uses API default).

Configuration

Ensure your config.json file in the workspace root (/root/.openclaw/workspace/config.json) contains the following structure:

{
  "tiktok": {
    "api_key": "YOUR_API_KEY"
  }
}

The api_key is mapped to the X-API-Key header in the API request.