Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Extract YouTube Peaks for Video Engagement
13
Views
0
Downloads
18
Nodes
Download Template
Free
Preview Template
Utility Rating
6 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
Trigger Type
Webhook
Approx setup time ≈ 25 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Extract YouTube Peaks for Video Engagement?

Leon Petrou
FREE TEMPLATE
Extract YouTube Peaks for Video Engagement
13
Views
0
Downloads
18
Nodes
Download Template
Free
Preview Template
Utility Rating
6 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
Trigger Type
Webhook
Approximate setup time ≈ 25 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Turn a YouTube video ID into a short list of high energy moments that your team can use for clips, hooks, and thumbnails. Great for marketing and content teams that want quick highlights without watching full videos.

A webhook receives a request with a ytID query. The ID flows into an HTTP request that pulls most replayed markers. A check confirms if intensity data exists. If not, the response returns a clean no results message. If data is present, markers are split, filtered by intensity above 0.6, converted from milliseconds to seconds, and de duplicated so close moments do not stack. The flow then builds human friendly lines with ready to click youtu.be links and timestamps, aggregates them, and returns a compact JSON payload.

Setup is simple and needs no API keys. Activate the workflow, copy the production webhook URL, and call it with a video ID. Expect faster content picks, less guessing, and quick handoff to editors or social managers. This is useful for teams that cut shorts, pull hooks, or mark chapters based on where viewers rewatch.

Copy link

Tools Required

n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

What this workflow does?

  • Webhook input accepts a query parameter named ytID for the video ID.
  • HTTP Request pulls most replayed markers from a public endpoint using the provided ID.
  • If check routes either to a no results response or to the processing path when data exists.
  • Split Out expands all marker items so each moment can be filtered and shaped.
  • Filter keeps only moments with intensity greater than 0.6 to focus on strong peaks.
  • Set converts start time from milliseconds to seconds for easy sharing.
  • Filter removes moments that are too close to each other to avoid duplicates.
  • Set builds human readable lines with youtu.be links and start times.
  • Aggregate collects all cleaned moments into a single engagingMoments array and returns JSON.

What are the benefits?

  • Reduce manual review from 15 minutes per video to under 2 minutes.
  • Automate up to 90 percent of scanning for highlight timestamps.
  • Improve clip selection consistency by using objective replay data.
  • Cut duplicate moments by de duplicating timestamps that are too close.
  • Deliver ready to share links that speed handoff to editors and social teams.

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. Open the Webhook node. Copy the Production URL and activate the workflow so the URL is live.
  3. In the Set node named Input variables, confirm youtubeVideoID is set to {{$json.query.ytID}}.
  4. Open the HTTP Request node and verify the URL is https://yt.lemnoslife.com/videos?part=mostReplayed&id={{ $json.youtubeVideoID }}. This call does not require credentials.
  5. Run a quick test in a browser or Postman: {your production URL}?ytID={a valid YouTube video ID}. Check the execution to confirm data returns.
  6. Inspect the If node labeled has intensity data. If it goes to the no results path, the final JSON will return engagingMoments as null.
  7. Adjust the intensity threshold in the filter node intensity > 0.6 if you want more or fewer moments. Lower values return more moments.
  8. Fine tune the Filter out moments close to each other node to change how closely timed moments are merged.
  9. Open the Set node Create each moment and change the message format if you want different link text or labels.
  10. Trigger the endpoint again and check the Respond with moments output. You should see engagingMoments and youtubeID in the JSON.
  11. If results are empty, confirm the video has public data and most replayed markers. Try a different video ID to verify behavior.

Need help or want to customize this?

Similar Templates

n8n
Marketing
Automate YouTube SEO and Publishing
Grow your channel with less manual work. This automation finds your newest upload, writes a clear description, suggests strong tags, and updates video metadata. It also schedules private videos for publish dates so your content goes live on time. Ideal for creators, teams, and agencies that upload often and want consistent SEO. The flow runs on a daily schedule, and you can also test it on demand. It pulls recent videos from YouTube, removes repeats from earlier runs, and checks if there is a new item to process. A transcript is scraped through an API call, then formatted for clean prompts. OpenAI drafts the description and title, and Google Gemini helps generate keyword tags. The result is pushed back to YouTube, and short waits are added to avoid rate limits. A separate path scans private or not listed videos and sets the publishAt date when needed. Set YouTube OAuth, OpenAI and Google Gemini API keys, and an Apify token for the transcript call. Expect faster uploads, steady SEO quality, and fewer manual edits. This is useful for scheduled releases, daily content, or batches managed by a small team.
15 views
view
n8n
Marketing
Generate YouTube Shorts from Google Sheets
Create short videos for YouTube by pulling a quote and creative prompts from Google Sheets, building the background image and video with AI, adding ambient sound, and publishing the final clip to your channel. Great for social teams and creators who want steady content without manual editing. A manual start reads one row from Google Sheets with the quote, author, and scene prompts. The flow calls an image model to render a vertical image, waits, then writes the image link back to the sheet. It then sends that image to a video model to produce a cinematic vertical clip, waits again, downloads the file, and records the video link in the sheet. Audio is generated with a voice and sound service, stored to Google Drive, and the drive link is saved. A code node formats overlay text, then FFmpeg merges video, audio, and on screen text into a final MP4. The clip uploads to YouTube with a resumable upload, and the sheet is updated with status and the YouTube link. You will need API keys for the AI services, Google and YouTube OAuth, and FFmpeg installed on the n8n host. Expect one run to replace hours of editing with a repeatable system managed from a spreadsheet. Ideal for daily quotes, quick tips, or listicle shorts driven by your sheet.
13 views
view
n8n
Marketing
Analyze YouTube Videos for Content Insights
Turn any YouTube video into fast, useful insights your team can use. Enter a video ID and chat with an AI that knows the full transcript and video details. Great for content teams, researchers, and anyone who needs quick answers without watching the whole video. Behind the scenes, a chat trigger starts a conversation and keeps history so the AI remembers context. A custom tool builds a YouTube Data API request and pulls title, description, and publish date. Code also collects the video transcript, splits it into parts, and combines it into one clean text block. The workflow then merges details and transcript into one JSON object. An AI agent powered by an OpenAI model reads this data and answers questions, summarizes content, and points to key moments. To set it up, you need a YouTube Data API key from Google Cloud and an OpenAI API key. DeepSeek is optional and can be added if you want more model choices. Expect faster research, less manual viewing time, and better reuse of video content. Common uses include building summaries for blogs, pulling quotes for social posts, and reviewing long training videos in minutes.
6 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.