1. Go to
console.cloud.google.com and create (or pick) a project.
2. Search "YouTube Data API v3" in the API library and click Enable.
3. Go to Credentials → Create Credentials → API key.
4. Paste that key below. Free tier covers thousands of checks a day.