On this page9
Part of my work on Google Search Intelligence. By Mohammad Javad Dastouri, full-stack and AI engineer.
Search data can show that a page lost traffic. It cannot say why. This is how I made one API answer both.
- Pages with crawl errors, first report
- 220
- Countries, over two years
- 50
- Report run time, measured
- 1.10 s
At a glance
- Area
- Analytics, SEO and marketing
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Node.js 22, Express, Google APIs, Redis
- Used on
- Google Search Intelligence
- Client
- TFI Co., an industrial company supplying blades and tooling
- Area
- Analytics, SEO and marketing
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Node.js 22, Express, Google APIs, Redis
- Used on
- Google Search Intelligence
- Client
- TFI Co., an industrial company supplying blades and tooling
Why reading rows stopped working
Deciding which page had regressed, and why, meant reading raw rows by hand across several hundred addresses.
Finding the outliers
One endpoint looks for outliers using z-score and interquartile-range methods, and returns the significant deviations directly.
Trends
period-over-period change, so the output describes movement and not a snapshot.
Cross-dimensional views
one main entity with its nested secondary data, which the native API does not offer.
Trends
period-over-period change, so the output describes movement and not a snapshot.
Cross-dimensional views
one main entity with its nested secondary data, which the native API does not offer.
Joining the symptom to the cause
Search performance and URL Inspection are separate Google products. Performance says a page lost traffic. Inspection says whether it can be indexed.
One endpoint maps each detected drop onto the live inspection verdict for that page, so both answers arrive in one response.
Working around an API limit
Search Console cannot filter by search appearance while also grouping by it. A two-step lookup discovers every active rich-result type on a property, then isolates one type for a page, query or country breakdown.
Key decisions
Statistics on the server
Anomaly detection could run in the browser. Keeping it in the API gives every consumer one definition of an anomaly, and avoids sending large row sets over the network.
Authentication from the first day
Query, position and country data is commercial intelligence, so every analytics route requires a JWT.
Result: regressions arrive as a ranked list
A regression used to be something a person had to go looking for. Now it arrives as a ranked list, with the inspection verdict beside each page.
What the first report found
The report is weekly and runs in about a second.
Crawl errors
- Count
- 220 pages
- Detail
- Ranked by impressions lost, so fixes follow commercial impact and not the error count
Pages
- Count
- Top 100
- Detail
- Each with its own performance figures
Countries
- Count
- 50
- Detail
- Over a two-year period
Sitemaps
- Count
- 3 active
- Detail
- Monitored for crawl status
Run time
- Count
- 1.10 seconds
- Detail
- Measured
Crawl errors
- Count
- 220 pages
- Detail
- Ranked by impressions lost, so fixes follow commercial impact and not the error count
Pages
- Count
- Top 100
- Detail
- Each with its own performance figures
Countries
- Count
- 50
- Detail
- Over a two-year period
Sitemaps
- Count
- 3 active
- Detail
- Monitored for crawl status
Run time
- Count
- 1.10 seconds
- Detail
- Measured
Where this can mislead
Hiring for AI that runs in production?
Tell me about the role, or go back to the project: the system this diagnosis runs in.
- Section
- Analytics, SEO and marketing
- Updated
- November 9, 2026
- Reading time
- 3 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
