YouTube Video Highlights Extractor

This workflow automatically receives a YouTube video ID and calls a third-party API to extract highlights from the video, focusing on the high-intensity segments that are of greatest interest to viewers. It filters out redundant moments and generates a structured, readable list that includes direct YouTube timestamp links, helping content creators, marketers, and viewers quickly locate the highlights of the video, thereby improving the analysis and utilization efficiency of video content. It is suitable for various users who need to quickly summarize the highlights of long videos.

Workflow Diagram
YouTube Video Highlights Extractor Workflow diagram

Workflow Name

YouTube Video Highlights Extractor

Key Features and Highlights

This workflow accepts a YouTube video ID and calls a third-party API to retrieve the video's "most replayed" data. It automatically filters out highlight segments with high intensity (intensity > 0.6) and removes temporally close duplicate moments. The final output is a structured, human-readable list of highlights, each accompanied by a direct YouTube timestamp link for quick navigation to key moments within the video.

Core Problem Addressed

Manually finding highlights in long videos is time-consuming and labor-intensive. This workflow automates the extraction of key moments that viewers repeatedly watch and focus on, helping content creators, marketers, and viewers quickly capture video highlights and improve the efficiency of video content analysis and utilization.

Use Cases

  • Helping video content creators quickly locate and promote highlight clips
  • Assisting marketing teams in producing short video ad materials
  • Enabling media analysts to perform hotspot analysis on video content
  • Supporting education and training sectors in selecting key instructional segments
  • Serving any users needing to rapidly summarize highlights from lengthy videos

Main Process Steps

  1. Receive Request via Webhook: Accept incoming YouTube video ID parameter through a webhook.
  2. Set Input Variable: Store the received YouTube video ID for subsequent use.
  3. Call Third-Party API: Request the yt.lemnoslife.com API to obtain the video’s "mostReplayed" data.
  4. Check for Intensity Data: Verify whether the API response contains intensity information for highlights.
  5. Handle Missing Intensity Data: If no relevant data is found, return a no-result response.
  6. Split Highlights Array: Decompose the list of highlights into individual data streams.
  7. Filter High-Intensity Highlights: Select highlight segments with intensity scores greater than 0.6.
  8. Convert Time Units: Convert the start time of each highlight from milliseconds to seconds.
  9. Remove Temporally Close Highlights: Filter out highlights occurring within 20 seconds of each other to avoid redundancy.
  10. Generate Readable Text: Create user-friendly descriptive text for each highlight, including clickable jump links.
  11. Aggregate and Respond: Compile all highlight data and return the aggregated results to the caller.

Involved Systems and Services

  • YouTube Video ID Input: Serves as the trigger and input parameter.
  • External API Service: yt.lemnoslife.com, providing "mostReplayed" highlight data.
  • Core n8n Nodes:
    • Webhook node (receives requests)
    • HTTP Request node (calls API)
    • IF node (checks data presence)
    • Split Out node (splits arrays)
    • Filter node (applies conditional filtering)
    • Set node (performs data transformation and text generation)
    • Aggregate node (aggregates data)
    • Respond to Webhook node (returns results)

Target Users and Value

  • Video Content Creators: Quickly identify viewer-focused highlights for editing and promotion.
  • Digital Marketers: Precisely capture video highlights to create engaging marketing materials.
  • Product Managers and Data Analysts: Analyze user behavior within videos to optimize content strategies.
  • Educational and Training Institutions: Extract key teaching moments to enhance learning efficiency.
  • Developers and Automation Enthusiasts: Easily integrate and invoke via webhook for extended video data applications.

This workflow significantly simplifies the process of automatically extracting highlights from YouTube videos. It supports quick and easy invocation through simple HTTP requests, delivering structured and user-friendly highlight information to empower intelligent upgrades across various video content scenarios.