Indexer

Search Console URL Inspection API: Read the Verdict on Any URL

Flat illustration of a URL document inspected through a magnifying lens that reveals a verdict stamp, on a dark background

The URL Inspection API is the part of the Search Console API family that answers the only question that matters after you submit a page: what did Google actually do with it. One call returns the same index status data the URL Inspection tool shows in the interface, the coverage state, the canonical Google selected, the last crawl time, and whether robots.txt or a noindex rule is in the way. This guide covers the whole thing with one worked example domain: the setup, the exact request, the response fields one by one, every coverage state in plain language, the 2,000 calls a day quota and its arithmetic, and the errors you will meet. It is written for site owners and SEOs who are done guessing and want the verdict read to them in JSON.

Key takeaways#

  • The URL Inspection API exposes the URL Inspection tool as a REST endpoint: you POST one URL, it answers with the index status Google holds for that URL.
  • The response is the indexed version Google currently has. It is not a live test of the page, and there is no live-inspection parameter in the request.
  • The quota is 2,000 queries per day and 600 per minute, and it attaches to the property, not to the credential. Unlike the Indexing API, adding keys does not raise it.
  • The verdict field collapses everything into PASS, NEUTRAL or FAIL, and coverageState carries the reason in Search Console's own vocabulary.
  • Reading the verdict is the easy half. The valuable half is acting on it: wait states respond to retries, while noindex, canonical and soft 404 states need a fix on your site first.

What the URL Inspection API is, and is not#

The Search Console API family has always been about getting your data out of the interface: performance queries, sitemap management, site management. What it lacked was the one screen every SEO lives in, the URL Inspection tool. In 2022 Google closed that gap with the URL Inspection API, and it works exactly like the tool it mirrors.

The endpoint is a single POST to https://searchconsole.googleapis.com/v1/urlInspection.index:inspect. The request carries two required strings, the URL to inspect and the Search Console property it belongs to, plus an optional language code for localized field values. The response returns the inspection result Google holds: index status first, and when the analyses apply, AMP, rich results and mobile usability blocks as well. The current documentation marks the mobile usability block deprecated, so treat index status and rich results as the parts that matter.

Two boundaries define what this API is. First, it is a read. It inspects, reports and changes nothing, which makes it the natural partner of the write-only Indexing API covered in the Google Indexing API setup guide: one API notifies, the other verifies. Second, it answers for the indexed version of the URL, the same cached judgment the tool shows by default, not a fresh fetch of the live page.

The call answersThe call does not
Is this URL indexed right nowWill this URL be indexed if I submit it
Why not, in Search Console's own wordsWhether your fix worked, until Google recrawls
Which canonical Google selectedLive rendering, JavaScript or raw HTML state
When the page was last crawledAnything about URLs outside the property

One more detail worth internalizing early: if a block is missing from a response, the analysis was not available for that URL. An absent lastCrawlTime means the URL was never successfully crawled. Absent rich results means none were found. The API is quiet by design, and silence is data.

Setup: the same service account you already have#

If you followed the Google Indexing API setup guide, you already own every credential this API needs, because both APIs live in the same Search Console API family and authenticate the same way.

You need a Google Cloud project with a service account, its JSON key, and that service account granted access to the Search Console property. The scope differs only in name: the Indexing API uses indexing, while the URL Inspection API uses webmasters.readonly, which is the read-only member of the webmasters scope pair. Full write access is never needed to inspect URLs.

The permission that trips everyone is the same one as with the Indexing API: the caller must be a verified user of the property. A service account that was never added in Search Console gets 403 PERMISSION_DENIED on every request, and the fix is the Owner grant, not a new key. The Indexing API guide walks that grant in full, including the propagation delay that makes a brand-new owner look broken for a few minutes.

The first call, and what comes back#

Working with one example domain, https://example.com/, whose property in Search Console is the domain property sc-domain:example.com, the call asks about one page:

BASH
curl -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "inspectionUrl": "https://example.com/blog/new-post/",
    "siteUrl": "sc-domain:example.com"
  }' \
  "https://searchconsole.googleapis.com/v1/urlInspection/index:inspect"

