Check 46.11 · Automation and quality control

Create deindexing alerts

Get alerted when a strategic page drops out of Google's index: URL Inspection API, pages without impressions, Search Console emails and directive checks.

Priority
Complementary
Difficulty
Advanced
Estimated time
2 to 4 h
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A deindexing alert notifies the team when an important page stops being indexed by Google, or when a signal announces that it is about to be: noindex added, blocked in robots.txt, Google-selected canonical different from yours, page returning an error. This check combines three sources: the Search Console URL Inspection API for a list of strategic pages, the disappearance of impressions per page, and the emails sent by Search Console. Once it is done, a key page that drops out of the index is flagged within a day, with the reason given by Google.

Why it matters

A deindexed page no longer receives any search traffic, and AI assistants that rely on Google's or Bing's index can no longer find it. The causes are almost always internal: an SEO plugin that sets a content type to noindex, a staging robots.txt copied to production, a template canonical pointing to the home page, a redirect set up by mistake, a server returning 5xx errors for several days.

Search Console eventually shows it in the page indexing report, but late: the report is not updated in real time, its examples are limited to 1,000 URLs per reason, and nobody opens it every day. The site itself can also be checked directly (see monitor robots.txt and noindex (opens in a new tab)): that is the fastest way to detect a cause. The deindexing alert, for its part, confirms the effect on Google's side and catches the cases your checks do not see, such as a canonical reassigned by Google.

What it improves

  • Detection time A key page that has dropped out of the index is spotted within a day instead of several weeks.
  • Diagnosis The API gives the precise status (blocked by a noindex tag, by the HTTP header, by robots.txt, crawl error, Google-selected canonical).
  • Traffic The duration of an accidental deindexing, and therefore the loss of visits, is reduced.
  • AI visibility An indirect effect; a page missing from the index cannot serve as a source for search-grounded answers.

How to check

Your setup is in place if:

  1. A list of strategic pages (home page, offers, categories, local pages, content that receives links) is inspected automatically at least every week, and every day for the most important ones.
  2. A page that receives impressions every week and then stops receiving them triggers an alert.
  3. Search Console emails arrive at an address the team reads.
  4. The number of indexed pages in the indexing report is recorded every month (see track indexed pages (opens in a new tab)).

Manual test: in Search Console, paste a strategic URL into the inspection bar at the top of the screen. The expected result is “URL is on Google”, with a Google-selected canonical identical to yours.

How to implement

The examples follow three fictitious companies: Plomberie Garnier (plumbing and heating contractor in Nantes), Thé des Lisières (online store selling loose-leaf tea) and Planifia (field service scheduling software). Their data is made up.

Before you start

The list of strategic pages. The URL Inspection API accepts 2,000 requests per day and per property, and 600 per minute. Choose your pages accordingly:

Site size Recommended list Frequency
Fewer than 200 pages All indexable pages Daily
200 to 20,000 pages The 300 to 1,500 pages that generate most of the clicks, plus the commercial pages Daily for 300 pages, weekly for the rest
More than 20,000 pages A sample per template (20 to 50 URLs per page type), plus the key pages Daily

On a large catalog, a sample per template is enough: when a template breaks, all its pages break together.

The signals and their thresholds:

Signal Source Alert
Page that goes from “indexed” to another status URL Inspection API From the first case
Noindex or robots.txt block detected by Google URL Inspection API From the first case
Google-selected canonical different from yours URL Inspection API From the first case on a strategic page
Page with no impressions for 7 days, after having some every week Search Analytics API From the first case
Number of indexed pages down by more than 10% Page indexing report Monthly reading, by hand

With Search Console emails

Versions Google Search Console, November 2026.

Search Console emails the owners and users of the property about certain detected issues, as well as during and after a fix validation. It is free and needs no setup, but it is slow and not very detailed.

  1. In Settings > Users and permissions, check that a team address ([email protected]) is among the users of each property.
  2. In your Search Console account's email preferences, check that notifications are not turned off.
  3. Create a mail rule that forwards Search Console emails to the team's channel.

These emails do not replace an alert: they often arrive after the problem has already affected many pages.

With the URL Inspection API

Versions Search Console API v1, urlInspection.index.inspect method, November 2026; Python 3.10 or later.

The following script inspects a list of URLs, saves the day's result and compares it with the previous one. It only alerts on changes. Setting up access (Google Cloud project, API enabled, service account added as a user of the property) is described in monitor rankings (opens in a new tab).

Create /srv/index/urls.txt, one URL per line, written exactly like your canonicals:

