Overview
The Video Analysis API provides comprehensive analysis of videos and advertisements, measuring emotional, cognitive, behavioral, and technical metrics. Perfect for optimizing ad creatives, understanding viewer engagement, and improving video content.Before You Start
Video analysis requires a video file that has been uploaded to Mavera. You cannot analyze a file that lives only on your local machine or a third-party URL. The flow is:Upload the video
Use the Files API to upload your video. Follow the presigned URL flow:
POST /files/upload-url → PUT to the upload URL → POST /files to create the record. You receive a file ID (this becomes asset_id).Create the analysis
Call
POST /video-analyses with asset_id, plus goal, brand, product, and analysis settings.Poll for completion
Analysis runs asynchronously. Poll
GET /video-analyses/{id} every 15–30 seconds until status is COMPLETED. Typical runtime: 2–10 minutes depending on video length.For a full walkthrough including upload code, see Tutorial: Video Ad Analysis.
Key Metrics
Emotional
Sentiment, emotional triggers, mood progression
Cognitive
Attention, comprehension, memory encoding
Behavioral
Call-to-action effectiveness, engagement drivers
Technical
Pacing, visual quality, audio analysis
Creating an Analysis
Retrieving Results
Analysis runs asynchronously. PollGET /video-analyses/{id} until status is COMPLETED.
Polling Pattern
Reading Metrics
Chat About Results
Ask natural-language questions about your completed analysis. The chat endpoint has full context of the metrics and chunks.- “What are the weakest moments in this video and how can I improve them?”
- “Which segment has the best emotional impact?”
- “Summarize the top 3 recommendations for the next version.”
Response Format
Credit Costs
| Video Length | Approximate Cost |
|---|---|
| < 30 seconds | 100-150 credits |
| 30s - 1 min | 150-250 credits |
| 1-3 minutes | 250-400 credits |
| 3+ minutes | 400+ credits |
Best Practices
Use short clips for iteration
Use short clips for iteration
Start with 15–60 second clips to iterate quickly. Longer videos use more credits and take longer to process.
Provide context (goal, brand, product)
Provide context (goal, brand, product)
The
goal, brand, and primary_intent parameters improve relevance of metrics and recommendations.Adjust chunk_duration
Adjust chunk_duration
Shorter chunks (e.g. 3–5 seconds) give finer granularity; longer chunks (e.g. 10 seconds) reduce processing time.
Compare creatives
Compare creatives
Run multiple analyses and compare
overall_score, emotional_impact, and cta_effectiveness across variants.Tutorial
Full end-to-end script: upload → analyze → chat
Quickstart
Get your first analysis in 20 minutes
Files API
Upload flow for videos
API Reference
Full API specification