The siteUrl must be the property exactly as Search Console defines it: sc-domain:example.com for a domain property, https://example.com/ for a URL-prefix property. The inspectionUrl must live under that property. If the URL is outside the property's scope, the call fails with a 400 rather than returning data for a page you do not control.

A healthy response for an indexed page looks like this:

JSON
{
  "inspectionResult": {
    "inspectionResultLink": "https://search.google.com/search-console/inspect?resource_id=sc-domain:example.com&id=…",
    "indexStatus": {
      "verdict": "PASS",
      "coverageState": "Submitted and currently indexed",
      "robotsTxtState": "ALLOWED",
      "indexingState": "INDEXING_ALLOWED",
      "lastCrawlTime": "2026-09-04T07:19:00Z",
      "pageFetchState": "SUCCESSFUL",
      "googleCanonical": "https://example.com/blog/new-post/",
      "userCanonical": "https://example.com/blog/new-post/",
      "crawledAs": "WEB",
      "sitemap": ["https://example.com/sitemap.xml"],
      "referringUrls": ["https://example.com/blog/"]
    }
  }
}

Every field in that block is a verdict you would otherwise read by hand, one URL at a time, in the tool.

The response, field by field#

The indexStatus object is where the answer lives. The other blocks, AMP, rich results, mobile usability, are secondary analyses that appear only when they apply.

FieldWhat it tells you
verdictThe collapsed judgment: PASS, NEUTRAL or FAIL
coverageStateThe reason in Search Console's own vocabulary, the same wording as the Page Indexing report
robotsTxtStateWhether a robots.txt rule blocks the page, ALLOWED or DISALLOWED
indexingStateWhether the page blocks indexing itself, INDEXING_ALLOWED means no noindex rule applies
lastCrawlTimeWhen Google last fetched the page with its primary crawler; absent means never crawled
pageFetchStateWhether the fetch worked, SUCCESSFUL when it did
googleCanonicalThe URL Google chose as the canonical version of the page
userCanonicalThe canonical your page declared; disagreement with googleCanonical is a signal
crawledAsThe primary crawler Google used
referringUrlsInternal and external URLs Google knows that link to this page
sitemapThe sitemaps Google associated with the URL, when it found it in one

Two comparisons do most of the diagnostic work. googleCanonical against userCanonical tells you whether Google agreed with your canonical declaration. coverageState against lastCrawlTime tells you whether the page was judged after a real fetch, or never fetched at all, which is the difference between a quality problem and a crawl budget problem.

See the response for every state#

The states below are the ones that cover almost every URL you will inspect. Pick one to see the JSON the API returns for it, what it means, and what it asks you to do.

Response explorer

See the response for each coverage state

Pick a state the API returns. The JSON is the shape of the indexStatus object for that state, the reading is what it means, and the action is what moves the URL.

Pick a state above to see its response.

Every coverage state, and what it asks for#

The coverageState strings come from Search Console's Page Indexing vocabulary, which the API returns verbatim. Grouped by what they ask of you:

Coverage stateUsual verdictWhat it asks for
Submitted and currently indexedPASSNothing. The goal state.
Indexed, not submitted in sitemapPASSAdd the URL to your sitemap, so the whole index does not lean on discovery
Discovered - currently not indexedNEUTRALPatience, internal links, or a submission to raise crawl priority
Crawled - currently not indexedNEUTRALBetter content on the page, or consolidation with a stronger page
Excluded by noindex tagFAILRemove the noindex at its source, then resubmit
Alternate page with proper canonical tagPASSNothing, when the canonical is the one you wanted
Duplicate without user-selected canonicalFAILDeclare a canonical, or 301 the duplicates away
Duplicate, Google chose different canonicalFAILInspect the URL Google chose; fix the declaration only if you disagree
Soft 404FAILServe a real 404, or put real content on the page
Excluded by robots.txtFAILAllow the path, then submit
Page with redirectPASSNothing, when the redirect is intentional
Redirect errorFAILFix the redirect chain or its target
Not found (404)FAILFix the link, or stop listing the URL
Server error (5xx)FAILFix the server, then resubmit
URL is unknown to GoogleNEUTRALSubmit the URL, or give it an internal link to be discovered

