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
    11/07/2024
    Native advertising is a special type of advertising content that integrates seamlessly into the environment of the platform on which it is placed and gives users the impression of a natural part of the content.

    04/12/2024
    SEO text is one of the tools used for effective SEO promotion of websites on the Web. Thanks to the creation and publication of such optimized texts on the resource, the pages become more relevant and gradually raise the site to the top of the search results.

    24/09/2024
    HTTP status (response) code or, as it is often called, “status code” is a small three-digit number that conveys information about how the user's request was processed by the server. It helps to determine whether the server has successfully processed the request or if there were any problems.

    Latest articles by #SEO
    28/08/2025
    In SEO, it is not only the number of inbound links that matters, but also their diversity. One of the tools that help build a natural link profile is anchorless links.

    29/07/2025
    Adding a Google map to your website is not just a trendy design element, but a tool for communicating with your customers.

    18/07/2025
    Migration is a complex process, but it can be carried out without significant losses. However, incorrect website transfer can cause a number of problems that can seriously affect SEO and the ranking of the new version of the website in the future.

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