SkillOpen

blotato-posting

Post content to multiple social platforms via the Blotato API. Supports TikTok, Instagram Reels/Carousels, YouTube, X (Twitter) posts and threads, Threads, and LinkedIn.

Front matter
name: blotato-posting
description: "Post content to multiple social platforms via the Blotato API. Supports TikTok, Instagram Reels/Carousels, YouTube, X (Twitter) posts and threads, Threads, and LinkedIn."
disable-model-invocation: true

Blotato Posting Skill

Use this skill when you need to post content to social media platforms via the Blotato API.

Setup

  1. Get a Blotato API key from your Blotato account dashboard.
  2. Set the environment variable: export BLOTATO_API_KEY="your_key_here"
  3. In your Blotato dashboard, connect the platforms you want to post to.

Python Library Usage

from post import post_to_platform

# LinkedIn
result = post_to_platform("linkedin", {
    "text": "Your post text here."
})

# X single post
result = post_to_platform("x", {
    "text": "Your tweet here."
})

# X thread
result = post_to_platform("x", {
    "type": "thread",
    "tweets": ["Thread opener", "Tweet 2", "Tweet 3"]
})

# TikTok
result = post_to_platform("tiktok", {
    "caption": "Caption with hashtags #ai",
    "script": "Spoken script for the video"
})

# Instagram Reel
result = post_to_platform("instagram", {
    "type": "reel",
    "caption": "Caption here"
})

# Instagram Carousel
result = post_to_platform("instagram", {
    "type": "carousel",
    "caption": "Caption here",
    "slides": ["Slide 1 text", "Slide 2 text", "Slide 3 text"]
})

# YouTube
result = post_to_platform("youtube", {
    "title": "Video Title Here",
    "description": "Full description text",
    "pinned_comment": "Optional pinned comment"
})

# Threads
result = post_to_platform("threads", {
    "text": "Your Threads post here."
})

# Check result
if result["status"] == "posted":
    print(f"Posted! ID: {result['post_id']}")
else:
    print(f"Failed: {result['error']}")

CLI Usage

# LinkedIn
python3 post.py --platform linkedin --content '{"text": "Your post here."}'

# X thread
python3 post.py --platform x --content '{"type": "thread", "tweets": ["Tweet 1", "Tweet 2"]}'

# Dry run (prints payload, does not post)
python3 post.py --platform linkedin --content '{"text": "test"}' --dry-run

Per-Platform Content Fields

See platforms.md for the full field reference. Quick summary:

PlatformRequired Fields
tiktokcaption, script
instagram (reel)caption
instagram (carousel)caption, slides (list)
youtubetitle, description
x (post)text
x (thread)tweets (list)
threadstext
linkedintext

Response Format

Every call returns:

{
  "platform": "linkedin",
  "status": "posted",
  "post_id": "abc123",
  "blotato_response": { ... }
}

status is one of: "posted" | "failed" | "dry_run"

On failure, error key is present with the reason.

Error Handling

ErrorCauseFix
HTTP 401Bad API keyCheck BLOTATO_API_KEY value
HTTP 403Platform not connectedConnect platform in Blotato dashboard
HTTP 400Invalid payloadCheck required fields in platforms.md
HTTP 429Rate limitedWait and retry
HTTP 5xxBlotato server errorRetry after a delay
BLOTATO_API_KEY not setMissing env varSet the env var

Files

FilePurpose
post.pyCore Blotato API library + CLI
platforms.mdPer-platform field reference and examples
README.mdSetup guide and quick-start examples

Source: written by One Giant Leap.

Related entries

There are more like this in the members library

The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.