gsc-indexer docs: start here
Abhay khant
Jan 1, 1970 • 2 min read
Welcome to the gsc-indexer documentation. This page points you to every
guide. If you're not sure where to begin, follow the learning path below.
What is gsc-indexer?
A command-line tool that asks Google to crawl / re-index your URLs via the Google Search Console URL Inspection API. one URL or ten thousand. Full explanation: What is gsc-indexer?.
Choose your path
I've never used this kind of tool. Start at the top and go in order. the setup steps are where most people get stuck:
- Create and verify a GSC property
- Create a service account and grant it access ⭐
- Install, build, and run your first inspection
I'm set up and just want to use it.
I have a big site or want to automate.
Something broke.
Full guide list (in order)
Quick command cheat sheet
## first inspection
./gsc-indexer -creds sa.json "https://www.toolsura.com/"
## many URLs from a file
./gsc-indexer -creds sa.json -batch urls.txt
## whole site via sitemap (preview first!)
./gsc-indexer -creds sa.json "https://www.toolsura.com/sitemap.xml" -dry-run
./gsc-indexer -creds sa.json "https://www.toolsura.com/sitemap.xml" -delay 10s -q -report ./report
## compare against last run
./gsc-indexer -creds sa.json -batch urls.txt -diff ./report/summary.json
Source code and the latest flags reference live in the GitHub repository.
Sources
- Google Search Console
- URL Inspection API documentation
- Google Search APIs overview
- Service account OAuth (Google Identity)
- About service accounts (Google Cloud IAM)
- Verify site ownership
- Property types: URL-prefix vs Domain
- URL Inspection tool help
- Indexing API (JobPosting/BroadcastEvent only)
- Request indexing / inspect a URL