When adding videos to your pages, MindTouch allows you to conveniently search YouTube videos right from your editor. Enabling this function requires obtaining an API key from the Google Developers Console and storing the API key in the MindTouch control panel.
Why do I need to generate my own API key?
There are two reasons why you may need to generate your API key:
- You have a custom domain, i.e. your URL does NOT end in
- You do not have a custom domain (a less likely scenario) but want to use your own API key to take advantage of YouTube analytics data and want to have a larger preset limit of YouTube requests a day.
MindTouch reserves the right to require you to use a custom API key for your site if your YouTube search traffic is deemed higher than the average site.
How to set up YouTube search
Step 1: Log in to the Google Developers Console
- Log in to or create a Google account.
- Navigate to http://code.google.com/apis/console.
- Click Enable and manage APIs.
- In the New project dialog, enter your project name, accept the terms of service and click Create.
- Under YouTube APIs, select YouTube Data API.
- Click Enable.
Step 2: Create your credentials and API key
- Click the Go to credentials button.
- Click the API key link in the Credentials dialog.
- Select Browser key.
- Add a browser key name, optionally add referrers and click Create.
- Copy the API key.
Step 3: Add the API key to your editor settings
- Navigate to Site tools > Control panel > Settings > Editor.
- Paste the API key into the YouTube API Key field and click Save.
It may take a few minutes before the API settings take effect.
Step 4: Verify YouTube search works
- Open a page in Edit mode.
- In the editor toolbar, click the video icon.
- In the YouTube tab, enter a search in the Video URL text field.
- Verify the editor displays YouTube videos results.