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

13/06/2024
5226
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.

Ольга Тищенко icon | WEDEX
Olha Tyshchenko
Editor
commercial offer

    SEO promotionCopywritingSMM promotionDevelopmentContextual advertisingDesign
    Digital новини в нашому телеграм-каналі
    Інтернет-маркетинг
    простою мовою
    subscribe
    Other articles by the author
    Як перевірити сайт на віруси | WEDEX
    17/06/2024
    If you suspect a hack, you need to conduct a comprehensive scan and find the source of the infection. There are no universal instructions for this process, but there is a general sequence of actions that should be followed.

    Що таке посадкова сторінка | WEDEX
    22/07/2024
    A landing page is created with an emphasis on a specific offer and is aimed at a certain target audience. It's like a showcase that shows the most important and interesting things about the company.

    Цільова аудиторія що це та як її визначити | WEDEX
    04/06/2024
    The target audience is your potential customers, people who share common interests, pains, fears, desires, dreams, and needs. It is these users that your advertising campaign should be customized for.

    Latest articles by #SEO
    як оформити сторінку «Про компанію» | WEDEX
    29/10/2026
    Effective business storytelling structures information in such a way that the reader can sense the brand's evolution and the logic behind its decisions.

    концепція Inbound Marketing | WEDEX
    26/10/2026
    The effectiveness of inbound marketing is based on an understanding of exactly how consumers make their choices. This process is rarely strictly linear.

    Сходи Бена Ханта у маркетингу | WEDEX
    20/10/2026
    Ben Hunt's model is a tool that helps break down a customer's path to purchase based on their level of awareness and select the right messages for each stage.

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