How to Bulk Check Google Index Status for Thousands of URLs
Bulk check Google index status past the 2,000-a-day URL Inspection API quota: impressions first, inspections next, proxied site: checks, and a reasons report.

To bulk check Google index status on a site with tens of thousands of URLs, you have to get past one hard number: the Search Console URL Inspection API answers 2,000 queries per site per day. That covers a small blog. It doesn't cover a 60,000-page catalogue you need audited before Friday, and clicking through the Search Console interface one URL at a time stops being an option somewhere around page forty.
This guide builds the job as a pipeline that spends each source where it's strongest. Search Analytics data clears the URLs Google is already showing, the Inspection API gives authoritative verdicts with reasons for the ones that matter most, and exact-URL site: checks through SparkProxy cover the remainder, with their accuracy limits written into the report instead of hidden.
The arithmetic behind the bottleneck
Google's Search Console API usage limits page (last updated 2025-08-28) sets these limits for URL Inspection:
| Scope | Per day | Per minute |
|---|---|---|
| Per site ("calls querying the same site") | 2,000 | 600 |
| Per Cloud project | 10,000,000 | 15,000 |
The per-project ceiling is irrelevant for one site. The per-site daily figure is the one that bites. At 2,000 a day, 50,000 URLs take 25 days of nothing but inspections, and by the time you finish, the first results are three weeks stale. When you exceed it, the limits page says only that you "will receive a 'quota exceeded' error message", the same one for every quota event.
The other built-in options don't fill the gap. The Page indexing report in Search Console groups URLs by reason, but its example list for each reason "does not necessarily show all URLs with that issue, and is limited to 1,000 rows", per Google's Page indexing report help. The Indexing API isn't an index checker at all: its quickstart says it "can only be used to crawl pages with either JobPosting or BroadcastEvent embedded in a VideoObject."
So the plan has to ration inspections, not spend them blindly.
Three evidence tiers, cheapest first
Every URL ends up with a status that comes from one of three sources, and they differ a lot in cost and in what they prove.
| Tier | Source | Cost | What a positive proves | What a negative proves |
|---|---|---|---|---|
| 0 | Search Analytics rows with impressions | Free, one API call per 25,000 rows | The URL was served in results in the window | Almost nothing |
| 1 | URL Inspection API | 1 of your 2,000 daily quota | Indexed, per Google's own record | Not indexed, with a reason |
| 2 | Exact-URL `site:` query through a proxy | Proxy or Scraping API credits | Indexed and servable today | Weak: "unconfirmed" |
The routing rule that falls out of this table: impressions clear URLs for free, inspections go to URLs with no impressions in priority order, and site: checks handle whatever the daily quota can't reach. A site: miss never becomes a final "not indexed". It becomes a ticket into tomorrow's inspection queue.
Scraping at scale? Skip the blocks.
Fast, unblockable datacentre proxies with unlimited bandwidth.
Loading the URL list into SQLite
Start from your XML sitemaps, because those are the URLs you're asking Google to index. One table holds every piece of evidence per URL:
CREATE TABLE IF NOT EXISTS urls (
url TEXT PRIMARY KEY,
section TEXT,
priority INTEGER DEFAULT 0,
impressions INTEGER DEFAULT 0,
verdict TEXT,
coverage_state TEXT,
robots_state TEXT,
indexing_state TEXT,
fetch_state TEXT,
google_canonical TEXT,
user_canonical TEXT,
last_crawl TEXT,
inspected_at TEXT,
insp_error TEXT,
serp_status TEXT,
serp_checked_at TEXT,
serp_attempts INTEGER DEFAULT 0
);
The loader follows sitemap index files recursively and handles gzipped children:
import gzip
import sqlite3
import xml.etree.ElementTree as ET
from urllib.parse import urlparse
import requests
NS = {"sm": "http://www.sitemaps.org/schemas/sitemap/0.9"}
def fetch_xml(url):
resp = requests.get(url, timeout=30)
resp.raise_for_status()
data = resp.content
if url.endswith(".gz"):
data = gzip.decompress(data)
return ET.fromstring(data)
def sitemap_urls(url):
root = fetch_xml(url)
if root.tag.endswith("sitemapindex"):
for loc in root.findall("sm:sitemap/sm:loc", NS):
yield from sitemap_urls(loc.text.strip())
else:
for loc in root.findall("sm:url/sm:loc", NS):
yield loc.text.strip()
def seed(db, sitemap_url):
rows = []
for u in sitemap_urls(sitemap_url):
section = urlparse(u).path.strip("/").split("/")[0] or "home"
rows.append((u, section))
db.executemany("INSERT OR IGNORE INTO urls (url, section) VALUES (?, ?)", rows)
db.commit()
return len(rows)
if __name__ == "__main__":
db = sqlite3.connect("index_audit.db")
db.executescript(open("schema.sql").read())
print(seed(db, "https://www.sparkproxy.io/sitemap.xml"), "URLs loaded")
Set priority yourself after loading: revenue pages, new pages and recently changed templates first. That column decides who gets an inspection when quota is short.
Tier 0: clearing URLs with Search Analytics impressions
A URL that collected impressions was, by definition, in the index when it was shown. Search Analytics lets you pull those pages in bulk. The searchanalytics.query reference gives rowLimit a "valid range" of 1 to 25,000 and pages with startRow, and the per-site limit for Search Analytics is 1,200 queries per minute, so this step finishes in seconds.
Authentication is the same for both APIs: create a service account, download its JSON key, and add the service account's email as a user on the Search Console property. The read-only scope is enough.
from datetime import date, timedelta
from google.oauth2 import service_account
from googleapiclient.discovery import build
SCOPES = ["https://www.googleapis.com/auth/webmasters.readonly"]
SITE = "sc-domain:sparkproxy.io"
creds = service_account.Credentials.from_service_account_file(
"gsc-key.json", scopes=SCOPES)
gsc = build("searchconsole", "v1", credentials=creds, cache_discovery=False)
def pages_with_impressions(days=90):
end = date.today() - timedelta(days=3)
start = end - timedelta(days=days)
start_row, size = 0, 25000
while True:
body = {
"startDate": start.isoformat(),
"endDate": end.isoformat(),
"dimensions": ["page"],
"rowLimit": size,
"startRow": start_row,
}
resp = gsc.searchanalytics().query(siteUrl=SITE, body=body).execute()
rows = resp.get("rows", [])
for r in rows:
yield r["keys"][0], int(r["impressions"])
if len(rows) < size:
break
start_row += size
def apply_impressions(db):
db.executemany(
"UPDATE urls SET impressions = ? WHERE url = ?",
[(imp, page) for page, imp in pages_with_impressions()])
db.commit()
Two caveats keep this tier honest. First, the reference says the API "does not guarantee to return all data rows but rather top ones", so a page missing from the response may still have impressions. Second, Google's performance data documentation attributes clicks and impressions to "the canonical URL of the link". A parameter variant or a duplicate product page will show zero impressions even when its canonical is doing fine. That's useful: zero-impression URLs that sit in your sitemap are exactly the ones where canonical trouble hides, so they're the right candidates for inspection.
Also remember the time window. Impressions from 60 days ago prove the page was indexed 60 days ago. For a status that's current, the later tiers re-check it.
Tier 1: running the URL Inspection API inside its quota
The method is POST https://searchconsole.googleapis.com/v1/urlInspection/index:inspect with inspectionUrl, siteUrl and an optional languageCode, per the index.inspect reference. The siteUrl must match the property exactly: a trailing slash for URL-prefix properties, or sc-domain: for Domain properties. A quick test from the shell before you write the runner:
gcloud auth application-default login \
--scopes=https://www.googleapis.com/auth/webmasters.readonly,https://www.googleapis.com/auth/cloud-platform
curl -s -X POST \
"https://searchconsole.googleapis.com/v1/urlInspection/index:inspect" \
-H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \
-H "Content-Type: application/json" \
-d '{"inspectionUrl":"https://www.sparkproxy.io/blog/how-to-scrape-google-search-results","siteUrl":"sc-domain:sparkproxy.io"}'
The runner paces itself under the 600-per-minute limit and stops at a daily cap set a little below 2,000, leaving headroom for reruns and anyone else's script on the same property:
import time
from googleapiclient.errors import HttpError
DAILY_CAP = 1900
MIN_INTERVAL = 60 / 500 # 500 per minute, under the 600 QPM per-site limit
FIELDS = ("verdict", "coverageState", "robotsTxtState", "indexingState",
"pageFetchState", "googleCanonical", "userCanonical", "lastCrawlTime")
def inspect(url):
body = {"inspectionUrl": url, "siteUrl": SITE, "languageCode": "en-US"}
res = gsc.urlInspection().index().inspect(body=body).execute()
return res["inspectionResult"]["indexStatusResult"]
def next_batch(db, limit):
return [r[0] for r in db.execute(
"""SELECT url FROM urls
WHERE impressions = 0
AND (inspected_at IS NULL OR inspected_at < datetime('now', '-14 days'))
ORDER BY serp_status = 'no_results' DESC, priority DESC, inspected_at
LIMIT ?""", (limit,))]
def run_inspections(db):
done = 0
for url in next_batch(db, DAILY_CAP):
started = time.monotonic()
try:
r = inspect(url)
except HttpError as e:
text = str(e).lower()
if e.resp.status == 429 or "quota" in text:
print("quota exceeded after", done, "inspections; stopping")
break
if e.resp.status >= 500:
time.sleep(10)
continue
db.execute("UPDATE urls SET insp_error = ? WHERE url = ?",
(str(e)[:300], url))
db.commit()
continue
values = [r.get(f) for f in FIELDS]
db.execute(
"""UPDATE urls SET verdict = ?, coverage_state = ?, robots_state = ?,
indexing_state = ?, fetch_state = ?, google_canonical = ?,
user_canonical = ?, last_crawl = ?, insp_error = NULL,
inspected_at = datetime('now')
WHERE url = ?""", (*values, url))
db.commit()
done += 1
wait = MIN_INTERVAL - (time.monotonic() - started)
if wait > 0:
time.sleep(wait)
return done
Note the ordering in next_batch: URLs that a site: check already failed to find jump the queue. That's the feedback loop between tiers. The quota check matches on the message text as well as the status code because Google's limits page only promises a "quota exceeded" message, not a specific code.
Turning inspection fields into a reason
The response's indexStatusResult carries enum fields documented in the UrlInspectionResult reference. The ones that matter for a report:
| Field | Values you'll act on | Meaning |
|---|---|---|
| `verdict` | `PASS`, `NEUTRAL`, `FAIL` | "Valid", "Excluded", "Error" in Search Console terms (`PARTIAL` is "no longer in use") |
| `pageFetchState` | `SOFT_404`, `NOT_FOUND`, `SERVER_ERROR`, `REDIRECT_ERROR`, `ACCESS_FORBIDDEN` | Why Googlebot couldn't get the page |
| `robotsTxtState` | `DISALLOWED` | Blocked by robots.txt |
| `indexingState` | `BLOCKED_BY_META_TAG`, `BLOCKED_BY_HTTP_HEADER` | A noindex in the HTML or the X-Robots-Tag header |
| `googleCanonical` / `userCanonical` | Two URLs | Google's chosen canonical vs yours; Google's is absent when the page isn't indexed |
| `lastCrawlTime` | Timestamp or absent | Absent means never crawled successfully |
coverageState is a free-text string, and in practice it carries the same reason names the Page indexing report uses, such as "Crawled - currently not indexed" and "Discovered - currently not indexed". Because it's not an enum, the classifier checks the structured fields first and only falls back to the string:
def classify_inspection(row):
verdict = row["verdict"]
if verdict == "PASS":
return "indexed", row["coverage_state"] or "Valid"
fetch = row["fetch_state"]
if fetch and fetch not in ("SUCCESSFUL", "PAGE_FETCH_STATE_UNSPECIFIED"):
return "not_indexed", "fetch failed: " + fetch
if row["robots_state"] == "DISALLOWED":
return "not_indexed", "blocked by robots.txt"
if row["indexing_state"] in ("BLOCKED_BY_META_TAG", "BLOCKED_BY_HTTP_HEADER"):
return "not_indexed", "noindex (" + row["indexing_state"] + ")"
g, u = row["google_canonical"], row["user_canonical"]
if g and g != row["url"]:
if u and u != g:
return "not_indexed", "Google chose a different canonical: " + g
return "not_indexed", "duplicate of " + g
if not row["last_crawl"]:
return "not_indexed", "never crawled: " + (row["coverage_state"] or "unknown")
return "not_indexed", row["coverage_state"] or "unknown"
The two reasons that need different fixes are worth separating clearly in the output. Google's help page says "Discovered - currently not indexed" means "the page was found by Google, but not crawled yet", typically because crawling "was expected to overload the site". "Crawled - currently not indexed" means Google fetched the page and decided against it for now. The first is a crawl capacity and server problem; the second is usually about the page itself.
Tier 2: exact-URL SERP checks through SparkProxy
For URLs the quota won't reach this week, run a site: query scoped to the exact URL and look for that URL in the results. Google throttles automated queries hard, which is the only part of this job a proxy solves. Request construction and parsing are covered in how to scrape Google search results, so this section sticks to the index-check logic.
The SparkProxy Scraping API (https://scrape.sparkproxy.io/api/v1, key in the X-API-Key header) runs the query in a headless browser by default: render_js defaults to true and costs 5 credits. With json_response=true you get an envelope with job_id, status_code, duration_ms, credits_used and a body that is base64-encoded, so decode it before you search it for anything:
import base64
import os
import re
from urllib.parse import quote_plus, unquote
import requests
API = "https://scrape.sparkproxy.io/api/v1"
KEY = os.environ["SPARKPROXY_API_KEY"]
HREF = re.compile(r'href="([^"]+)"')
def norm(u):
return u.split("#")[0].rstrip("/").lower()
def serp_check(url):
bare = url.split("://", 1)[1]
google = ("https://www.google.com/search?q=" + quote_plus("site:" + bare)
+ "&hl=en&gl=us")
resp = requests.get(API, headers={"X-API-Key": KEY}, params={
"url": google,
"render_js": "true",
"json_response": "true",
}, timeout=120)
if resp.status_code == 429:
return "rate_limited", resp.json().get("retry_after_seconds", 30)
if resp.status_code == 402:
raise SystemExit("out of credits")
if resp.status_code != 200:
return "error", resp.status_code
env = resp.json()
html = base64.b64decode(env["body"]).decode("utf-8", "replace")
target = norm(url)
for href in HREF.findall(html):
h = unquote(href.replace("&", "&"))
if h.startswith("/url?q="):
h = h[7:].split("&")[0]
if norm(h) == target:
return "found", env.get("credits_used")
if "unusual traffic" in html or "/sorry/" in html:
return "blocked", env.get("credits_used")
if "did not match any documents" in html:
return "no_results", env.get("credits_used")
return "unclear", env.get("credits_used")
The English marker strings ("did not match any documents", "unusual traffic") are heuristics that depend on hl=en. Save a few raw pages from your own run and confirm them before trusting the counts, because Google changes its markup without notice. Anything that lands in unclear should be retried, never counted.
If a large share comes back blocked, switch to proxy_type=premium, which the Scraping API docs price at 25 credits with rendering. You don't need country_code here (it adds 5 credits): a site: query asks about your own domain, so the exit country barely matters. Leave format alone too; it only converts content (html, md, json and so on) and has nothing to do with the envelope. Failed requests are refunded, per the docs.
Teams already running Playwright can use the proxy gateway instead. Port 11000 at gateway.sparkproxy.io is Random Rotation, a new exit per request, and that's the right mode here because every site: check is independent. Sticky Sessions on port 11002 holds one exit for 5 minutes, which only helps if you paginate or clear a consent screen first.
from playwright.sync_api import sync_playwright
PROXY = {"server": "http://gateway.sparkproxy.io:11000",
"username": "YOUR_USER", "password": "YOUR_PASS"}
def serp_html(google_url):
with sync_playwright() as p:
browser = p.chromium.launch(proxy=PROXY)
page = browser.new_page(locale="en-US")
page.goto(google_url, wait_until="domcontentloaded", timeout=60000)
html = page.content()
browser.close()
return html
Gateway plans start from $75/month with unlimited bandwidth and are billed by plan and concurrency, not by gigabytes.
How far you can trust a site: result
Google's own site: operator documentation (last updated 2025-12-10) is blunt: "The site: operator doesn't necessarily return all the URLs that are indexed under the prefix specified in the query," and "Bigger sites shouldn't expect to see all their URLs in the results." It also points out that site:https://www.example.com and site:https://example.com/ return different results, which is why the code above always queries the exact host and path from the sitemap.
That leads to an asymmetric rule:
- Exact URL found: strong evidence it's indexed and servable right now. Record it as indexed.
- No results: weak evidence. The page may be indexed and simply not surfaced. Record it as
unconfirmedand push it to the front of the inspection queue. - Never use the "About N results" count as a page tally. It's an estimate, and the same documentation advises against using
site:for counting.
A proxy changes none of this. Here's what each piece of the pipeline can and can't fix:
| Problem | Fixed by a proxy? | What fixes it |
|---|---|---|
| Google blocking or CAPTCHA-walling your `site:` checks | Yes | Rotating exits, premium pool, slower pacing |
| The 2,000-a-day inspection quota | No | Prioritisation, tiering, re-check calendar |
| `site:` missing indexed URLs | No | Treat misses as unconfirmed, inspect them |
| Search Analytics returning only top rows | No | Treat absence as unknown |
| The page actually not being indexed | No | The reason from the inspection, then a fix on your site |
A rate plan for a 50,000-URL site
Take a worked example (the split is illustrative, not a benchmark): 50,000 sitemap URLs, of which the impressions pass clears 32,000. That leaves 18,000 with no evidence.
| Day | Inspections (cap 1,900) | `site:` checks | Running state |
|---|---|---|---|
| 1 | 1,900 highest-priority | 16,100 remaining URLs | Every URL has some evidence |
| 2 to 5 | 1,900 a day, `no_results` first | Retries of `unclear` and `blocked` only | Misses converting into verdicts |
| 6 onward | Fixed URLs and 14-day re-checks | Monthly re-check of indexed pages | Steady state |
Day 1 is the heavy one. 16,100 rendered checks at 5 credits is 80,500 credits; if every one needed the premium pool at 25 credits, it would be 402,500. On the plans listed on the SparkProxy Scraping API page (USD, read 2026-10-31, excluding VAT/GST), the first case fits the Starter plan at $49 for 250K credits and 50 concurrent requests, and the worst case fits Growth at $99 for 1M credits and 100 concurrent. New accounts get 1,000 free credits, enough for about 200 rendered test checks.
Concurrency is a pacing decision, not a plan limit. Start the SERP workers at 5 concurrent, watch the blocked share, and raise it only while that share stays low. The rate math for much larger SERP volumes is in proxies for SERP scraping at scale, and the proxy-type trade-offs for search engines are in datacenter proxies for SEO rank tracking.
On quota multiplication: Google's table counts the inspection limit per site, defined as "calls querying the same site". If you verify URL-prefix properties for big sections such as /blog/ and /products/ and inspect each section's URLs under its own property, each property is a separate siteUrl. Confirm that the extra quota actually appears in your Google Cloud quota page before planning around it, because the limits page doesn't spell out that case.
The indexed vs not indexed report
Final status follows a fixed precedence, so two sources never argue in the output:
- A recent inspection (within 14 days) wins, because it's Google's own record.
- Otherwise a
foundSERP check means indexed. - Otherwise impressions in the window mean indexed, flagged as "by impressions".
- A
no_resultsSERP check alone meansunconfirmed. - Nothing at all means
unknown.
import csv
import sqlite3
def final_status(row):
if row["inspected_at"] and row["verdict"]:
status, reason = classify_inspection(row)
return status, reason, "inspection"
if row["serp_status"] == "found":
return "indexed", "exact URL found in site: results", "serp"
if row["impressions"] > 0:
return "indexed", "%d impressions in 90 days" % row["impressions"], "impressions"
if row["serp_status"] == "no_results":
return "unconfirmed", "not surfaced by site:, awaiting inspection", "serp"
return "unknown", "no evidence yet", "none"
def export(db_path="index_audit.db", out="index_report.csv"):
db = sqlite3.connect(db_path)
db.row_factory = sqlite3.Row
with open(out, "w", newline="", encoding="utf-8") as f:
w = csv.writer(f)
w.writerow(["url", "section", "status", "reason", "source", "checked_at"])
for row in db.execute("SELECT * FROM urls"):
status, reason, source = final_status(row)
checked = row["inspected_at"] or row["serp_checked_at"] or ""
w.writerow([row["url"], row["section"], status, reason, source, checked])
For the summary page, group by section and reason. A pivot that shows "products: 2,140 Discovered - currently not indexed" tells an engineering team where to look far faster than a list of 18,000 URLs:
SELECT section, verdict, coverage_state, COUNT(*) AS urls
FROM urls
WHERE verdict IS NOT NULL AND verdict <> 'PASS'
GROUP BY section, verdict, coverage_state
ORDER BY urls DESC;
Always print the source column next to the status. A client who sees "indexed (by impressions, 41 days ago)" next to "indexed (inspection, yesterday)" understands the difference without a meeting.
Errors, retries and the re-check calendar
Each source fails differently, and each failure has one correct response:
| Failure | Where | Response |
|---|---|---|
| "quota exceeded" | Inspection API | Stop the run, resume tomorrow |
| 5xx | Inspection API | Wait and retry once, then skip the URL |
| 403 or permission error | Inspection API | Wrong `siteUrl` format or the service account isn't a user on the property; fix setup |
| 429 with `retry_after_seconds` | Scraping API | Sleep for that many seconds |
| 530 scrape failed | Scraping API | Refunded; retry later, switch to `proxy_type=premium` after repeated failures |
| 402 | Scraping API | Out of credits; stop |
| `unclear` or `blocked` | Your parser | Retry up to 3 times, then leave as `unknown` |
Cap serp_attempts so one stubborn URL can't burn credits all night. Then run the stages on a schedule:
# /etc/cron.d/index-audit
15 2 * * * audit cd /opt/index-audit && python impressions.py >> logs/impressions.log 2>&1
30 2 * * * audit cd /opt/index-audit && python inspect_runner.py >> logs/inspect.log 2>&1
30 4 * * * audit cd /opt/index-audit && python serp_runner.py >> logs/serp.log 2>&1
0 7 * * 1 audit cd /opt/index-audit && python export_report.py >> logs/report.log 2>&1
Inspections run first each night so the fresh quota goes to yesterday's site: misses. A sensible re-check calendar: not-indexed URLs every 14 days (sooner after you ship a fix), indexed URLs monthly through the cheap tiers, and new sitemap entries on the first night they appear. The URL Inspection API is read-only, so it won't request indexing for you; that still happens one URL at a time in the Search Console interface, which is one more reason to spend it on fixed pages only.
Frequently asked questions
FAQ
2,000 per site per day, with a ceiling of 600 per minute, according to Google's Search Console API usage limits page. The per-project limit of 10,000,000 a day only matters if one Cloud project serves many sites.
Only in one direction. Finding the exact URL in site: results is good evidence it's indexed, but Google's documentation says the operator "doesn't necessarily return all the URLs that are indexed", so a miss should be treated as unconfirmed and sent for inspection.
They were indexed when the impressions happened. Google attributes impressions to the canonical URL, so duplicates show zero even when their canonical ranks, and the API returns top rows rather than every row.
No. The URL Inspection API only has an index:inspect method, and the Indexing API is limited to pages with JobPosting or BroadcastEvent markup. Indexing requests for ordinary pages still go through the Search Console interface.
For a handful of checks, no. For thousands of automated queries, Google will throttle a single IP, so you need rotating exits or the Scraping API; Random Rotation suits this job because each check is independent.
Google found the URL but hasn't crawled it yet, and its help page says this typically happens because crawling "was expected to overload the site". Look at server response times and internal linking for those sections before rewriting content.
Get 20% off your first month
Premium datacentre proxies with unlimited bandwidth. Use the code at checkout.
Save up to 15% more on quarterly, half-yearly and yearly plans
Related articles

Cloud Run Static Outbound IP for Proxy Whitelisting
Set a Cloud Run static outbound IP with Cloud NAT and whitelist it on your proxy, or skip NAT with user:pass auth. Commands, egress check, NAT ports and costs.

Reddit Keyword Alerts: Catch Buying Threads in Slack
Build Reddit keyword alerts that watch subreddits, poll new posts and comments, flag recommendation asks and complaints, and post them to Slack within rules.

Crawl4AI Proxy Configuration, Rotation and Sticky Sessions
Set up a Crawl4AI proxy with authentication, rotate exits across runs, pin session_id crawls to Sticky Sessions, and catch blocks that return success=True.
