How to create Google Search Console API Key

Google Search Console is the most important tool when it comes to keyword data crunching on your site. That said, data for queries and pages must be exported separately. There is no automatic export for the search queries per page and all the exports are limited to 1000 search keys.

In this article I will cover the process of creating API keys that are required to communicate with the Google Search Console API. This makes it possible to query Google Search Console using a simple scripting language like Python and unlocking the possibility to automate time-consuming & repetitive tasks.

Create Google Search Console API Key

The process of creating an API in Google Search Console is very complex and you will need to navigate multiple pages to gain access to the Keys. The keys are created from the Google Developers console. This is a separate Console that developers use to manage the different entry points to their services.

STEP 1 – Create a Project and Enable the Google Search Console API

In this step we will be creating a project in the Google Developers Console and enable the API.

1. Create New Project

Access the Google Developers Console and create a new project. Login with credentials that you use to access your projects on Google Search Console.

google search console new project

Provide a meaningful project name that will describe your project. A project is the main container that can be used to access multiple Google Services through API.

2. Go to the main dashboard and search for Google Search Console and click on Google Search Console API

google search console api option

3. Click Enable. Once enabled functionality to access Google Search Console will be added to the UI.

New project buttom

Step 2: Setup the OAuth Consent Screen

The consent screen is required so that the user will see a warning that they need to provide permission to your app.

1. Go to the menu on the right and Select OAuth Consent Screen


2. If you want to integrate through code select Internal and press CREATE.


3. Provide the product name and the support mail. Use the email that is associated with your Google Search Console Account and Press Save.

oauth consent screen details

Step 3 Create Credentials

Now that you have setup the OAuth consent screen you can move to create the actual keys that you will need to access the API.

1. Go the left menu and select Credentials.

select credentials

2. Click on Create Credentials

create credentials

3. Select OAuth client ID

select auth clientid

4. Setup the application type to the Desktop app and Provide a name for the client application.

create oauth clientid

5. 5. Once you press CREATE you will be presented with the ClientID and the Client Secret. These are the credentials you will need to access the Google Search Console through its API. You can now use code to simply proceed with the data extraction from Google Search Console

google search console api keys


Join Our Newsletter

Follow our SEO insights and industry news.

Want more traffic & brand awareness?

Answer these quick questions to request an action plan explaining what you need to do to get more traffic.

You’re almost done!

To request a step-by-step action plan to increase your web traffic, fill in your name and email.