Inspect a URL in Google Search Console
Input
url requiredThe page to inspect, a full URL that belongs to the property, e.g. https://example.com/pricing.
siteUrl requiredThe property, exactly as search.google.com/list_properties returns it: a URL prefix such as https://example.com/ or a Domain property such as sc-domain:example.com.
account optionalWhich of the browser's signed-in Google accounts to act as, by its number from mail.google.com/list_accounts. Default 0, the browser's first account.
Default: 0Output
url requiredThe URL inspected.
siteUrl requiredThe property it was inspected in.
verdict requiredon_google when Search Console says the URL is on Google, not_on_google when it says it is not; code_<n> for a verdict this script does not know yet.
sitemaps requiredThe sitemaps Google found the URL in. Null when Search Console gives no answer for them (a URL Google does not know, or the console's own temporary error).
lastCrawlAt requiredWhen Google last crawled the URL, ISO 8601. Null when it never did.
coverageState requiredSearch Console's coverage state, as its help page names it: submitted_and_indexed, url_unknown, crawled_currently_not_indexed, and so on. Null when Search Console gives none.
userCanonical requiredThe canonical URL the page declares. Null when it declares none or Google has not crawled it.
referringPages requiredPages Google found linking to the URL. Null when Search Console gives no answer for them.
