Useful

Getting playlistId by username on Youtube

Youtube stopped supporting API version 2.0, which means that open access to its api is closed. To access the Youtube API, you need to use API version 3.0, in which you ALREADY need to specify the API Key, which can be obtained in the google console.

To get a list of the user's videos, you need to specify either the ID of the playlist or the userName of the account, if you have one handler, then checking what is transmitted is somehow stressful, but there is a way out, by userName you can get the ID of the playlist, which in turn can be specified to receive videos.

This can be done here