Skip to content

maxime-aknin/youtube-playlist-video-ids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-playlist-video-ids

Retreive all video ids from a Youtube playlist

Usage

First, you have to get an api key for YouTube Data API v3

Using a dotenv file

Create a .env in the project root directory and add these variables:

API_KEY={YOUR API KEY}
PLAYLIST_ID={YOUR PLAYLIST ID}

Then just do

npm start

It'll print the video ids to stdout.

Using command line arguments

You can also handle everything in your terminal

npm start -- --api-key {YOUR API KEY} --playlist-id {YOUR PLAYLIST ID} > {TARGET FILE}

About

Get all video ids from a Youtube playlist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published