YouTubeTranscript.com alternative and API
Scripts that call youtubetranscript.com/?server_vid2=… now get back an HTML page instead of XML captions. Subtext replaces that endpoint with a documented REST API (plus a remote MCP server for AI agents), and you can still read public YouTube transcripts free in the browser.
By Subtext · Checked December 2026
Get a free API key Read API reference Use free in browser
Why youtubetranscript.com/?server_vid2= broke
Older scripts and n8n workflows fetched https://youtubetranscript.com/?server_vid2=VIDEO_ID to grab raw XML caption lines. That URL now serves the HTML shell of a client-side web app (<div id="root"></div>) behind Cloudflare and requires JavaScript, so HTTP clients and XML parsers fail.
Running the open-source Python package youtube-transcript-api on a server hits a different wall. YouTube rate-limits or blocks unauthenticated caption requests from AWS, GCP, Vercel, Railway, and other cloud IP ranges unless you route traffic through residential proxies (see fixing RequestBlocked and IpBlocked, or compare hosted transcript APIs).
How the options compare checked December 2026
| Capability | Subtext | youtubetranscript.com | Self-hosted youtube-transcript-api |
|---|---|---|---|
| Browser reader (no sign-up) | Yes, free | Yes, free | No (Python library only) |
| Documented REST API | Yes (GET /api/v1/transcript, OpenAPI 3.1) |
Not listed on the site; ?server_vid2= returns SPA HTML |
No (library you wrap yourself) |
| Output formats | json, text, md, srt, vtt |
Web view and copy | Python dicts, JSON, text, SRT, WebVTT |
| Works from cloud / datacenter IPs | Yes, fetching runs server-side | Browser web app behind Cloudflare | Often blocked without residential proxies |
| List caption languages first | Yes, GET /api/v1/languages (free) |
In-browser selector | Yes (list()) |
| Remote MCP server for AI agents | Yes (/mcp, OAuth 2.1 or Bearer key) |
Not listed on the site | No |
| Pricing | Web free; API has free starter credits, 1 credit = 1 transcript, errors free (Pricing) | Free web app | Free code (+ proxy cost on cloud servers) |
Migrate from ?server_vid2= to the Subtext REST API
Create a free key on your account page (keys start with stx_), export it as SUBTEXT_API_KEY, and call GET https://youtubevideototranscript.com/api/v1/transcript with a Bearer header.
In curl (JSON segments with timestamps):
export SUBTEXT_API_KEY=stx_...
curl -sS "https://youtubevideototranscript.com/api/v1/transcript?video=arj7oStGLkU&format=json" \
-H "Authorization: Bearer $SUBTEXT_API_KEY"
In Python, replacing requests.get("https://youtubetranscript.com/?server_vid2=..."):
import os, requests
resp = requests.get(
"https://youtubevideototranscript.com/api/v1/transcript",
params={"video": "arj7oStGLkU", "format": "json"},
headers={"Authorization": f"Bearer {os.environ['SUBTEXT_API_KEY']}"},
timeout=60,
)
resp.raise_for_status()
data = resp.json()
for seg in data["segments"]:
print(f"[{seg['start']:.1f}s] {seg['text']}")
In JavaScript or Node:
const res = await fetch(
"https://youtubevideototranscript.com/api/v1/transcript?video=arj7oStGLkU&format=json",
{ headers: { Authorization: `Bearer ${process.env.SUBTEXT_API_KEY}` } }
);
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
const { title, language, segments } = await res.json();
Each item in segments has start, duration, and text, which matches the old <text start="12.5" dur="3.2">…</text> XML attributes. Change format=json to text, md, srt, or vtt when you want plain text, Markdown, or subtitles. To check available caption tracks before spending a credit, call GET /api/v1/languages?video=arj7oStGLkU. Listing languages is free. Error codes and rate limits are in the YouTube Transcript API reference.
Connect an AI agent over MCP
Subtext has the same get_transcript and list_languages tools on a remote MCP server at https://youtubevideototranscript.com/mcp, with OAuth 2.1 browser sign-in or your Bearer API key.
claude mcp add --transport http subtext https://youtubevideototranscript.com/mcp
See how to get a YouTube transcript in Claude Code for browser OAuth setup and a reusable skill, or the MCP section of the API reference for Cursor config.
When to pick another tool
If you run occasional Python scripts from a home connection and do not need an HTTP endpoint, local youtube-transcript-api works fine at zero cost. Cloud IP blocks mostly show up once you deploy to a datacenter or serverless host.
If your videos have no captions, or if you need private or age-restricted uploads, use a speech-to-text service like Whisper. Subtext reads public YouTube caption tracks (creator-made or auto-generated) and does not have a batch channel or playlist endpoint yet. For one-off browser downloads in TXT, SRT, VTT, or PDF, use the download guide without an account.
Credits, errors, and missing captions
Reading and downloading on the website is free with no account. In the API and MCP server, each successful transcript costs 1 credit, failed requests cost 0 credits, and /api/v1/languages is free. New browser accounts start with free credits so you can test your migration; check Pricing for details.
If a video returns no transcript, check that it is public and has captions on YouTube. When captions play on YouTube but the transcript panel looks broken or missing, see troubleshooting a missing YouTube transcript.