APIGoogleGoogle URL ShortenerPHPYoutube

Steps to generate YouTube Data API and URL Shortener API

google-api-banner

[dropcap]W[/dropcap]hen calling an API that does not access private user data, you can use a simple API key. This key is used to authenticate your application for accounting purposes. The Google APIs Console documentation also describes API keys.

Following are the steps to generate YouTube Data API & URL Shortener API with image examples:

First you need to Go to https://console.developers.google.com and then follow the images given in below steps to generate YouTube Data API & URL Shortener API

Step 1:

We would be creating new project for the application.

For eg. i would be creating the Project named Demo Project

As shown in red circle below click on Create Project, you would be redirected to project page as shown in Step 2.
get_google_api_step1.png

Step 2:

Provide the name for your project (for demo i am creating project with name Demo Project)
get_google_api_step2.png

Step 3:

After creating project you would be redirected to below page where you would be creating the API key.
get_google_api_step3.png

Step 4:

After clicking the “API Enable & mange API” in above step you would be redirected to below page, here clik on credentials to proceed with creating the API key.
get_google_api_step4.png

Step 5:

Here click on API Key as we are focused on creating the API key.
get_google_api_step5.png

Step 6:

Here we are concered with creating the Browser key which will allow to access the API data from any browser as well as code.
get_google_api_step6.png

Step 7:

Here we provide the name for the key which by default is Browser key 1 (you can change it if needed)

get_google_api_step7

Step 8:

Here is your API key
get_google_api_step8.png

Step 9:

Now you got your key, you need to enable the key for various services.

For enabling the services please go to Overview tab.

get_google_api_step9.png

Step 10:

In this step we would be enabling the Youtueb Data API
get_google_api_step10.png

Step 11:

After clicking on the Youtube Data API you woudl be redirected to the below page, where just click Enable API for enabling it.
get_google_api_step11.png

Step 12:

After enabling the API you would be redirected to the below page.
get_google_api_step12.png

Step 13:

For enabling the URL Shortner API, please click on URL Shortner API on Overview page and you will be redirected to below page.

Just enable the API by clicking Enable API
get_google_api_step13.png

Step 14:

After enabling the API you would be redirected to below page.
get_google_api_step14.png

Your API is ready to use, But dont forget to make a note of your API key 😉

About author

An enthusiast, creative web designer & developer working for Spryox.com

Leave a Reply

Your email address will not be published. Required fields are marked *