Skip to main content

Scenario

Should your brand invest in Shorts or long-form? This job pulls your channel’s recent Shorts (under 60 seconds) and long-form videos separately via videos.list, runs Video Analysis on a sample from each format, and compares behavioral scores head-to-head. The result is a format strategy recommendation backed by both YouTube analytics and Mavera’s creative intelligence — showing not just which format gets more views, but which format produces better creative quality for your brand.

Architecture

Code

Example Output

Error Handling

YouTube’s API doesn’t have a dedicated Shorts flag. Videos under 60 seconds are classified as Shorts. This may include non-Shorts short clips — filter by aspect ratio (9:16) if precision matters.
The playlistItems endpoint returns 50 items per page. For channels with 100+ videos, paginate with nextPageToken. Each page costs 1 quota unit.
Engagement rate = likes / views. YouTube hides dislike counts (since 2021), so this metric is positivity-biased. Comment count is an alternative engagement signal.

YouTube Integration

Video Analysis