https://www.thedeslisieres.example/
https://www.thedeslisieres.example/thes/the-vert/
https://www.thedeslisieres.example/livraison/

Then /srv/index/inspection.py:

#!/usr/bin/env python3
"""Inspect URLs with the Search Console API and report indexing losses."""
import datetime, glob, json, os, sys, time
from google.oauth2 import service_account
from googleapiclient.discovery import build

SITE, URLS, KEY, OUT = sys.argv[1:5]

creds = service_account.Credentials.from_service_account_file(
    KEY, scopes=["https://www.googleapis.com/auth/webmasters.readonly"])
gsc = build("searchconsole", "v1", credentials=creds)

results = {}
with open(URLS, encoding="utf-8") as f:
    for url in [line.strip() for line in f if line.strip()]:
        body = {"inspectionUrl": url, "siteUrl": SITE, "languageCode": "fr-FR"}
        r = gsc.urlInspection().index().inspect(body=body).execute()
        s = r["inspectionResult"].get("indexStatusResult", {})
        results[url] = {k: s.get(k, "") for k in (
            "verdict", "coverageState", "robotsTxtState", "indexingState",
            "pageFetchState", "googleCanonical", "userCanonical", "lastCrawlTime")}
        time.sleep(0.2)

os.makedirs(OUT, exist_ok=True)
previous = sorted(glob.glob(os.path.join(OUT, "inspection-*.json")))
path = os.path.join(OUT, f"inspection-{datetime.date.today()}.json")
with open(path, "w", encoding="utf-8") as f:
    json.dump(results, f, ensure_ascii=False, indent=1)

before = {}
if previous and previous[-1] != path:
    with open(previous[-1], encoding="utf-8") as f:
        before = json.load(f)

alerts = []
for url, now in results.items():
    old = before.get(url, {})
    if old.get("verdict") == "PASS" and now["verdict"] != "PASS":
        alerts.append(f"DROPPED FROM INDEX {url}: {now['coverageState']}")
    if now["indexingState"].startswith("BLOCKED") and now["indexingState"] != old.get("indexingState"):
        alerts.append(f"NOINDEX {url}: {now['indexingState']}")
    if now["robotsTxtState"] == "DISALLOWED" and old.get("robotsTxtState") != "DISALLOWED":
        alerts.append(f"ROBOTS.TXT {url}")
    if now["pageFetchState"] not in ("", "SUCCESSFUL") and now["pageFetchState"] != old.get("pageFetchState"):
        alerts.append(f"CRAWL {url}: {now['pageFetchState']}")
    if now["googleCanonical"] and now["googleCanonical"] != url and now["googleCanonical"] != old.get("googleCanonical"):
        alerts.append(f"CANONICAL {url}: Google selects {now['googleCanonical']}")

print(f"{len(results)} URLs inspected, {len(alerts)} alert(s). Report: {path}")
print("\n".join(alerts))
sys.exit(1 if alerts else 0)

Arguments: the property (sc-domain:thedeslisieres.example), the URL list, the JSON key, the reports folder. Schedule it every morning (crontab -e):

30 6 * * * cd /srv/index && python3 inspection.py sc-domain:thedeslisieres.example urls.txt cle.json rapports > /tmp/index.log 2>&1 || mail -s "Indexing: alerts" [email protected] < /tmp/index.log

What the API returns, and how to read it:

Field Values to watch Meaning
verdict PASS, FAIL, NEUTRAL Overall verdict; PASS means the URL is on Google
coverageState Free text The reason, as shown in the indexing report
indexingState BLOCKED_BY_META_TAG, BLOCKED_BY_HTTP_HEADER Noindex via a meta tag or an X-Robots-Tag header
robotsTxtState DISALLOWED URL blocked by robots.txt
pageFetchState SOFT_404, NOT_FOUND, SERVER_ERROR, REDIRECT_ERROR, ACCESS_DENIED Failure of the last crawl
googleCanonical and userCanonical URL Canonical selected by Google and declared canonical

Good to know: the API returns the index status known from Google's last crawl, not a live test. A fix only shows up after the page has been recrawled. To check a fix right away, use the live test of the inspection tool in the interface.

With the impressions signal

Versions Search Console API v1, searchanalytics.query method, November 2026.

Inspection is limited in volume; impressions cover every page. A page that received impressions every week and no longer receives any at all has probably left the index, or lost all its rankings. In the script from monitor rankings (opens in a new tab), query the page dimension alone over two consecutive weeks ending three days before today, and alert on any page that had at least 50 impressions in the earlier week and is missing from the following week. Add those URLs to the next day's inspection list: the API will say why.

