npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-ravi-youtube-transcript

v0.2.1

Published

n8n node to extract YouTube video transcripts with language detection and clean text output

Readme

n8n-nodes-ravi-youtube-transcript

An n8n community node that extracts transcripts from YouTube videos with automatic language detection and clean text output.

Features

  • Single Video - Extract transcript from any YouTube video URL
  • Playlist - Batch extract transcripts from all videos in a playlist
  • Batch URLs - Process multiple video URLs at once
  • Language Selection - Choose specific language or auto-detect
  • Clean Text Output - Returns clean, readable transcript text
  • Video Metadata - Title, channel, duration included in output
  • Timestamps - Optional timestamp data for each segment
  • YouTube Cookies Support - Bypass bot detection on VPS/datacenter IPs

Requirements

| Requirement | Version | |-------------|---------| | Node.js | >= 20.0.0 | | n8n | >= 1.0.0 |

Installation

Method 1: n8n UI (Recommended)

  1. Open n8n → SettingsCommunity Nodes
  2. Click Install
  3. Search for n8n-nodes-ravi-youtube-transcript
  4. Click Install

Method 2: Command Line

n8n install n8n-nodes-ravi-youtube-transcript

Method 3: Manual Install (Custom Node)

# Go to n8n custom nodes folder
cd ~/.n8n/custom/node_modules

# Clone or copy the node
git clone <repo-url> n8n-nodes-ravi-youtube-transcript
# OR copy the folder manually

# Install dependencies
cd n8n-nodes-ravi-youtube-transcript
npm install

# Build
npm run build

# Restart n8n
n8n start

Dependencies

Production Dependencies

| Package | Version | Purpose | |---------|---------|---------| | youtube-transcript-plus | ^2.0.0 | Fetches YouTube transcripts |

Dev Dependencies (for building from source)

| Package | Version | Purpose | |---------|---------|---------| | typescript | ~5.8.0 | TypeScript compiler | | gulp | ^5.0.0 | Icon build pipeline | | n8n-workflow | * | n8n type definitions | | @types/node | ^22.0.0 | Node.js type definitions |

Peer Dependencies

| Package | Version | |---------|---------| | n8n-workflow | * |

Usage

Single Video

  1. Add the YouTube Transcript node to your workflow
  2. Set Mode to Single Video
  3. Enter a YouTube video URL or video ID
  4. Select a language or leave as Auto-Detect
  5. The node outputs clean transcript text with video metadata

Playlist

  1. Set Mode to Playlist
  2. Enter a YouTube playlist URL
  3. All video transcripts are fetched and returned as separate items

Batch

  1. Set Mode to Batch URLs
  2. Enter multiple YouTube video URLs (one per line)
  3. All valid transcripts are returned

YouTube Cookies Setup (For VPS/Datacenter)

If you're running n8n on a VPS or datacenter, YouTube may block transcript requests. Use cookies to bypass this:

Step 1: Export Cookies from Browser

  1. Install "Get cookies.txt LOCALLY" browser extension (Chrome / Firefox)
  2. Go to youtube.com and make sure you're logged in
  3. Click the extension icon → Export → Save the cookies file

Step 2: Create Credential in n8n

  1. Open the YouTube Transcript node
  2. In "Credential to connect with" dropdown, select YouTube Cookies
  3. Click Create New
  4. Paste the cookies content in the Cookies field
  5. Click Save — you'll see a green tick if cookies are valid
  6. If you see a red warning, cookies are expired — export fresh ones

Step 3: Use in Workflow

The node will automatically use the cookies for all transcript requests. No additional configuration needed.

Cookie Format

Cookies should be in this format (as exported by the extension):

CONSENT=YES+cb.20210328-17-p0.en+FX+299; SOCS=CAISNQgD...

Output Fields

| Field | Description | |-------|-------------| | videoId | YouTube video ID | | title | Video title | | channel | Channel name | | duration | Video duration (MM:SS) | | language | Detected transcript language | | isAutoGenerated | Whether transcript is auto-generated | | transcript | Clean transcript text | | segments | (Optional) Array of timed segments with text, offset, duration |

Options

| Option | Default | Description | |--------|---------|-------------| | Include Timestamps | false | Include timestamp metadata for each segment | | Max Videos | 50 | Maximum videos to process (playlist/batch mode, max 200) |

Building from Source

# Clone the repo
git clone <repo-url>
cd n8n-nodes-ravi-youtube-transcript

# Install dependencies
npm install

# Build
npm run build

# The dist/ folder contains the compiled node

Troubleshooting

"No transcript available"

  • Video may not have captions/subtitles enabled
  • Try a different video

"Cookie validation failed"

  • Cookies may be expired — export fresh ones from browser
  • Make sure you're logged into YouTube in the browser
  • Try using a different browser

Node not appearing in n8n

  • Restart n8n after installation
  • Check n8n logs for errors
  • Verify the node is in ~/.n8n/custom/node_modules/

VPS/Datacenter blocking requests

  • Use YouTube Cookies credential (see setup above)
  • Ensure cookies are fresh and not expired

License

MIT