1. Setting up the Indexing API: creating a service account and JSON key Let's start by setting up access in the Indexing API console. Go to Google Cloud Platform and create a service account
Here you can enter the desired project name or leave the suggested one. We leave the location as it is, editing is optional.
We continue to create a service account: you should see the following window in front of you (you will have a different project name):
1. Next, enter another arbitrary name.
2. Assign the role of this account - Owner.
Next, create a new key and download it to your computer.
The ready key is needed to run the scanning script
The script will be in the form of a folder, one of the files of which will be called service_account.
Next, you need to replace the content of the service_account file with the content of your downloaded JSON key. As a result, the service_account file in the script folder will look something like this:
The script is ready. Now it needs to be linked to Google Search Console.
enable indexing api on console google
and linked email key and select owner
Last part run script "node index.js"
DONE!!!
If you have any questions, ask.
Thanks For Create By
https://github.com/swalker-888