Python YouTube API Tutorial: Calculating the Duration of a Playlist @coreyms
Python YouTube API Tutorial: Calculating the Duration of a Playlist  @coreyms
Uploaded June 2020 | Updated November 2026, 3 hours ago
In this Python Programming Tutorial, we'll be learning how to calculate the duration of a YouTube playlist. The duration of a playlist is likely one of the first things people will look for before watching, but YouTube doesn't currently have this information available on their site. So we will use the API to calculate this for us. Let's get started...

The code for this video can be found at:
bit.ly/YouTubeAPI-02

YouTube API Tutorial - youtu.be/th5_9woFJmk
Regular Expressions Tutorial - youtu.be/K8L6KVGG-7o
Datetime Tutorial - youtu.be/eirjjyP2qcQ

YouTube API Docs - developers.google.com/youtube/v3
Google API Python Client - github.com/googleapis/google-api-python-client

✅ Support My Channel Through Patreon:
patreon.com/coreyms

✅ Become a Channel Member:
youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - coreyms.com
My Second Channel - youtube.com/c/coreymschafer
Facebook - facebook.com/CoreyMSchafer
Twitter - twitter.com/CoreyMSchafer
Instagram - instagram.com/coreymschafer

#Python
Python YouTube API Tutorial: Calculating the Duration of a PlaylistPython Tutorial for Beginners 5: Dictionaries - Working with Key-Value PairsPython FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for ProductionPython Tutorial: Datetime Module - How to work with Dates, Times, Timedeltas, and TimezonesPython Tkinter Tutorial (Part 1): Getting Started, Elements, Layouts, and EventsPython FastAPI Tutorial (Part 19): Deploy with Docker - Serverless Containers and Custom DomainPython FastAPI Tutorial (Part 13): Pagination - Loading More Data with Query ParametersPython Multiprocessing Tutorial: Run Code in Parallel Using the Multiprocessing ModulePython Tutorial: Type Hinting vs Type Checking vs Data Validation - What’s the Difference?Python Flask Tutorial: Deploying Your Application (Option #1) - Deploy to a Linux ServerAwait Keyword Explained: Coroutines, Futures, and Tasks #shortsPython FastAPI Tutorial: Full Course for Beginners - Build a Full-Stack Web App
Corey Schafer |

Python YouTube API Tutorial: Calculating the Duration of a Playlist

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER