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
- Content Repurposing Apps: Auto-generate Shorts, Reels, TikToks from long-form videos
- Video Search Engines: Index video content by transcript for searchability
- Creator Analytics Tools: Detect viral moments to optimize content strategy
- Accessibility Tools: Auto-generate captions (SRT, VTT, ASS) for any video
- Social Media Schedulers: Extract hooks and highlights for cross-posting
- Educational Platforms: Chapter videos for better learning navigation
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)
| Tier | Requests | Price (USD) | Payment |
|---|---|---|---|
| Free | 10/day | $0 | — |
| Pro | 1,000/month | $19 | BTC/ETH/SOL |
| Business | 10,000/month | $49 | BTC/ETH/SOL |
| Enterprise | Unlimited | $99 | BTC/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
- Transcription: faster-whisper (optimized Whisper.cpp) — supports 99+ languages
- Video Download: yt-dlp — robust YouTube extraction
- Viral Detection: Heuristic scoring (word density, emphasis, hooks, specificity, action language)
- Chapter Generation: Topic segmentation via transcript analysis
- Caption Formats: SRT, VTT, ASS with word-level timestamps
- API Framework: FastAPI (async, auto OpenAPI docs)
- Deployment: Cloudflare Tunnel (currently) — migrating to Vercel/Fly.io
Rate Limits & Performance
- Free tier: 10 requests/day, 1 concurrent
- Paid tiers: Higher limits, priority queue
- Typical latency: 30-120s per video (depends on video length)
- Max video duration: 1 hour (3600 seconds)
Get Started
- Test the API:
curl https://test-region-sunrise-analytical.trycloudflare.com/health - Try
/analyzewith a YouTube URL - Review the interactive docs
- Contact for API key (crypto payment): see storefront for pricing
Roadmap
- [ ] TikTok / Instagram Reels support
- [ ] Batch API for multiple URLs
- [ ] Webhook callbacks for async processing
- [ ] Speaker diarization
- [ ] Translation to 50+ languages
- [ ] RapidAPI marketplace listing
Live API: https://test-region-sunrise-analytical.trycloudflare.com
Storefront: https://soa.on.route6.me
Documentation: Swagger UI