YouTube API

Remove All YouTube Liked VideosyoutubeLike Watch Later, YouTube's Liked videos playlist (internal ID ) has no official "Unlike all" button — only… Remove All YouTube Watch Later VideosyoutubeYouTube does not currently ship an official "Remove all" button for the Watch Later playlist. YouTube Search Engine & Brand-Safety PlatformyoutubeThis page documents the design and implementation of a high-performance search and classification platform…

1. Overview

Reference designs and worked examples drawn from production systems built on the YouTube Data API. Covers large-scale crawling, Xapian-backed full-text search and classification, BM25 ranking, NLP pipelines, and brand-safety / contextual-targeting applications for advertising on social video platforms.

2. Pages

YouTube Search Engine & Brand-Safety PlatformyoutubeEnd-to-end design: YouTube Data API ingestion, Xapian probabilistic search, BM25 ranking, NLP feature… Remove All YouTube Watch Later VideosyoutubeThe official "Remove watched videos" method, plus a browser-console script that removes every video (watched… Remove All YouTube Liked VideosyoutubeA browser-console script that unlikes every video in the Liked videos playlist (list=LL) automatically, with…

3. How the pages fit together

Two Ways to Work with YouTube Data Data API v3 API key / OAuth Crawler quota-aware Index + NLP Xapian, BM25 Search / classify brand safety Account cleanup (Watch Later, Liked videos) has no bulk API, so it runs as a browser-console script against the signed-in YouTube page instead.

The pages cover two different ways of working with YouTube. The search-engine design uses the official YouTube Data API v3: an API key for public metadata, or OAuth for user-scoped data, and a quota measured in units per day where search requests are much more expensive than list requests by ID. A production crawler therefore discovers video IDs cheaply, batches detail lookups, and stores raw responses so the index can be rebuilt without spending quota again. The text is indexed with Xapian, ranked with BM25 and enriched with NLP features for brand-safety classification.

The two cleanup pages solve a smaller problem: removing every item from the Watch Later or Liked playlists. These are personal playlists with limited API support, so the scripts drive the YouTube web interface from the browser developer console, clicking menu items with delays, retries and lazy-load handling.

4. When to use which approach

TaskApproachNotes
Collect metadata for many public videos or channelsData API v3Plan around the daily quota; cache responses
Build search or classification over video textAPI + local indexSee the search-engine design
Bulk-clear Watch LaterBrowser scriptRuns as you, in your session
Bulk-unlike videosBrowser scriptSlow by design to avoid rate limits

Browser scripts depend on YouTube's page structure and can break when the interface changes; read them before pasting them into a console, since console code runs with your account's full permissions.