__ __ _______ _
\ \ / / |__ __| | |
\ \_/ /__ _ _| |_ _| |__ ___ ___ ___ __ _ _ __ ___
\ / _ \| | | | | | | | '_ \ / _ \ / __|/ __/ _` | '_ ` _ \
| | (_) | |_| | | |_| | |_) | __/ \__ \ (_| (_| | | | | | |
|_|\___/ \__,_|_|\__,_|_.__/ \___| |___/\___\__,_|_| |_| |_| _ _ _ _ _
| | (_) | (_) | | |
___ ___ _ __ ___ _ __ ___ ___ _ __ | |_ __ _ _ __ _ __ _| |__ _| | __ _| |_ ___ _ __
/ __/ _ \| '_ ` _ \| '_ ` _ \ / _ \ '_ \| __| / _` | '_ \| '_ \| | '_ \| | |/ _` | __/ _ \| '__|
| (_| (_) | | | | | | | | | | | __/ | | | |_ | (_| | | | | | | | | | | | | | (_| | || (_) | |
\___\___/|_| |_| |_|_| |_| |_|\___|_| |_|\__| \__,_|_| |_|_| |_|_|_| |_|_|_|\__,_|\__\___/|_|
The app needs to read and delete your channel comments and compare your profile with commenter profiles, so we need to get API key which gives access for it.
-
Create new project in the Google Developers Console
The app name can beYouTube scam comment cleaner
for example. -
Enable YouTube Data API v3
-
Select Credentials from the left side menu -> then press
+ CREATE CREDENTIALS
button and selectAPI key
-
Create .env.local file and configure
YOUTUBE_API_KEY
to itYOUTUBE_API_KEY=<your-api-key>
-
Open the API key settings and configure API restriction to only allow
YouTube Data API v3
-
Add
IP address
restriction so other people won't be able to use your API key even if they steal it (optional but recommended)