Coding Script or NotebookGoogle ColabFree

YouTube Keyword and Tag Research Notebook (Autocomplete + Competitor Tags)

ForVideo and visualKeyword research

By Lazarina Stoy· Updated 24 Oct 2026

YouTube tag generator sites hand you a list of words with no reasons behind them. This free Google Colab notebook does the research a good tag list should come from: YouTube autocomplete for your seed terms, plus the titles, tags and view counts of the videos that already rank for them, pulled from the official YouTube Data API. You see where every keyword, title phrase and tag comes from, and which searches no top video targets yet.

Who it’s for

YouTube creators, video marketers and SEOs who plan videos around search, and anyone who wants to build a keyword universe for a channel from real data.

How to use it

  1. Open the notebook in Colab and run it with USE_SAMPLE = True. It uses real autocomplete responses saved on 24 October 2026 and a sample set of API responses, so you see every table without a key.
  2. Add your topics to SEEDS and the ones you want competitor data for to COMPETITOR_SEEDS, and set the language and country.
  3. Create a free YouTube Data API v3 key in Google Cloud, save it in Colab Secrets as YOUTUBE_API_KEY, and set USE_SAMPLE = False.
  4. Run the notebook and work through the topic groups, the tag and title tables and the gap list.
  5. Edit the suggested tag list by hand, then export the CSVs and the Excel workbook for Google Sheets.

What you get

  • Autocomplete expansions (a to z, questions, modifiers) grouped into readable topics such as questions, tools, courses and year
  • The top videos per seed with title, channel, tags, views, views per day, publish date and duration
  • Tag frequency and co-occurrence, plus title n-grams and title patterns with median views
  • Gaps: autocomplete phrases that no top video uses in its title or tags
  • A suggested tag list with the reason for each tag, counted against YouTube’s 500-character limit the way YouTube counts it

Limits and costs

The API is free within the default quota: each seed costs one search.list call (100 a day in its own bucket) and one videos.list call (1 unit of 10,000 a day). The autocomplete endpoint is undocumented, so Google can change or block it; the notebook records failures and keeps going. Autocomplete shows predicted queries, not search volume. And keep tags in proportion: YouTube’s own help centre says the title, thumbnail and description matter more, and that tags play a minimal role unless your topic is often misspelled. I’d use this mainly for keyword and title research, with the tag list as the last small step.

Read YouTube SEO: how to boost video visibility and grow your channel for the full workflow and How to do a YouTube SEO audit to benchmark the channels you find here, and build it into a wider keyword strategy in the Semantic AI-powered SEO Keyword Research course.

What’s included

  • YouTube autocomplete for any seed, expanded a to z plus questions and modifiers, grouped into topics
  • Top-ranking videos' titles, tags, views and publish dates from the official YouTube Data API v3
  • Tag frequency and co-occurrence, title n-grams and title patterns with median views
  • Gap list of searches no top video targets, and a tag list that fits the 500-character limit
  • Runs with no key in sample mode; costs 2 API calls per seed live, with CSV and Excel export