Skip to main content
Glama

Youtube2Text

by dm-nosov

YouTube2Text - Video Transcription API

A powerful text extraction service that converts YouTube video content into clean, timestampless transcripts for content analysis, research, and processing workflows.

Overview

YouTube2Text transforms YouTube videos into readable text by removing subtitle timing markers and metadata, delivering pure content suitable for:

  • Content analysis and insights
  • Text summarization workflows
  • Research and documentation
  • Content generation pipelines
  • Natural language processing tasks

Quick Start

Begin with a demo API key from https://api.youtube2text.org. For consistent access and higher usage limits, upgrade to a subscription plan.

API Reference

Base URL: https://api.youtube2text.org
Transcription Endpoint: /transcribe

Request Format

Send POST requests with these parameters:

ParameterTypeRequiredDescription
urlstringYesComplete YouTube video URL
maxCharsnumberNoCharacter limit (default: 150,000)

Authentication

Include your API key in the request header:

x-api-key: YOUR_API_KEY

HTTP Status Codes

CodeMeaning
200Transcription successful
400Invalid request parameters
401Authentication failed
404Video or transcript not found
429Rate limit exceeded
500Server error

Error Types

  • VALIDATION_ERROR: Parameter validation failed
  • UNAUTHORIZED: Invalid API credentials
  • VIDEO_NOT_FOUND: YouTube video unavailable
  • TRANSCRIPT_UNAVAILABLE: No captions available
  • INVALID_URL: Malformed video URL
  • RATE_LIMIT_EXCEEDED: Quota or rate limit reached
  • INTERNAL_ERROR: Server-side issue

Examples

This directory contains examples of how to use the YouTube2Text API with different AI models and in different programming languages.

Python

JavaScript

TypeScript

Automation Integration

Workflow Automation

The API integrates with popular automation platforms:

  • Zapier: Connect via MCP integration for triggered workflows
  • n8n: Use HTTP request nodes or MCP connectors for process automation
  • Make (Integromat): HTTP modules for video processing pipelines

Example Workflow Ideas

  1. Content Pipeline: YouTube → Transcription → Summary → Social Media Posts
  2. Research Automation: Video URLs → Transcripts → Analysis → Report Generation
  3. Content Monitoring: Channel Watching → New Videos → Auto-transcription → Alerts

Response Examples

Successful Response

{ "result": { "videoId": "dQw4w9WgXcQ", "title": "Rick Astley - Never Gonna Give You Up (Official Video)", "pubDate": "2009-10-25T07:57:33-07:00", "content": "We're no strangers to love You know the rules and so do I...", "contentSize": 1337, "truncated": false } }

Error Response

{ "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Monthly quota exceeded", "status": 429, "retryAfterSeconds": 3600, "details": "Upgrade plan for higher limits" } }

Best Practices

  • Store API keys securely using environment variables
  • Implement proper error handling for all status codes
  • Respect rate limits and implement retry logic with exponential backoff
  • Cache transcripts locally when possible to avoid redundant API calls
  • Monitor usage to stay within quota limits
  • Use appropriate maxChars limits for your use case

Support

For additional examples, troubleshooting, and advanced integration patterns, visit the project repository or API documentation.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A powerful text extraction service that converts YouTube video content into clean, timestampless transcripts for content analysis, research, and processing workflows.

  1. Overview
    1. Quick Start
      1. API Reference
        1. Request Format
        2. Authentication
        3. HTTP Status Codes
        4. Error Types
      2. Examples
        1. Python
        2. JavaScript
        3. TypeScript
      3. Automation Integration
        1. Workflow Automation
        2. Example Workflow Ideas
      4. Response Examples
        1. Successful Response
        2. Error Response
      5. Best Practices
        1. Support

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            Enables extraction of transcript text from YouTube videos by providing the video URL, supporting standard, shortened, and embed URL formats.
            Last updated -
            5
            1
            JavaScript
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.
            Last updated -
            1
            7
            1
            TypeScript
          • A
            security
            F
            license
            A
            quality
            Enables interaction with YouTube videos by extracting metadata, captions in multiple languages, and converting content to markdown with various templates.
            Last updated -
            1
            3
            2
            TypeScript
          • -
            security
            A
            license
            -
            quality
            A service that extracts and transcribes audio content from videos across 1000+ streaming websites including YouTube, Bilibili, TikTok, and Twitter, supporting multiple transcription providers like Deepgram, Gladia, Speechmatics, and AssemblyAI.
            Last updated -
            23
            Python
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/dm-nosov/youtube2text'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server