Skip to content

URL Inspection API: Read the Indexed Version of a URL Sample

Inspect a prioritized sample inside a Search Console property. Separate request errors, reported crawl and canonical fields, and individual live tests.

A magnifier over an archived index card with a newer loose card beside the drawer
Jack Lee
3 Min Read
Share
On This Page

Use the URL Inspection API to collect the indexed inspection results for a small set of priority pages. The response describes Google's indexed inspection data, including whether the URL is indexed. Keep the request result, the indexed finding and any live check in separate columns.

Prepare one property and an exact URL list

For a worked example, a Malaysian spare-parts shop wants to inspect three product URLs after a template release. Use a Search Console property that your account or application is authorised to access. Send one inspection request per URL under that property.

{
  "siteUrl": "sc-domain:example.com",
  "inspectionUrl": "https://example.com/parts/brake-pad/"
}

Use the property identifier exactly as Search Console defines it. A URL-prefix property such as https://example.com/ includes the trailing slash. Check that the exact product URLs fall under that property before sending requests.

Read the indexed fields separately from request status

For each response, keep the HTTP status. From inspectionResult.indexStatusResult, retain coverageState, lastCrawlTime, and googleCanonical when present. These fields give you a useful small table.

Illustrative rowWhat you can do with it
Request succeeded. The last crawl was 14 November, before the 16 November release.Compare the indexed record with the live page before judging the release.
Request succeeded, and Google selected another canonicalCheck the selected and declared URLs and their signals.
Request returned 403Keep an error row and verify the account's access and property scope. Leave the indexed fields blank because this request did not inspect the URL.

Check the Google-selected canonical guide if the indexed response names a different URL.

Decide which URL needs a live check

The API cannot run a live URL inspection. If the last crawl is older than your release, open that URL in Search Console and run its separate live test. Store the live-test timestamp and outcome beside the original indexed result. Keep the index fields from the API intact so the next export can show whether they changed. See the URL Inspection guide for interpreting both results.

Start with the highest-priority URLs. Google limits requests by site and by project, so review the applicable quotas before scaling the sample. Google's current per-site limits for URL inspection are 2,000 requests per day and 600 per minute. Project limits also apply.

Frequently asked questions

Does HTTP 200 mean the inspected URL is indexed?

No. HTTP 200 describes the API response. Read the returned index status to learn what Google knows about that URL.

Can the API run the live test in Search Console?

No. Use the live test in the interface for current checks. A successful live test verifies some current conditions without confirming that the released page is indexed.

Why is the last crawl time missing?

The API omits it if Google has never crawled that URL successfully. Keep the field empty and use the rest of the reported status to choose your next check.

Share This Article