01 Get playlist 'id', playlistItem() and videoId

01

You can find the playlist id in the url of the playlist page. https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p

                    PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p

But the api way is described in this section

02

Use the script from 1. Getting Started Oauth video

import os
from googleapiclient.discovery import build
import json
# Get new api key this one is fake
api_key = 'AIzaSyBycc_eAr1_P3NWDzR08IHkCM'
youtube = build('youtube', 'v3', developerKey=api_key)

request = youtube.channels().list(
    part='statistics',
    forUsername='schafer5'
)

os.system('clear')
response = request.execute()
print(response)

03

Put code for getting playlistId here when done