What is the Google Index API and how to set it up?

What is the Google Index API and how to set it up?
What is the Google Index API and how to set it up?

Most site owners or SEO specialists have come across the fact that since relatively recently, Google has removed the ability to bulk submit pages for indexing from the Search Console functionality.
To facilitate the reindexing procedure, a special script was created – the Google Index API. And although for a long time this tool was considered relevant only for job search sites and with the presence of live broadcasts (as John Muller himself claimed), practice has shown that it is great for all web resources and data.

When may Indexing API be needed?
In the process of optimizing a website for search engines, it may happen that new pages that have been created and should be indexed in Google do not appear in the search results for a long time for various reasons.
Thanks to Indexing API you can send up to 200 pages for crawling and indexing every day (up to a maximum of 100 pages per request), which significantly speeds up the process from page creation to their appearance in organic search results.

So, while the search engine number 1 puts new spokes in the wheels of webmasters, we bring to your attention detailed instructions for installing and configuring this script.

Step 1 – Create an API project

Go to the Google API Console

Create an API project | WEDEX

To do this, go to this link.
Check boxes and continue.
Next, from the list of options, you must select “Create a new project” or “Create project”, depending on the language.

Create an API project | WEDEX

Next, you will be presented with the following screen:

Create an API project | WEDEX

The name of the future project should be entered in the top line, and the bottom line can be left blank.
Next, go to “service accounts” through the main menu:

Create an API project | WEDEXIn the window that appears, you will need to create a new service account:

Create an API project | WEDEX

In the next window, you need to fill in only the first line (required in Latin):

Create an API project | WEDEX

The second line will be generated from the first, and the third can be left unchanged.
In the next window, you must select the user status. In our case, select “Owner”.
Click “Finish” and see your first created account in the list:

Create an API project | WEDEX

Now it’s time to upload our API key file.
In the window where your new account is displayed, click on the 3 dots in the action column and select “Key Management”:

Create an API project | WEDEX

Next, select “Add key” and “Create a new key”:

Create an API project | WEDEX

Next, we offer a choice of 2 key formats, where JSON is already selected by default, which is what we need, click the “Create” button:

Create an API project | WEDEX

If you followed the instructions exactly, then a .json file should be downloaded to your computer.

Step 2 – Customizing the Script

First, download the script here.

Customizing the Script | WEDEX

After downloading, unpack the archive.
We find the “service_account” file in the unpacked archive and open it.

Customizing the Script | WEDEX

Next, we replace all the contents with data from the previously received .json file.

Step 3 – Linking the Script to Google Search Console

Open Google Search Console and go to the project.
Next, go to the settings and click “Add user”.

Linking the Script to Google Search Console | WEDEX

On the next screen, we will see 2 fields:

Linking the Script to Google Search Console | WEDEX

In the first, enter the email address that was previously created in the Google Cloud Platform (in the image below), and in the second, select “Full access”.

Linking the Script to Google Search Console | WEDEX

Next, we need to select the line where we have the type of rights “owner”, click on the three dots and click “Add owner” and again insert the address from the Google Cloud Platform created earlier.
If everything is done correctly, then the status “Owner” will appear opposite the account:

Linking the Script to Google Search Console | WEDEX

Now enable the Google Index API. To do this, go to here.
Select our project and click “Enable”:

Linking the Script to Google Search Console | WEDEX

Step 4 – Activating the Script

Among the unpacked archive we find the file “urls”. Open it and enter all the URLs there. that need to be indexed. Up to 200 urls can be sent per day.

Activating the Script | WEDEX

Next, download the node.js source code here.
After that, go to the command line and go to the google-indexing-api-bulk-master folder that you downloaded earlier.
By default, the folder will be at Desktop – Roots – google-indexing-api-bulk-master.

Activating the Script | WEDEX

Go to the folder “cd Desktop”.
Add “cd Roots” in a new line and press “Enter”.
In a new line, add “cd google-indexing-api-bulk-master” (file location folder) and press “Enter” again.
The next step is to upload the library files to the same folder. To do this, there are the following commands:

C:\Users\user\Desktop\Roots\google-indexing-api-bulk-master> npm install requests
C:\Users\user\Desktop\Roots\google-indexing-api-bulk-master> npm audit fix
C:\Users\user\Desktop\Roots\google-indexing-api-bulk-master> npm audit fix –force

We enter these values ​​each from a new line and wait a bit for the data to load.

Activating the Script | WEDEX

After installing all the library files, run the last node index.js command.
The result should be the following:

Activating the Script | WEDEX

When you want to index the next pages, just remove the old urls from the urls file and put in the new ones.
In the command line C:\Users\user\Desktop\Roots\google-indexing-api-bulk-master> add node index.js and press “Enter”.
But this is only for the current project. For new ones, everything will have to be done all over again.

To summarize

In this article, we looked at the Google Index API – a powerful tool that allows website owners to manage the process of indexing and deleting pages. Thanks to this, SEO specialists can effectively promote their sites by speeding up the process of new pages appearing in search results. We also explored how to customize the Index API to send notifications to the search engine when pages are added or removed. By customizing this tool, webmasters are able to control the indexing of their site and achieve better organic results. Using Google Index API is an important part of optimizing a website to improve visibility and attract a targeted audience.

Olha Tyshchenko
Editor
commercial offer

    SEO promotionCopywritingSMM promotionDevelopmentContextual advertisingDesign
    Digital новини в нашому телеграм-каналі
    Інтернет-маркетинг
    простою мовою
    subscribe
    Other articles by the author
    23/04/2024
    According to Google statistics for 2023, half of users prefer to use voice search on their mobile devices. 35% of users use voice assistants to find out the weather and news. A billion or more voice queries are made every day.

    17/04/2024
    In the pursuit of digital presence and competitiveness, understanding the basics of SEO becomes a necessity for every web resource owner. The aspects that we will describe below are at the heart of the functioning of search engines and determine the visibility of the site in the online space.

    09/04/2024
    Google AdSense is a convenient, easy and effective contextual advertising tool that reaches the target audience all over the world and provides an opportunity to generate income on your website.

    Latest articles by #SEO
    13/05/2025
    New opportunities in internet marketing are constantly emerging, changing, and disappearing. However, there are strategies that, despite their controversial nature, continue to enjoy popularity. One such strategy is CPA.

    21/03/2025
    Meta Ad Library is a free tool that contains a large number of existing advertising creatives for Facebook, Instagram, and WhatsApp.

    11/03/2025
    Affiliate marketing is used in many digital business sectors, where joint efforts help to attract targeted traffic and increase earnings for all program participants.

    WhatsApp Telegram Viber Почати розмову