微算力 · API 导航与自营网关
API 接入 EN
未登录登录
▶️

YouTube视频智能排期与发布

Publora Youtube · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 B 级 作者 sergebulaev 公开目录收录
1.1k 下载 0 安装 3.4k 收藏 8 浏览

简介

通过Publora API实现YouTube视频上传与排期管理,支持长视频和Shorts格式,最大512MB,适合内容创作者和社媒运营团队。

原始描述

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.

通过你的 Agent 添加

安装目录:publora-youtube/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/publora-youtube/
Codex CLI~/.codex/skills/publora-youtube/
DeepSeek Harness~/.agents/skills/publora-youtube/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: publora-youtube description: > Post or schedule video content to YouTube using the Publora API. Use this skill when the user wants to publish or schedule YouTube videos via Publora.

Publora — YouTube

Post and schedule YouTube video content via the Publora API.

Prerequisite: Install the publora core skill for auth setup and getting platform IDs.

Get Your YouTube Platform ID

GET https://api.publora.com/api/v1/platform-connections
# Look for entries like "youtube-012"

Upload and Schedule a YouTube Video

import requests

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

# Step 1: Create post
post = requests.post('https://api.publora.com/api/v1/create-post', headers=HEADERS, json={
    'content': 'How We Built a SaaS in 30 Days — Full Breakdown',
    'platforms': ['youtube-012'],
    'scheduledTime': '2026-03-16T16:00:00.000Z'
}).json()

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

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

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

Post YouTube Short

Same flow as regular video — just ensure video is vertical (9:16) and under 60 seconds:

body: JSON.stringify({
  content: 'One tip that 10x\'d our productivity #shorts #productivity',
  platforms: ['youtube-012'],
  scheduledTime: '2026-03-16T12:00:00.000Z'
})

Tips for YouTube

  • Content field = video title/description — make it SEO-optimized
  • Video required — YouTube posts without video will fail
  • Max size: 512 MB
  • Best upload times: Thursday–Saturday, 2–4 PM (audience timezone)
  • Shorts: Under 60 seconds, vertical 9:16 — YouTube auto-detects and promotes as Shorts
  • Thumbnails: Can't set via API — set in YouTube Studio after publishing
  • Description SEO: First 2–3 sentences appear in search; include keywords

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

youtubevideo-publishingcontent-schedulingsocial-mediaapi-integrationshorts

同类 Skill