Can I Calculate the Total Length of a YouTube Playlist Using ChatGPT Like This Site?

I’ve recently come across a site youtube-playlist-length-calculator.onrender that allows you to calculate the total duration of any YouTube playlist. It’s pretty handy for quickly figuring out how long it would take to watch an entire playlist.

I’m curious, can I perform a similar task using ChatGPT? For instance, is it possible to provide a list of video lengths to ChatGPT and have it calculate the total duration for me? Or perhaps use some other way that combines ChatGPT’s capabilities with external tools or APIs to achieve the same result?

Looking forward to any suggestions or creative solutions!

Hi!

You can create a custom GPT with a custom action to access the YouTube Data API. From there, you first retrieve the playlist and the corresponding videos, and for each video, obtain the duration. The code interpreter can sum up the values.

I don’t think using a custom GPT is necessary for this task, but it’s definitely possible.

Hope this helps!