-
Notifications
You must be signed in to change notification settings - Fork 42
Generating a YouTube API key
You can give Pinchflat a YouTube API key if you need Fast Indexing to be even faster and more accurate.
Most users don't need this but it can make a huge difference if you're attempting to archive videos that are often quickly deleted or restricted after uploading OR if you want the quickest and most reliable media updates possible.
Note
By default an API key can perform Fast Indexing for ~65 sources with a polling interval of 10 minutes. If there's an issue with your API access the app will fall back to RSS.
Caution
You are at Google's mercy when using the API. If they don't like what you're doing they can restrict/revoke your API access entirely or, potentially, even ban your Google account.
I don't think this is likely to happen, but as a best practice I strongly recommend performing these steps with a burner Google account that's completely separate from your main account.
- Visit the Google Cloud Console
- IMPORTANT: make sure you're using the expected Google account. You can select the account you're using in the upper right
- Create a new project. Note that the text you see in the upper left may be different than mine:
- Give your new project any name. Leave the other settings as-is unless you know what you're doing
- Search for and enable the
YouTube Data API v3
:
- Generate a new API key:
- Copy that new key and save it for later
- Lock down that API key so it can only be used for the
YouTube Data API v3
:
- Add the key to Pinchflat and it'll automatically be used for Fast Indexing going forward:
- Wait for the next Fast Indexing run to occur
- Afterwards, check your logs. If you see
Fetching recent media IDs from YouTube API
and you DON'T seeFailed to fetch YouTube API
, you're in business!