Google Indexing Script
Use this script to get your entire site indexed on Google in less than 48 hours. No tricks, no hacks, just a simple script and a Google API.
[!IMPORTANT]
- This script uses Google Indexing API and it only works on pages with either
JobPosting or BroadcastEvent structured data.
- Indexing != Ranking. This will not help your page rank on Google, it'll just let Google know about the existence of your pages.
Requirements
- Install Node.js
- An account on Google Search Console with the verified sites you want to index
- An account on Google Cloud
Preparation
- Follow this guide from Google. By the end of it, you should have a project on Google Cloud with the Indexing API enabled, a service account with the
Owner permission on your sites.
- Make sure you enable both
Google Search Console API and Web Search Indexing API on your Google Project ➤ API Services ➤ Enabled API & Services.
- Download the JSON file with the credentials of your service account and save it in the same folder as the script. The file should be named
service_account.json
Installation
Using CLI
Install the cli globally on your machine.
npm i -g google-indexing-script