@roybakker/index-fast
v1.0.7
Published
This script helps get your whole site noticed by Google in less than 48 hours. It's simple and uses a Google API.
Downloads
10
Maintainers
Readme
Google Indexing Script
This script helps get your whole site noticed by Google in less than 48 hours. It's simple and uses a Google API.
What You Need
- A Google Search Console account with sites you want to index
- A Google Cloud account
How to Use
Run
npm install @roybakker/index-fast
Follow this guide from Google. You should end up with a Google Cloud project with the Indexing API turned on, and a service account that can manage your sites.
Turn on both the
Google Search Console API
and theWeb Search Indexing API
in your Google Project ➤ API Services ➤ Enabled API & Services.Download the JSON file with your service account's credentials and save it in the same folder as the script. Name the file
service_account.json
.- If your site is a
Domain
Property on GSC, use it likeprocessSite('example.com')
. - If it's a
URL Prefix
property, use it likeprocessSite('https://www.example.com')
. - If unsure, try both 😀. Or have a look in your Google Search Console for the correct property naming.
- If your site is a
Example
import { processSite } from "@roybakker/index-fast";
processSite("brickifyme.com"); // or processSite("https://www.brickifyme.com");
Important Notes:
- Your site needs one or more sitemaps on Google Search Console. If not, the script can't find the pages to index.
- You can use the script many times. It will only index pages that aren't already indexed.
- Indexing many pages might take time, so be patient.
📄 License
GPL-3.0-only
💖 Sponsor
This project is supported by BrickifyMe