The table's quiet pattern: the FAIL states are almost always a fix on your side, and resubmitting before that fix is quota spent on nothing. The NEUTRAL states are the ones where time, links and submission genuinely move the needle.

The two states that mean Google is still thinking#

Discovered and crawled, both currently not indexed, deserve their own reading because they are the states a submission workflow actually changes.

Discovered means Google has the URL, from a sitemap or a link, and has never fetched it. The page sits in the crawl queue behind pages Google considers more worth fetching. New domains live here: the real test on record spent its first hours exactly in this state, and the first indexed verdict arrived only after Google's own crawl priorities shook out.

Crawled means Google fetched the page, read it, and declined to index it. That is a quality judgment, not a logistics problem. Resubmitting the same content invites the same answer. Improving the page, merging it with a stronger one, or linking it from somewhere that matters is what changes the outcome.

Why Is My Website Not on Google? decodes every one of these states with the exact fix each needs; this guide stays on the API mechanics of getting them.

Quota: 2,000 calls a day, per property#

The Inspection API is free, like everything in the Search Console API family, and its quota works differently from the Indexing API's in one decisive way. The Indexing API attaches its 200 notifications per day to the credential, so keys stack. The Inspection API attaches its quota to the property: 2,000 queries per day and 600 per minute, per property, no matter which key asks.

Property sizeFull audit takes
2,000 URLs1 day
10,000 URLs5 days
50,000 URLs25 days
500,000 URLs250 days of steady calls

There is no key pool for inspections. The lever is prioritization: inspect the URLs that earn money or that you just changed, and let sitemaps and the Page Indexing report carry the long tail. When the quota is spent, requests return 429 RESOURCE_EXHAUSTED until the window resets.

Diagram of one inspection request flowing into a Search Console panel that returns three verdict lanes, indexed, waiting and ruled out

Automating the loop without the plumbing#

The setup above is a one time job, but inspection only pays when it runs on a schedule, and that is where scripts grow into a second job. A queue of changed URLs, a worker that drains it inside the quota, a verdict history per URL so a state change is an event rather than a re-read, a retry policy that resubmits only the states retries can help, and a report you can forward. Every one of those pieces is straightforward alone and heavy together.

Indexer runs this loop against the same endpoint. Sitemap sync feeds the queue, submissions go out through the Google Indexing API and IndexNow, and the verdict comes back through this inspection API for every submitted URL, re-inspected on a schedule, with the full per-URL history kept and exportable. States that mean the problem is on your site, like noindex or a canonical disagreement, are never retried, because Google already ruled. States that mean waiting, like crawl budget, are retried inside your chosen 3, 7 or 14 day window, up to three attempts per URL. The free plan includes 5 manual checks a month to see the verdict on any URL; automated inspection for every submitted URL is part of the paid plans, and the documentation walks the same setup this guide covers.

Common errors and what they mean#

ErrorWhat it meansThe fix
403 PERMISSION_DENIEDThe service account is not a verified user of the propertyGrant it access in Search Console, then wait out propagation
400 INVALID_ARGUMENTThe inspectionUrl is outside the siteUrl property, or a URL is malformedMatch the URL to the property exactly
429 RESOURCE_EXHAUSTEDThe 2,000 a day property quota, or the 600 a minute burst, is spentPace the calls, or wait for the window to reset
401 UNAUTHENTICATEDThe token is missing, expired, or signed wrongRebuild the JWT with the webmasters.readonly scope
Empty indexStatus fieldsThe analysis was not available for this URLAbsence is the answer; see the field table above

The pattern is the same one the Indexing API has: strict, literal, and specific about what failed. The one behavioral difference to remember is the quota attachment point, because a team that scales inspection by adding keys will add keys and change nothing.

Put this into practice. Indexer submits URLs to the Google Indexing API and IndexNow, audits coverage with Search Console, and shows exactly which pages are indexed. Start for free or see how it works.

X LinkedIn Hacker News Reddit View as Markdown text/markdown · for AI readers
Arrow keys move through results. Enter opens the selected page. Escape closes.