Transcripts · Content · Tutorial
Turn Your YouTube Channel Into Blog Posts, a Book Draft or a Podcast Archive
We exported 10 interview episodes from a public channel as Markdown, split them by chapter, cleaned them and drafted a post. Real before and after excerpts, the caption errors we hit, and what still needs a person.
· 8 min read · YTAPI
You can turn your own channel into blog posts, a book draft or a searchable archive in four steps: export every video's transcript as Markdown, split it at the video's chapters, clean the speech, then edit by hand. The first two steps are a short script. The cleanup is where an LLM helps, and the last step cannot be skipped. YouTube's auto-generated captions are raw speech, with the wrong names, filler words and no speaker labels, so none of it is ready to publish as it comes out.
We make YTAPI, a transcript API, so the export uses it. We ran everything below on November 15, 2026. Only publish content from your own channel, or content you have permission to use (more on that at the end).
What we ran
We needed a public channel to use as an example. We picked Acquiring Minds, an interview podcast with about 18,000 subscribers. We do not own it, have no connection to it, and published nothing from it. Its episodes suit this task: long, one guest per episode, and every video has chapters.
| Step | What we did | Result |
|---|---|---|
| Export | The 10 newest finished videos, transcript as Markdown plus the video's chapters | 10 videos, 46 minutes to 2 hours each, about 141,000 words, 105 chapters |
| Split and tidy | A Python script, no LLM | One Markdown file per video, chapter headings, timestamp links, front matter, an index page |
| Rewrite | An LLM on two excerpts | A cleaned Q&A excerpt and a short blog draft |
| Review | Reading the output against the transcript | The problem list below |
The export cost 21 credits: 1 for the channel listing, then 1 transcript and 1 video-info call per video. All ten videos had English captions, and all ten were auto-generated. We did not test age-restricted or members-only videos, and they fail with YTAPI like any video without public captions.
Step 1 and 2: export, split and tidy
This script lists the channel's newest videos, fetches each transcript as Markdown (format=markdown) and the video's chapters, and writes one file per video plus an index. It needs Python 3.9 or later, requests, and your key in YTAPI_KEY.
import os, re, sys, requests
API = "https://api.ytapi.dev"
HEADERS = {"Authorization": f"Bearer {os.environ['YTAPI_KEY']}"}
CHANNEL, COUNT, OUT = "@AcquiringMinds", 10, "archive"
def get(path, **params):
res = requests.get(API + path, headers=HEADERS, params=params, timeout=60)
res.raise_for_status()
return res
def stamp(s):
t = 0
for part in s.split(":"):
t = t * 60 + int(part)
return t
def clock(t):
return f"{t // 3600}:{t % 3600 // 60:02d}:{t % 60:02d}" if t >= 3600 else f"{t // 60}:{t % 60:02d}"
os.makedirs(OUT, exist_ok=True)
videos = [v for v in get(f"/v1/channels/{CHANNEL}/videos", sort_by="newest").json()["videos"]
if v.get("length_text") and v["length_text"] != "Upcoming"][:COUNT]
index = []
for v in videos:
vid, title = v["video_id"], v["title"].strip()
# 1 credit each: the transcript as Markdown, and the video's own chapters
chapters = [(c["start_time_seconds"], c["title"])
for c in get(f"/v1/videos/{vid}/video-info").json().get("chapters", [])]
try:
raw = get("/v1/transcripts", video_id=vid, format="markdown", languages="en,*").text
except requests.HTTPError:
print("no transcript for", vid) # no captions, for example
continue
raw = re.sub(r"^## .*\n", "", raw, flags=re.M) # the export may add chapter headings of its own; we build ours
if not chapters:
chapters = [(0, "Full episode")]
# The export has one "### [m:ss]" block per caption group. Put each block under the chapter it falls in.
blocks = [(stamp(m[0]), m[1]) for m in re.findall(r"### \[([\d:]+)\]\n(.*?)(?=\n### \[|\Z)", raw, re.S)]
by_chapter = {c: [] for c in chapters}
for start, text in blocks:
started = [c for c in chapters if c[0] <= start]
by_chapter[started[-1] if started else chapters[0]].append(text.strip())
out = [f'---\ntitle: "{title}"\nvideo_id: {vid}\nsource: https://youtu.be/{vid}\n'
f"captions: auto-generated, unedited\n---\n\n# {title}\n"]
for (start, name), texts in by_chapter.items():
body = re.sub(r"\s*>>\s*", "\n\n", " ".join(texts)) # ">>" marks a change of speaker
out.append(f"## {name}\n\n[{clock(start)}](https://youtu.be/{vid}?t={start})\n\n{body.strip()}\n")
name = re.sub(r"[^a-z0-9]+", "-", title.lower()).strip("-")[:60]
open(f"{OUT}/{name}.md", "w").write("\n".join(out))
index.append((title, name, v["length_text"], [n for _, n in chapters]))
with open(f"{OUT}/index.md", "w") as f:
f.write("# Archive\n\n")
for title, name, length, names in index:
f.write(f"- [{title}]({name}.md) ({length})\n" + "".join(f" - {n}\n" for n in names))What the script does with the raw export:
- Chapters. The Markdown export comes in blocks, each headed with a timestamp like
### [0:49]. The script puts each block under the chapter it falls in and links the chapter's start time to the video at that second. - Speaker changes. The export marks a change of speaker with
>>. The script turns each into a paragraph break. - Front matter. Title, video ID, source URL, and a line saying the captions are auto-generated and unedited. That line is worth keeping until a person has edited the file.
- Index. One list with every video and its chapter titles.
One thing to know: the Markdown export only had chapter headings of its own after we had fetched the same video's info. On a video we had not touched, the first two exports had none; after one video-info call, the same export had 9 headings. That is why the script calls video-info first, and why it strips any headings the export already contains and builds its own.
The index for the first episode looks like this:
- [Personal Guarantee Insurance: How It Works | Jason Hunt Interview](personal-guarantee-insurance-how-it-works-jason-hunt-intervi.md) (46:06)
- Introduction to Inc.
- Jason's background in turnaround finance
- Defining the personal guarantee
- Napkin math walkthroughStep 3: what the cleanup looked like
For the LLM step we used Claude, working in a Claude Code session, on two pieces of one episode ("When the Business Is Just You", a 1 hour 17 minute interview with Marco Hsu). We gave it the chapter text and the guest and host names from the video page, and asked it to remove filler, fix obvious mishearings and label speakers, without adding anything the speaker did not say. We did not test running this unattended through an API, and we only did two excerpts, so we can't tell you how it holds up over a whole book.
Before, from the script's output (a fragment of the raw captions, with the speaker change marks removed):
Um long story short I actually sent three LOIs and it wasn't until the third one that mine was accepted and I think I did a bad job in my first call with the owner and the broker. Um it was a short call and I think I didn't I barely said anything.
After:
Marco: Long story short, I sent three LOIs, and it wasn't until the third one that mine was accepted. I think I did a bad job on my first call with the owner and the broker. It was a short call and I barely said anything.
From the same episode's "Deal structure" chapter we asked for a short post. The draft opened with:
Marco Hsu bought a home-garage maker of vintage Porsche engine upgrades after sending three letters of intent. The listing price was 3.5 times the owner's earnings. His first offer matched it but also asked for the inventory, equipment and some working capital, and it did not go through.
We checked each figure in the draft against the transcript. The draft was about 230 words, built from about 2,700 words of speech. It left out most of the conversation, which is what a blog post should do, but a person has to decide what is worth keeping. A post built this way reads like a summary of the guest, so decide whether you want that or the guest's own voice with quotes.
The problems we actually saw
All counts are across the 10 episodes.
Names are wrong, including the guests' own. The host says each guest's name in the first seconds, and the captions spell it differently from the video title in 8 of the 10 episodes:
| Title says | Captions say |
|---|---|
| Leyla Sudbury | Leila Sudbury |
| Jason Leisey | Jason Lizee |
| Marco Hsu | Marco Shoe |
| Jon Hyatt | John Hyatt |
| Rahib Diwan | Rahee Dwan, then Raheem |
| Elias Youssef | Elias Yousef |
| Jay Boren | Jay Borin |
| Brendan Guerin | Brendan Garin |
Business names fared the same. In one episode the company was written "Cloot Engineering" once and "Cluitt Engineering" once; the video's description spells it "Clewett". In another, the guest's company is "Inc." in the captions and the first chapter title, and "Ink" in the description. We could not tell which is right without the guest or the channel owner. Even the creator's own chapter titles can have the wrong spelling: one reads "Introduction to Marco Shu".
No speaker names. The export only knows that the speaker changed. A person (or an LLM given the names) has to say who is who, and the >> marks are not exact. In the captions, >> appears mid-sentence ("zero to one, >> but then acquired a three times larger business"), and around sound tags, so a sentence is split into two turns.
Sound tags and back-channels. The captions contain 186 bracketed tags such as [laughter] (96) and [snorts] (62), and 65 "Mhm" interjections. They are noise in a blog post, and the tags sometimes sit in the middle of a sentence.
Filler words. "Um" and "uh" appeared 2,904 times in 141,000 words, about 2%. "You know" appeared 1,179 times. Removing the first kind is easy. The second kind carries rhythm that a script cannot judge.
Small transcription slips. "0ero" for "zero" (twice) and "doggy daycarees" for "doggy daycares". These were rare, but you only find them by reading.
Sentences that do not survive as text. Speech repeats and restarts ("the the", "I I I think"). An LLM can smooth this, and it is also the step most likely to change what the person meant.
What needs a human
- Names and terms. Make a glossary of guest, company and product names before running any cleanup, and give it to the LLM. Check each name against a trusted source.
- Facts and numbers. Revenue, multiples and dates in the captions can be mis-heard. Check them against the video.
- Speakers. Read a few turns per episode against the audio.
- Judgment. Which 250 words of a 70-minute conversation make a post, and whether the guest would want it published.
- A book. Ten of these episodes came to about 141,000 words of raw speech, one conversation after another. A book needs a structure that the videos do not have. Chapter splits from the videos give you units to arrange, not a manuscript.
Rights, and what is not an edited transcript
YouTube auto-generated captions are the output of speech recognition. They are not an edited transcript, and publishing them as written would put the errors above under your name.
Only the owner of a channel, or someone the owner has given permission to, should republish its content. We used another creator's channel to run a test and have not published any of its text beyond the short quotes above, which are there to show the process. The videos and what is said in them are covered by copyright. In an interview, the guest is also a person whose words you are quoting, so even on your own channel, check what you agreed with your guests. This is not legal advice.
The searchable archive and the Project route
If you want to search the episodes instead of republishing them, the Markdown files from step 2 are a good starting point, but the quicker route is the one in Turn a YouTube Channel Into a Searchable Archive, which indexes passages and links each result to the minute. To ask questions of the channel with an AI assistant, see putting a channel into a Claude or ChatGPT Project. For other ways to pull every transcript at once, see downloading every transcript from a channel.
FAQ
Can I do this without an LLM?
The script above does the splitting, chapter headings, front matter and index without one. Without an LLM you still have the filler words, the sound tags and the missing speaker names.
What does it cost?
For 10 videos, 21 credits: 1 for the listing, 2 per video. New accounts get 200 free credits. The API has no 25-video cap (that applies to the one-click exports in the dashboard and the Chrome extension on a free account), only credits and rate limits. A video without captions fails and the script skips it. A video without chapters ends up under one heading, "Full episode".
Why not just publish the transcript?
The captions are unedited, as the errors above show, and a transcript is not a post. A reader wants a point of view, a structure and a reason to read, and YouTube's captions supply none of those.