Get your own YouTube API key
For use with Cloaki's "Bring your own key" featureCloaki works out of the box using its own privacy proxy — you don't need an API key for normal use. The optional Bring your own key feature lets power users supply a personal YouTube Data API key, which gives you your own daily quota (so you're never limited by the shared one) and lets you verify exactly what data is sent. This guide walks you through creating one. It's free, and it takes about five minutes.
You'll need a Google account. For the best privacy protection you may want to create a dummy account that is only used for Cloaki and not otherwise associated with your personal details. The YouTube Data API has a generous free tier (10,000 quota units per day by default), and Cloaki's usage stays well within it for typical browsing. Google does not charge for this API.
Step 1 — Open the Google Cloud Console
Go to console.cloud.google.com and sign in with your Google account. If this is your first time, accept the terms of service when prompted.
Step 2 — Create a project
At the top of the page, click the project selector (it may say Select a project) and choose New Project. Give it any name you like — for example, Cloaki — and click Create. Wait a few seconds for the project to be created, then make sure it's selected in the project selector.
Step 3 — Enable the YouTube Data API v3
- In the search bar at the top, type YouTube Data API v3 and select it from the results.
- On the API's page, click Enable.
If you'd rather navigate by menu, open APIs & Services → Library, search for the same API, and enable it there.
Step 4 — Create an API key
- Go to APIs & Services → Credentials.
- Click Create Credentials at the top, then choose API key.
- Google generates a key and shows it in a dialog. Click the copy icon to copy it.
Step 5 — Restrict the key (recommended)
Restricting the key limits the damage if it's ever exposed. In the dialog (or later from Credentials, by clicking your key's name):
- Under API restrictions, choose Restrict key and select YouTube Data API v3. This ensures the key can only be used for YouTube, nothing else in your account.
- Leave Application restrictions set to None. iOS app and HTTP-referrer restrictions don't apply to the way Cloaki sends requests, and setting them can cause requests to fail.
Click Save.
Step 6 — Add the key to Cloaki
- Open Cloaki and go to Settings.
- Find Bring your own key and paste your API key.
- Save. Your searches and channel requests now use your personal quota.
How your key is used
With the proxy enabled (the default), your key is forwarded by Cloaki's proxy server, so your IP address stays hidden from Google even though the requests count against your key's quota. With the proxy disabled, your key — and your IP address — are sent directly to Google. Either way, requests made with your key count against your own Google account's quota and can be associated with that account by Google. See the Privacy Policy for full details.
Troubleshooting
- Requests fail or return "access denied". Make sure the YouTube Data API v3 is enabled (Step 3) and that any Application restrictions are set to None (Step 5).
- "Quota exceeded". Each Google project starts with 10,000 units per day, which resets at midnight Pacific Time. Heavy searching can use it up; wait for the reset, or request a higher quota from Google.
- The key stopped working. If you deleted or regenerated the key in the Cloud Console, create a new one and paste it into Settings again.