Page 6 of 6

YouTube channels

3 notesUpdated 2 days ago
Ask your AIChatGPTClaude

N2

Add YouTube channels by @handle, without an API key

The problem. People copy channel links like youtube.com/@product-builder-voice, but YouTube's feeds need the channel's internal id. Turning a handle into an id used YouTube's Data API, and a new Google project's API key gets a daily quota of 0. Adding a channel by its @handle failed with "YouTube channel lookup failed".

Why it matters. Raising the quota meant an audit form with screenshots of our sign-in flow, then waiting for Google's review. Until then, curators couldn't add channels the way they naturally copy them.

How we solved it.

  • Every channel's page includes its id in a standard link tag, so MileString now reads the id straight from youtube.com/@handle.
  • A request header skips the cookie-consent page YouTube shows to servers in the EU.
  • If the lookup ever fails, the error asks for the youtube.com/channel/UC… link, which always works.

Key benefits.

  • @handle links work.
  • There's no API key, quota or audit form to manage.
  • There's one less secret to configure and rotate.

N1

Follow YouTube channels from a String

The problem. Much of what people learn comes from YouTube talks and tutorials. Turning a video into a note meant finding it, watching it, then writing it up somewhere else.

Why it matters. A String about a topic should keep up with the best creators in that topic, without its curator checking YouTube every day.

How we solved it.

  • A String's admins add up to 10 YouTube channels.
  • New uploads (not Shorts) wait in a private New videos list for the String's curators.
  • For each video, Summarise in Gemini copies a ready-made prompt and opens Gemini, which can watch YouTube videos for free. Paste the summary or your own take, then Add note, or Skip the video.
  • The note plays the video above your text.

Key benefits.

  • Curators get a review queue instead of a research chore.
  • Summaries cost the server nothing, because Gemini writes them in the curator's browser.
  • Nothing is published on its own: a person decides every time.

N3

YouTube channels that keep up on their own

The problem. A String can follow YouTube channels, and new uploads wait in a queue until a curator turns one into a note or skips it. The first version checked every follow separately: if 1,000 Strings followed the same channel, the server fetched that channel 1,000 times. It checked 100 follows every half hour, which was enough for about 1,200 follows. Past that, new videos would have arrived days or weeks late.

Why it matters. The queue is only useful if it's fresh. A talk that shows up a week late has already been shared everywhere else. As more Strings follow more channels, polling one follow at a time gets slower for everyone, and a popular channel costs the most because it's fetched again for every follower.

How we solved it.

  • Store each channel and video once. One copy is shared by every String that follows it. A String keeps only its follows and its decisions (added or skipped). Any video it hasn't decided on is waiting.
  • Let YouTube tell us. We subscribe to each channel through WebSub, YouTube's free push service. When a channel uploads, YouTube notifies MileString and we read that channel right away. No API key and no quota are needed.
  • A daily check as backup. Each channel is also read once a day, in case a notification goes missing.
  • Clean up as we go. Channels nobody follows and videos older than a month are deleted, so the database stays small.

Key benefits.

  • New videos reach a String's queue within minutes instead of hours.
  • The work grows with the number of distinct channels, not the number of follows. A channel followed by 1,000 Strings is read once.
  • One server can handle about 140,000 channels a day.
  • There are no API keys, quotas or audit forms. It runs on YouTube's public feeds and push service.
  • It's built once and doesn't need revisiting as more people use it.