← 返回
内容创作 Key

Publora Youtube

Upload and publish video content to YouTube using the Publora API. Use this skill when the user wants to upload or schedule YouTube videos via Publora.
使用 Publora API 将视频上传并发布至 YouTube,适用于通过 Publora 上传或预约视频的场景。
sergebulaev
内容创作 clawhub v1.2.0 2 版本 100000 Key: 需要
★ 0
Stars
📥 964
下载
💾 33
安装
2
版本
#latest

概述

Publora — YouTube

YouTube platform skill for the Publora API. For auth, core scheduling, media upload, and workspace/webhook docs, see the publora core skill.

Base URL: https://api.publora.com/api/v1

Header: x-publora-key: sk_YOUR_KEY

Platform ID format: youtube-{channelId}

Platform Limits (API)

PropertyLimitNotes
------------------------
Title100 characters
Description5,000 charactersFirst 150 chars visible
Video duration12 hours
Video size256 GB
Video formatsMP4, MOV, AVI, WebM
Images❌ Video only
Text only❌ Video required
Privacypublic / unlisted / privateDefault: public

Upload a YouTube Video

YouTube requires video and supports privacy settings and metadata:

// Step 1: Create post with YouTube-specific platform settings
const post = await fetch('https://api.publora.com/api/v1/create-post', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-publora-key': 'sk_YOUR_KEY' },
  body: JSON.stringify({
    content: 'Your video description here. Full details about what this video covers.',
    platforms: ['youtube-UC_CHANNEL_ID'],
    scheduledTime: '2026-03-20T15:00:00.000Z'
  })
}).then(r => r.json());

// Step 2: Get upload URL
const upload = await fetch('https://api.publora.com/api/v1/get-upload-url', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-publora-key': 'sk_YOUR_KEY' },
  body: JSON.stringify({
    postGroupId: post.postGroupId,
    fileName: 'video.mp4',
    contentType: 'video/mp4',
    type: 'video'
  })
}).then(r => r.json());

// Step 3: Upload video to S3
await fetch(upload.uploadUrl, {
  method: 'PUT',
  headers: { 'Content-Type': 'video/mp4' },
  body: videoFileBytes
});

Python Example

import requests

HEADERS = { 'Content-Type': 'application/json', 'x-publora-key': 'sk_YOUR_KEY' }

# Step 1: Create post (content = video description)
post = requests.post('https://api.publora.com/api/v1/create-post', headers=HEADERS, json={
    'content': 'Complete guide to building REST APIs in 2026. We cover authentication, rate limiting, and best practices.',
    'platforms': ['youtube-UC_CHANNEL_ID'],
    'scheduledTime': '2026-03-20T15:00:00.000Z'
}).json()

# Step 2: Get upload URL
upload = requests.post('https://api.publora.com/api/v1/get-upload-url', headers=HEADERS, json={
    'postGroupId': post['postGroupId'],
    'fileName': 'tutorial.mp4',
    'contentType': 'video/mp4',
    'type': 'video'
}).json()

# Step 3: Upload
with open('tutorial.mp4', 'rb') as f:
    requests.put(upload['uploadUrl'], headers={'Content-Type': 'video/mp4'}, data=f)

print(f"Scheduled: {post['postGroupId']}")

Platform Quirks

  • Video only — YouTube does not support images or text-only posts
  • content field = description — the content field maps to the YouTube video description
  • Title: Set via platform settings (defaults to first line of description if not set)
  • Privacy: Defaults to public. Can be set to unlisted or private via platform settings
  • YouTube Shorts: Videos under 60 seconds in portrait orientation (9:16) are automatically treated as Shorts
  • Large files: 256 GB max — YouTube is the most generous platform for file size
  • Processing time: YouTube processes uploaded videos before they go live; scheduling accounts for this

版本历史

共 2 个版本

  • v1.1.0
    2026-03-29 12:25
  • v1.2.0 当前
    2026-03-27 20:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,142
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,428
data-analysis

Publora Linkedin

sergebulaev
使用 Publora API 在 LinkedIn 上发布或定时发布内容。适用于用户需要发布或预约 LinkedIn 帖子、获取分析(如曝光)数据的场景。
★ 1 📥 1,153