With Screaming Frog

Versions Screaming Frog SEO Spider with a paid license, November 2026.

Screaming Frog can query the URL Inspection API during a crawl: connect Search Console in Configuration > API Access > Google Search Console, then enable URL inspection in that connection's options. Combined with the scheduled crawl described in schedule automated crawls (opens in a new tab), this adds each URL's indexing status to the report, within the quota of 2,000 URLs per day and per property.

With Bing Webmaster Tools

Versions Bing Webmaster Tools, free, November 2026.

Bing has its own index, also used by Copilot and by other services that rely on its search. Bing Webmaster Tools offers URL inspection and a report on indexing status, with no equivalent automatic alert. Check the key pages every month with Bing URL Inspection and follow the method in check Bing indexing (opens in a new tab).

When the alert fires

  1. Check the live page: HTTP status code, meta robots tag, X-Robots-Tag header, canonical.
curl -s -D - -o /tmp/page.html https://www.thedeslisieres.example/thes/the-vert/ | grep -i -E "^HTTP|x-robots-tag|location"
grep -i -o -E '<meta[^>]+name="robots"[^>]*>|<link[^>]+rel="canonical"[^>]*>' /tmp/page.html
  1. Check the production robots.txt: curl -s https://www.thedeslisieres.example/robots.txt.
  2. Find the change: deployment, plugin update, change to the CMS settings in the preceding days.
  3. Fix it, then run the live test in URL Inspection and request indexing for the key pages. For a reason that affects many pages, start the fix validation from the page indexing report.
  4. Record the incident in the incident log (opens in a new tab) and add a check that would have detected the cause earlier, for example a test in the deployment pipeline (see integrate SEO tests into CI/CD (opens in a new tab)).

For a canonical reassigned by Google, the fix is rarely immediate: strengthen the signals (internal links, sitemap, distinct content) as described in analyze pages crawled but not indexed (opens in a new tab).

Common mistakes

  • Using the site: operator as an alert: its result count is an estimate that varies from day to day, unrelated to actual indexing.
  • Inspecting URLs that are not the canonicals: variants with parameters, without a trailing slash, on http. The result then says that another URL is selected, which is normal.
  • Exceeding the quota of 2,000 inspections per day and per property: the last URLs in the list fail. Spread them over several days.
  • Alerting on every “Crawled - currently not indexed” URL of a large site: it is a common status for secondary pages. Keep the alert for pages that were previously indexed.
  • Fixing without finding the cause: the noindex comes back with the next deployment.
  • Forgetting Bing: a page can be excluded from Bing's index without being excluded from Google's.

Frequently asked questions

How do you get alerted when a page is deindexed by Google?

Google does not send page-by-page alerts. To be notified, inspect your strategic pages every day with the Search Console URL Inspection API, which says whether the URL is on Google and why it is not, and compare with the previous day's result. Add an alert on pages that stop receiving impressions, plus the Search Console emails.

How many URLs can you inspect per day with the Search Console API?

The Search Console URL Inspection API accepts 2,000 requests per day and 600 per minute for each property. On a small site, that is enough to inspect every page every day. On a large site, inspect daily the pages that generate most of the clicks and a sample per template, and monitor the other pages through the disappearance of their impressions.

Can the site: operator be used to monitor indexing?

No. The result count shown by the site: operator is a rough estimate that can vary widely from one day to the next without any change in indexing. To monitor indexing, use the page indexing report and the URL Inspection tool in Search Console, or their API, which give the actual status of each URL known to Google.

How long does it take for a deindexed page to come back in Google?

The delay depends on how often the page is crawled. After a fix, an indexing request from the URL Inspection tool often speeds up the return of important pages, but no delay is guaranteed. For many pages, validating the fix in the indexing report generally takes around two weeks according to Google, sometimes much longer.

Updated on

Topic checklist (PDF)

And now?

In the “Automation and quality control” topic

  1. Schedule automated crawls
  2. Monitor HTTP status codes and uptime
  3. Monitor robots.txt and noindex
  4. Monitor canonicals and sitemaps
  5. Monitor titles and structured data
  6. Monitor performance
  7. Monitor backlinks and brand mentions
  8. Monitor rankings
  9. Schedule recurring GEO tests
  10. Create alerts for traffic and conversion drops
  11. Create deindexing alerts
  12. Integrate SEO, performance and accessibility tests into CI/CD
  13. Review template changes
  14. Keep a history of changes
  15. Keep an incident log
  16. Generate periodic reports
  17. Assign an owner to each issue