Step-1: Log in to your Google account and go to the Google API Console.
Step-2: Please follow the below image steps.
Step-3: Enter your Project name and click on create button.
Step-6: Click on right side Create credentials button to generate API key
API Key need to be specified in Your_API_KEY parameter.
Are you want to get implementation help, or modify or extend the functionality of this script? Submit paid service request