Arun Gopinath

Discover with Arun Gopinathan: Tech, Photography, and Everything in Between

Automatically update the titles in your Youtube videos.

Arun Gopinath / 2020-11-17


Magic video

The idea of changing the title of the youtube video automatically seems insane to me. There is a tutorial about how to achieve this feat is thoroughly done by Amit Agarwaal. The original concept was by Tom Scott. This article is all about the implementation of the same in my video.

Youtube api and Google scripts are primarily responsible for this weird feat. Most of the contents of this article are from labnol.org.

What you have to do ?

const id = "z_-P9oLM92k";
const template = 'This timelapse of fisherman has VIEWCOUNT views and counting';
// If time based trigger doesn't exist, create one that runs every 1 minutes
    if (triggers.length === 0) {
      ScriptApp.newTrigger(triggerName).timeBased().everyMinutes(1).create();
    }
  }

Run function