How do I set up an API key for Google PageSpeed? Print

  • 0

Google API Key’s are free, and can be obtained from Google. In order to get a key, you will need a Google account such as a GMail account. If you do not already have a Google account you should create one here.

gapi1

Navigate to http://code.google.com/apis/console.  

Once logged in you should see the Create Project button. If you have already created a project you can skip this part to Enabling the PageSpeed Insights API.

gapi2

Google will have automaticly generated a Project name and Project ID for you. You can leave these as-is or tweak as per your preferences. You must agree to google’s Terms of Service, then click the Create button.

 

If this is a new account, google may require you to verify you are not a spammer by having them call or text your phone. You will be given a verification number that you must enter on the next screen to continue. If you had to verify your account, you will be directed back to this screen after verification, click create to continue.

 

gapi6

Google will now create your project. After your project has been created, you can enable the google services you want to use. Find “PageSpeed Insights API” in the list, and click it.

gapi7

You must accept Google’s Terms of Service to continue.

gapi8

Click the Credentials menu item from the left to move on to the API key creation. Click Create New Key button under the Public API access area.

gapi9

Select Browser key from the key types.

gapi10

Google will ask you if you would like to limit the domains that are allowed to interact with this API key. This is optional, and you can  leave this field blank. Click Create to continue.

gapi11

You will now see the Alpha-Numeric API Key which we will need for the last step. Copy this key.

Paste your API key into a reply to our support department and we will take care of the rest.


Was this answer helpful?

« Back