ScaleReachScaleReach API
Videos

Submit YouTube Video

POST /api/videos/youtube — Submit a YouTube URL for processing.

POST /api/videos/youtube

Submit a YouTube URL for processing. The video will be downloaded, transcribed, analyzed for viral moments, and clips will be generated automatically.

Request Body

ParameterTypeRequiredDescription
youtubeUrlstringFull YouTube URL
workspaceIdstringWorkspace ID. Optional when using an API key — auto-resolved from the key. Required for session auth.
configobjectProcessing config (see below). If omitted, video is created with pending_config status.
projectIdstringOptional project ID to organize under

Config Object

ParameterTypeDefaultDescription
clipTypestring"viral-clips"viral-clips or split-clips
clipModelstring"ClipBasic"ClipBasic or ClipPro
genrestring"Auto"Auto, Podcast, Gaming, Education, Entertainment
clipDurationMinnumber15Minimum clip duration (seconds)
clipDurationMaxnumber90Maximum clip duration (seconds)
aspectRatiostring"9:16"9:16, 16:9, or 1:1
enableCaptionsbooleanfalseAuto-generate captions on clips
enableAutoHookbooleantrueAI-generated hook titles
captionTemplateIdstring"karaoke"Caption style: karaoke, word-by-word, sentence
languagestringnullISO code (e.g. en, hi, es). null = auto-detect
timeframeStartnumber0Start time in seconds (skip intros)
timeframeEndnumbernullEnd time in seconds. null = full duration
enableSplitScreenbooleanfalseEnable split-screen with background video
splitScreenBgVideoIdstringnullBackground video ID for split-screen
splitScreenBgCategoryIdstringnullBackground category ID for split-screen
splitRationumber50Split-screen ratio (percentage for main video)
enableSmartCropbooleanfalseAI face-tracking smart crop
enableWatermarkbooleantrueAdd watermark to clips
skipClippingbooleanfalseSkip clip generation (transcribe only)
customPromptstringCustom instructions for AI clip detection

Example

curl -X POST https://api.scalereach.ai/api/videos/youtube \
  -H "Authorization: Bearer sr_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "youtubeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "workspaceId": "abc123",
    "config": {
      "clipType": "viral-clips",
      "clipModel": "ClipBasic",
      "genre": "Auto",
      "clipDurationMin": 15,
      "clipDurationMax": 90,
      "aspectRatio": "9:16",
      "enableCaptions": true,
      "enableAutoHook": true,
      "captionTemplateId": "karaoke"
    }
  }'
import requests

response = requests.post(
    "https://api.scalereach.ai/api/videos/youtube",
    headers={"Authorization": "Bearer sr_live_YOUR_KEY"},
    json={
        "youtubeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "workspaceId": "abc123",
        "config": {
            "clipType": "viral-clips",
            "clipModel": "ClipBasic",
            "genre": "Auto",
            "aspectRatio": "9:16",
            "enableCaptions": True,
            "enableAutoHook": True,
        },
    },
)
video_id = response.json()["video"]["id"]
const response = await fetch("https://api.scalereach.ai/api/videos/youtube", {
  method: "POST",
  headers: {
    Authorization: "Bearer sr_live_YOUR_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    youtubeUrl: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    workspaceId: "abc123",
    config: {
      clipType: "viral-clips",
      clipModel: "ClipBasic",
      genre: "Auto",
      aspectRatio: "9:16",
      enableCaptions: true,
      enableAutoHook: true,
    },
  }),
});
const { video } = await response.json();

Response 201

{
  "message": "Video submitted for processing",
  "video": {
    "id": "UThwmCZb75JYZi4UP9rOX",
    "title": "How Steve Jobs saved Apple from BANKRUPTCY?",
    "status": "downloading",
    "sourceType": "youtube",
    "sourceUrl": "https://www.youtube.com/watch?v=wVXAFlueS9Y",
    "workspaceId": "znrje9lkcidmmaiziti",
    "createdAt": "2026-04-03T09:41:50.622Z"
  },
  "videoInfo": {
    "id": "wVXAFlueS9Y",
    "title": "How Steve Jobs saved Apple from BANKRUPTCY?",
    "duration": 1950,
    "thumbnail": "https://i.ytimg.com/vi/wVXAFlueS9Y/maxresdefault.jpg",
    "channelName": "Think School"
  }
}

On this page