
How I Used Google Search Console API to Track a Travel Sites Growth
I built about-kazakhstan.com as a side project -- a travel guide for Kazakhstan. After publishing 83 articles, I needed to track which pages Google actually indexed and which keywords drove impressions. The Problem Google Search Console web UI is limited. You cannot bulk-check index status, track position changes over time, or detect keyword cannibalization across 90 URLs manually. The Solution: Node.js + GSC API I wrote a set of scripts that run daily via GitHub Actions: // gsc-check-all.mjs -- bulk index status checker const { google } = require ( " googleapis " ); const searchconsole = google . searchconsole ( " v1 " ); async function checkUrl ( url ) { const res = await searchconsole . urlInspection . index . inspect ({ requestBody : { inspectionUrl : url , siteUrl : " https://about-kazakhstan.com/ " } }); return res . data . inspectionResult . indexStatusResult ; } Scripts I Built Script Purpose gsc-check-all.mjs Bulk index status for all URLs position-tracker.mjs Daily position s
Continue reading on Dev.to Tutorial
Opens in a new tab

