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.
