Inspect a URL in the index
inspect_urlCheck why a page is not indexed by inspecting its coverage state, robots.txt status, canonical choice, sitemap references, and mobile/rich-results verdicts in Google Search Console.
Instructions
Inspect one URL as Google sees it: whether it is indexed, its coverage state, robots.txt status, last crawl time, the canonical Google chose versus the one you declared, which sitemaps reference it, plus AMP, mobile-usability and rich-results verdicts where applicable.
This is the tool for "why is this page not indexed" questions. Read indexStatusResult.coverageState first: it carries the specific reason, such as "Crawled - currently not indexed", "Discovered - currently not indexed", or "Duplicate without user-selected canonical".
Quota is roughly 2000 inspections per property per day, so inspect a considered sample rather than every URL. The URL must belong to the property being inspected. Results describe the indexed version only - this API cannot run the live test that the Search Console UI offers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteUrl | Yes | Search Console property, exactly as it appears in `list_sites`. URL-prefix properties include the scheme and a trailing slash ("https://example.com/"); domain properties use the "sc-domain:" prefix ("sc-domain:example.com"). These are distinct properties with different data. | |
| languageCode | No | BCP-47 code for human-readable messages. Defaults to "en-US". | |
| inspectionUrl | Yes | Fully-qualified URL to inspect. Must be under the property, e.g. "https://example.com/pricing". |