Welcome to the MMOLEARN.COM

Build your first Dropshipping, Online Course, Affiliate, Blog, Business, Optin, etc, WEBSITE and make money with us. We offer over 10.000+ Wordpress Plugins & Themes which will let you build ANYTHING. Plus we have nice community which likes to gossip about building websites and making some money online! Its really easy to do when we have everything you need to BUILD anything you WANT. Hope you enjoy your stay and have a beautiful day with us!

or Register
gifd

SEO Efficiently cataloging 200 pages using the Google API.

KingOfWolfStreet

Well-known member

VIP MEMBER
Reputation: 73%
Joined
Jul 28, 2022
Messages
387
Reaction score
201
Points
145
Greetings!

.A user has contacted me asking how to index websites using the Google API. As of late, Google has been indexing sites at a slower pace and I believe this information could be helpful. The following tool can ensure the indexing of 200 links within a minute.

The post is divided into two parts:

Step 1: Configuring the Indexing API: Creating a service account and JSON key. To get started, head over to the Indexing API console on the Google Cloud Platform and create a service account.

1.png

You have the option to input your preferred project name or stick with the suggested one. The location can remain as is, but it can be edited if needed.

21.png
Let's proceed with the service account creation. The window in front of you should resemble the following (note that your project name may differ):

3.png

  1. Input another random name in the given field.
  2. Assign the "Owner" role to this account.
4.png

Afterwards, generate a new key and download it to your computer.

5.png

6.png

STEP 2: To run the scanning script, you will need the downloaded key. You can obtain the script from Github and it will come in the form of a folder, containing a file named "service_account".

7.jpg


Next, you should replace the content of the "service_account" file with the content of your downloaded JSON key. The end result will be that the "service_account" file within the script folder will appear similar to the following:


8.jpg

The script is prepared and now requires linking to Google Search Console.

As Step 3, you can link the script to the Google Search Console by assigning the client_email from the JSON key as the full owner. In Google Search Console, it will appear as follows:

9.jpg

To enable the usage of the Index API in our project, the only step left is to follow the provided link, select a service account, and activate the API.

10.png

Our script is fully operational.

STEP 4

To use it, you will need node.js which can be downloaded from here. Once installed, open PowerShell on your computer and input the command "npm install requests".

To run the script, navigate to the script folder (which you downloaded from Github and added the JSON key) and locate the URLs file. You can input up to 100 addresses to be scanned. Note that the maximum number of addresses that can be scanned per day is 200, so you will need to create two batches of 100 each.

Next, launch PowerShell and input the command "node index.js". Wait a few seconds and you should receive the response "200 OK".

11.jpg

DONE!!!
Feel free to ask about anything!
 

StretchGoo

Active member

Reputation: 23%
Joined
Mar 22, 2018
Messages
163
Reaction score
30
Points
37
Great work, buddy! Please move this to VIP.
 
Last edited by a moderator:

GuiltyMellow

Active member

Reputation: 27%
Joined
Apr 17, 2020
Messages
192
Reaction score
32
Points
41
Fantastic guide! I'll start using it soon.
 
Last edited by a moderator:

AirBroadcast

Well-known member

Reputation: 25%
Joined
Jul 17, 2019
Messages
176
Reaction score
26
Points
46
Can that trick work for all domain names in Search Console, or do I need to set it up separately for each domain?
 

Poolab

Active member

Reputation: 24%
Joined
Apr 9, 2021
Messages
183
Reaction score
21
Points
36
The Indexing API lets you tell Google to update or remove pages from its index by providing the page's location. You can also check the status of your notifications. However, right now, the Indexing API is only for pages with job postings or live broadcast events.

So, can I use this for a regular eCommerce site?
 
Top Bottom