Video Intelligence API for Developers: Automate YouTube Transcripts, Chapters & Viral Clips

Build powerful video applications without managing ML infrastructure. The Video Intelligence API gives you instant access to YouTube transcripts, automatic chaptering, viral moment detection, and caption generation — all via a simple REST API.

What You Can Build

API Endpoints

1. Full Analysis — POST /analyze

Complete video intelligence in one call: transcript, segments, chapters, viral clips, and metadata.

curl -X POST https://test-region-sunrise-analytical.trycloudflare.com/analyze \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=VIDEO_ID"}'

Returns: transcript, segments (with timestamps), chapters, viral_clips (scored 0-1), metadata (title, duration, views, channel)

2. Transcript Only — POST /transcript

Fast transcript extraction with language detection.

curl -X POST https://test-region-sunrise-analytical.trycloudflare.com/transcript \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=VIDEO_ID"}'

3. Viral Clips — POST /viral-clips

Detect the most engaging moments for Shorts/Reels creation.

curl -X POST https://test-region-sunrise-analytical.trycloudflare.com/viral-clips \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=VIDEO_ID", "count": 5}'

Returns: Array of clips with start/end times, viral score (0-1), detection reason, and preview caption.

4. Captions — POST /captions

Generate captions in SRT, VTT, or ASS format.

curl -X POST https://test-region-sunrise-analytical.trycloudflare.com/captions \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=VIDEO_ID", "format": "srt"}'

Formats: srt (SubRip), vtt (WebVTT), ass (Advanced SubStation Alpha)

5. Health Check — GET /health

API status and version.

curl https://test-region-sunrise-analytical.trycloudflare.com/health

Response Example

{
  "transcript": "Full transcript text...",
  "segments": [
    {"start": 0.0, "end": 4.5, "text": "Welcome to this tutorial..."},
    {"start": 4.5, "end": 12.0, "text": "Today we'll cover..."}
  ],
  "language": "en",
  "chapters": [
    {"start": 0, "end": 120, "title": "Introduction"},
    {"start": 120, "end": 480, "title": "Core Concepts"}
  ],
  "viral_clips": [
    {"start": 45.0, "end": 78.0, "score": 0.87, "reason": "high word density; emphasis markers; specific numbers", "caption": "The secret to 10x engagement is..."}
  ],
  "metadata": {
    "source_url": "https://www.youtube.com/watch?v=...",
    "title": "Video Title",
    "duration": 600,
    "thumbnail_url": "https://i.ytimg.com/vi/.../hqdefault.jpg",
    "view_count": 123456,
    "channel": "Channel Name",
    "status": "success"
  }
}

Pricing (Direct Crypto)

TierRequestsPrice (USD)Payment
Free10/day$0
Pro1,000/month$19BTC/ETH/SOL
Business10,000/month$49BTC/ETH/SOL
EnterpriseUnlimited$99BTC/ETH/SOL

Pay with Bitcoin, Ethereum, or Solana. No KYC, no credit card required. API key delivered instantly on-chain confirmation.

OpenAPI / Swagger Documentation

Full OpenAPI 3.1.0 spec available at:

https://test-region-sunrise-analytical.trycloudflare.com/openapi.json

Interactive Swagger UI:

https://test-region-sunrise-analytical.trycloudflare.com/docs

Integration Examples

Python

import requests

API_BASE = "https://test-region-sunrise-analytical.trycloudflare.com"

def analyze_video(youtube_url):
    response = requests.post(f"{API_BASE}/analyze", json={"url": youtube_url})
    return response.json()

# Get viral clips for Shorts creation
result = analyze_video("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
for clip in result["viral_clips"]:
    print(f"Clip: {clip['start']:.1f}s - {clip['end']:.1f}s (score: {clip['score']})")
    print(f"  Preview: {clip['caption']}")

JavaScript / Node.js

const API_BASE = "https://test-region-sunrise-analytical.trycloudflare.com";

async function getTranscript(youtubeUrl) {
  const response = await fetch(`${API_BASE}/transcript`, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ url: youtubeUrl })
  });
  return response.json();
}

// Generate SRT captions
async function getCaptions(youtubeUrl, format = "srt") {
  const response = await fetch(`${API_BASE}/captions`, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ url: youtubeUrl, format })
  });
  return response.text(); // Returns raw SRT/VTT/ASS content
}

Technical Stack

Rate Limits & Performance

Get Started

  1. Test the API: curl https://test-region-sunrise-analytical.trycloudflare.com/health
  2. Try /analyze with a YouTube URL
  3. Review the interactive docs
  4. Contact for API key (crypto payment): see storefront for pricing

Roadmap

Live API: https://test-region-sunrise-analytical.trycloudflare.com

Storefront: https://soa.on.route6.me

Documentation: Swagger UI