- Navigate to https://console.developers.google.com
- Click
Select a project.
- Click
New project.
- Give it a name and click
Createbutton.
- Click
Library, find and click onYouTube Data API v3box.
- Click
Enable.
- Click
Credentials. - Click
Create credentials. - Select
API key.
- Copy token to your CLI's configuration file or set it as an environment variable:

[tokens]
youtube = "key1"Or set the environment variable:
export PODSYNC_YOUTUBE_API_KEY="key1"For API key rotation, you can specify multiple keys separated by spaces:
export PODSYNC_YOUTUBE_API_KEY="key1 key2"