Website indexing via Google Indexing API

You are reading the English archive. The main navigation and service pages are available in Ukrainian.

Website indexing via Google Indexing API

First, to set up the Google Indexing API, go to website developer and create a Service account. Specify the role as "Owner".

my project - Keys

Go to the project and create an access key. Click "Add Key", select "JSON" and upload the script.

email account

Go to the project details and copy the Email. We need to extend access to this address in the Google search console.

Users and permissions - search console

Please note that access must be with the "Owner" rights.

Downloading github files

google-indexing-api-bulk

Go to github and download the files at hereby link. Transfer the files to the desired folder at once.

path index api

Paste the downloaded project script into the "service_account.json" file. Copy the selected urls to be indexed into the "urls" file.

Go to Windows Powershell

Download and install Windows Powershell on official website.

Windows PowerShell

Commands to load libraries into a script folder in PowerShell. Write them in the following order:

npm install requests
npm audit fix
npm audit fix -force

Next, we write the paths for indexing:

cd E:\index\project folder

node index.js (run the script)

Possible problems

  1. If you get an error, upload the library to the project folder via Powershell:
    npm install requests
    npm audit fix
    npm audit fix -force
  2. Check if the API is open by link.
  3. Do not forget about the limits of the Google Indexing API.
  4. The Google Indexing API account must have full "Owner" access to the Google search console.

Setting up a plugin on WordPress

Instant Indexing for Google

Go to WordPress and install the plugin instant indexing for Google. Activate the plugin and go to the settings.

Instant Indexing for Google settings

Add the file "service_account.json" and select the pages to be automatically indexed - save the changes.

← All articles

SEOKOZYR · COMMUNITY

Article discussion

Share your experience or ask a question about the article. Comments appear after review by the author.

Loading…

No links, website addresses, advertising or contact details. Google sign-in and an anti-spam check are required.

Clicking connects to Google for sign-in and Cloudflare Turnstile for bot protection. Your email stays private; your name appears with your comment. Privacy policy

Continue reading

SEO

List of variables for Yoast SEO

The main variables of the Yoast SEO plugin Tagged. Variable Description. Date. %%date%% Date of publication Title. %%title%% Title of the publication/page Current year %%currentyear%% The current year is…

2 min readRead article

Need help with your website?

Describe the problem and share your website address. We will review the context and work out the next steps.

Розкажіть, чим допомогти

Потрібен новий сайт чи більше клієнтів? Напишіть кілька слів.

  1. 1Про ваш сайт
  2. 2Як зв’язатися

Хочете одразу описати проєкт докладніше?

Заповнити бриф
Що вас цікавить?

Сайту ще немає? Просто залиште поле порожнім.

Поки ви заповнюєте форму, текст залишається у вашому браузері. Після переходу він передається обраному месенджеру або поштовій програмі.