Models/Social Media API

Social Media API — Publish to 8 Platforms

Live10 endpoints, one API key

Muapi's social media API publishes videos and images to Facebook, Instagram, LinkedIn, Pinterest, Threads, TikTok, X (Twitter), and YouTube from a single REST integration — connect each account once, then post to any platform with the same request pattern and one API key.

What Is a Social Media Publish API?

A social media publish API lets an application post videos and images to social platforms programmatically instead of a human uploading through each platform's own app or dashboard. That matters for any product that generates or schedules content on a user's behalf — an AI content pipeline, a social media management tool, or an internal marketing workflow — since building and maintaining eight separate platform integrations (each with its own OAuth flow, upload format, and rate limits) is a real engineering cost on its own.

Muapi exposes eight platforms — Facebook, Instagram, LinkedIn, Pinterest, Threads, TikTok, X, and YouTube — behind the same REST pattern used by every other Muapi endpoint: one API key, one request shape, no separate contract or SDK per platform.

How This Differs from Ayrshare, Buffer, or Postiz

Established unified social APIs like Ayrshare ($149–$599/mo plus per-profile overage), Buffer, and Postiz ($29–$99/mo tiers) bundle publishing with scheduling, analytics, and inbox/DM management, billed as a monthly subscription or by connected-profile count. Muapi's social endpoints cover one job — publishing — billed per call: $0.01–$0.02 per publish, no subscription, no per-profile pricing tier, and no minimum commitment. If a product only needs to post content it already generated or scheduled elsewhere, that is a materially smaller bill than a $29+/mo platform built around scheduling and analytics it may not use.

Key Capabilities

8 Platforms, One Integration

Facebook, Instagram, LinkedIn, Pinterest, Threads, TikTok, X, and YouTube behind the same request/response pattern and API key.

Platform-Specific Controls

TikTok's privacy_level/allow_duet/allow_stitch, Pinterest's board_id, Instagram's share_to_feed, and X's reply_settings are all exposed as real request fields, not flattened away.

Full YouTube Lifecycle

Upload a video, then separately set its thumbnail or update its title, description, tags, category, and privacy — three dedicated endpoints, not just an initial upload.

Pay Per Publish Call

$0.01–$0.02 per call, no monthly subscription, no per-connected-profile pricing tier.

Endpoint Reference

EndpointPriceRequired Fields
facebook-publish$0.02 / callaccount_id, media_url
instagram-publish$0.02 / callaccount_id, media_url
linkedin-publish$0.02 / callaccount_id, media_url
pinterest-publish$0.02 / callaccount_id, media_url
threads-publish$0.02 / callaccount_id, media_url
tiktok-publish$0.02 / callaccount_id, media_url
x-publish$0.02 / callaccount_id, media_url
youtube-publish$0.01 / callaccount_id, media_url, title
youtube-set-thumbnail$0.01 / callaccount_id, video_id, thumbnail_url
youtube-update-metadata$0.01 / callaccount_id, video_id

How to Call the Social Media API

  1. Connect an account. Link the target platform account once from your Muapi dashboard — this issues an account_id you reuse on every publish call.
  2. Submit the request. POST /api/v1/{platform}-publish with account_id and a public media_url, plus any platform-specific fields (caption, privacy level, board, etc.).
  3. Poll for completion. Check GET /api/v1/predictions/{request_id}/result until status is completed.
curl -X POST https://api.muapi.ai/api/v1/tiktok-publish \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "account_id": 12345,
    "media_url": "https://example.com/my-clip.mp4",
    "title": "Behind the scenes of our latest drop",
    "privacy_level": "PUBLIC_TO_EVERYONE"
  }'
import requests

response = requests.post(
    "https://api.muapi.ai/api/v1/tiktok-publish",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={
        "account_id": 12345,
        "media_url": "https://example.com/my-clip.mp4",
        "title": "Behind the scenes of our latest drop",
        "privacy_level": "PUBLIC_TO_EVERYONE",
    },
)
request_id = response.json()["request_id"]

result = requests.get(
    f"https://api.muapi.ai/api/v1/predictions/{request_id}/result",
    headers={"x-api-key": "YOUR_API_KEY"},
)
print(result.json())

Frequently Asked Questions

What is the Muapi Social Media API?

A REST API that publishes videos and images to Facebook, Instagram, LinkedIn, Pinterest, Threads, TikTok, X, and YouTube from one integration and one API key.

How is this different from Ayrshare, Buffer, or Postiz?

Those bill a monthly subscription ($29–$599/mo) or per connected profile. Muapi's endpoints are pay-per-call ($0.01–$0.02 per publish), covering publishing only — not scheduling, analytics, or inbox/DM management.

Do I need to connect my social accounts first?

Yes — connect each account once from your Muapi dashboard, then reference its account_id on every publish call.

Can I post the same video to every platform with one call?

Each platform is its own endpoint so you keep access to platform-specific fields (TikTok's privacy_level, Pinterest's board_id, etc.), but every endpoint shares the same request/response shape, so multi-platform posting is a loop over the same media_url.

How much does it cost to publish a post via API?

$0.02 per call on Facebook, Instagram, LinkedIn, Pinterest, Threads, TikTok, and X; $0.01 per call on the three YouTube endpoints (upload, thumbnail, metadata).

Can I update a YouTube video after it's published?

Yes — youtube-set-thumbnail replaces the thumbnail and youtube-update-metadata changes the title, description, tags, category, privacy, or made-for-kids status on an already-published video.