Video Analysis

Analyze any YouTube video with AI.

Media tool. No plan needed. Pay as you go: each call is paid from your balance. See prices

llms.txt Full docs for LLMs

POST /api/analyze-video

Analyze a YouTube video with AI vision — hooks, pacing, visual storytelling, on-screen text, B-roll usage, content strategy, and any other prompt-driven breakdown. Returns structured analysis text. Costs $0.0044 per minute of video plus $0.0096 per video ($0.0137 per minute plus $0.0146 per video at default resolution), charged to your balance when the job is queued and refunded if the analysis fails; the response includes credits_charged, the charge counted in credits (1 credit = $0.03). Repeat prompts on the same video within 2 hours reuse a cached upload automatically (faster on the backend, returns cached: true).

Request Body (JSON)
NameTypeRequiredDescription
video_urlstringRequiredYouTube video URL. Accepts watch links, youtu.be short links, and Shorts URLs.
promptstringRequiredPlain-English instruction describing what to analyze. Max 4,000 characters.
media_resolutionstringOptionalAnalysis fidelity: low (default, recommended for hook / pacing / strategy prompts) or default (higher visual detail at greater backend cost — useful when fine on-screen text or subtle visual cues matter).
Limits: Maximum video length is 3 hours. Live streams, private, deleted, and age-restricted videos are rejected with clear error messages. The jobs-at-once cap of the other media jobs applies, with a 429 past it: until 1 December 2026, 8 Starter / 20 Professional / 40 Ultimate; from 1 December, 8 / 20 / 40 for any amount / $100 or more / $500 or more added to the balance in the last 4 weeks.
Example Request (Hook breakdown)
curl -X POST "https://api.algrow.online/api/analyze-video" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "prompt": "Break down the hook in the first 3 seconds. What grabs attention?", "media_resolution": "low" }'
Example Request (Pacing analysis on a Short)
curl -X POST "https://api.algrow.online/api/analyze-video" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "video_url": "https://youtube.com/shorts/abc123XYZ", "prompt": "Identify the pacing, energy shifts, on-screen text timing, and where attention is most likely to drop." }'
Response 200 200
{ "success": true, "job_id": "f12d4a8b-2e1f-44e1-9aa1-2dfa20c5c7d3", "status": "pending", "duration_seconds": 187.4, "message": "Video analysis queued. Poll /api/job-status/{job_id} for progress." }
Completed Job Response (via /api/job-status/:job_id)
{ "success": true, "job_id": "f12d4a8b-2e1f-44e1-9aa1-2dfa20c5c7d3", "job_type": "video_analysis", "status": "completed", "analysis_text": "The opening 3 seconds use a hard cut from black to a wide shot of...", "duration_seconds": 187.4, "video_id": "dQw4w9WgXcQ", "cached": false, "completed_at": 1774203012.45 }
Processing time: Typically 5–25 seconds for Shorts, 30–90 seconds for 5-minute videos, several minutes for hour-long content. The first analysis on a video is slower than follow-up prompts on the same video (which hit the cache and skip download + upload). Poll /api/job-status/:job_id every 5 seconds for updates.
Caching: When you run multiple prompts on the same video_url within 2 hours, the source video is reused from cache — the response includes cached: true. Cache is keyed per (user, video) so each user pays the cold-path cost once per video per 2 hours.
200 Queued 400 Validation / unsupported video 401 Auth failed 429 Concurrency cap

esc
×

Buy More Credits

Boost
150
credits
$4.99
Good for:
  • ~12 min caption removal
Studio
1,000
credits
$31.49
Good for:
  • ~80 min caption removal
Custom amount 600 credits · $19.96
1506,000