Skip to main content

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:
1

Upload the video

Use the Files API to upload your video. Follow the presigned URL flow: POST /files/upload-urlPUT to the upload URL → POST /files to create the record. You receive a file ID (this becomes asset_id).
2

Create the analysis

Call POST /video-analyses with asset_id, plus goal, brand, product, and analysis settings.
3

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.
4

Read results and optionally chat

Use results.full_video_metrics and results.chunks for metrics. Use POST /video-analyses/{id}/chat to ask natural-language questions about the analysis.
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. Poll GET /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.
Example questions:
  • “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

Best Practices

Start with 15–60 second clips to iterate quickly. Longer videos use more credits and take longer to process.
The goal, brand, and primary_intent parameters improve relevance of metrics and recommendations.
Shorter chunks (e.g. 3–5 seconds) give finer granularity; longer chunks (e.g. 10 seconds) reduce processing time.
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