blob: 7918d46892bbe6edcbccc340f5c324f4aad16b26 [file] [log] [blame] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="searchconsole_v1.html">Google Search Console API</a> . <a href="searchconsole_v1.urlInspection.html">urlInspection</a> . <a href="searchconsole_v1.urlInspection.index.html">index</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#inspect">inspect(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Index inspection.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="inspect">inspect(body=None, x__xgafv=None)</code>
<pre>Index inspection.
Args:
body: object, The request body.
The object takes the form of:
{ # Index inspection request.
&quot;inspectionUrl&quot;: &quot;A String&quot;, # Required. URL to inspect. Must be under the property specified in &quot;site_url&quot;.
&quot;languageCode&quot;: &quot;A String&quot;, # Optional. An [IETF BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language code representing the requested language for translated issue messages, e.g. &quot;en-US&quot;, &quot;or &quot;de-CH&quot;. Default value is &quot;en-US&quot;.
&quot;siteUrl&quot;: &quot;A String&quot;, # Required. The URL of the property as defined in Search Console. **Examples:** `http://www.example.com/` for a URL-prefix property, or `sc-domain:example.com` for a Domain property.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Index-Status inspection response.
&quot;inspectionResult&quot;: { # URL inspection result, including all inspection results. # URL inspection results.
&quot;ampResult&quot;: { # AMP inspection result of the live page or the current information from Google&#x27;s index, depending on whether you requested a live inspection or not. # Result of the AMP analysis. Absent if the page is not an AMP page.
&quot;ampIndexStatusVerdict&quot;: &quot;A String&quot;, # Index status of the AMP URL.
&quot;ampUrl&quot;: &quot;A String&quot;, # URL of the AMP that was inspected. If the submitted URL is a desktop page that refers to an AMP version, the AMP version will be inspected.
&quot;indexingState&quot;: &quot;A String&quot;, # Whether or not the page blocks indexing through a noindex rule.
&quot;issues&quot;: [ # A list of zero or more AMP issues found for the inspected URL.
{ # AMP issue.
&quot;issueMessage&quot;: &quot;A String&quot;, # Brief description of this issue.
&quot;severity&quot;: &quot;A String&quot;, # Severity of this issue: WARNING or ERROR.
},
],
&quot;lastCrawlTime&quot;: &quot;A String&quot;, # Last time this AMP version was crawled by Google. Absent if the URL was never crawled successfully.
&quot;pageFetchState&quot;: &quot;A String&quot;, # Whether or not Google could fetch the AMP.
&quot;robotsTxtState&quot;: &quot;A String&quot;, # Whether or not the page is blocked to Google by a robots.txt rule.
&quot;verdict&quot;: &quot;A String&quot;, # The status of the most severe error on the page. If a page has both warnings and errors, the page status is error. Error status means the page cannot be shown in Search results.
},
&quot;indexStatusResult&quot;: { # Results of index status inspection for either the live page or the version in Google&#x27;s index, depending on whether you requested a live inspection or not. For more information, see the [Index coverage report documentation](https://support.google.com/webmasters/answer/7440203). # Result of the index status analysis.
&quot;coverageState&quot;: &quot;A String&quot;, # Could Google find and index the page. More details about page indexing appear in &#x27;indexing_state&#x27;.
&quot;crawledAs&quot;: &quot;A String&quot;, # Primary crawler that was used by Google to crawl your site.
&quot;googleCanonical&quot;: &quot;A String&quot;, # The URL of the page that Google selected as canonical. If the page was not indexed, this field is absent.
&quot;indexingState&quot;: &quot;A String&quot;, # Whether or not the page blocks indexing through a noindex rule.
&quot;lastCrawlTime&quot;: &quot;A String&quot;, # Last time this URL was crawled by Google using the [primary crawler](https://support.google.com/webmasters/answer/7440203#primary_crawler). Absent if the URL was never crawled successfully.
&quot;pageFetchState&quot;: &quot;A String&quot;, # Whether or not Google could retrieve the page from your server. Equivalent to [&quot;page fetch&quot;](https://support.google.com/webmasters/answer/9012289#index_coverage) in the URL inspection report.
&quot;referringUrls&quot;: [ # URLs that link to the inspected URL, directly and indirectly.
&quot;A String&quot;,
],
&quot;robotsTxtState&quot;: &quot;A String&quot;, # Whether or not the page is blocked to Google by a robots.txt rule.
&quot;sitemap&quot;: [ # Any sitemaps that this URL was listed in, as known by Google. Not guaranteed to be an exhaustive list, especially if Google did not discover this URL through a sitemap. Absent if no sitemaps were found.
&quot;A String&quot;,
],
&quot;userCanonical&quot;: &quot;A String&quot;, # The URL that your page or site [declares as canonical](https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls?#define-canonical). If you did not declare a canonical URL, this field is absent.
&quot;verdict&quot;: &quot;A String&quot;, # High level verdict about whether the URL *is* indexed (indexed status), or *can be* indexed (live inspection).
},
&quot;inspectionResultLink&quot;: &quot;A String&quot;, # Link to Search Console URL inspection.
&quot;mobileUsabilityResult&quot;: { # Mobile-usability inspection results. # Result of the Mobile usability analysis.
&quot;issues&quot;: [ # A list of zero or more mobile-usability issues detected for this URL.
{ # Mobile-usability issue.
&quot;issueType&quot;: &quot;A String&quot;, # Mobile-usability issue type.
&quot;message&quot;: &quot;A String&quot;, # Additional information regarding the issue.
&quot;severity&quot;: &quot;A String&quot;, # Not returned; reserved for future use.
},
],
&quot;verdict&quot;: &quot;A String&quot;, # High-level mobile-usability inspection result for this URL.
},
&quot;richResultsResult&quot;: { # Rich-Results inspection result, including any rich results found at this URL. # Result of the Rich Results analysis. Absent if there are no rich results found.
&quot;detectedItems&quot;: [ # A list of zero or more rich results detected on this page. Rich results that cannot even be parsed due to syntactic issues will not be listed here.
{ # Rich Results items grouped by type.
&quot;items&quot;: [ # List of Rich Results items.
{ # A specific rich result found on the page.
&quot;issues&quot;: [ # A list of zero or more rich result issues found for this instance.
{ # Severity and status of a single issue affecting a single rich result instance on a page.
&quot;issueMessage&quot;: &quot;A String&quot;, # Rich Results issue type.
&quot;severity&quot;: &quot;A String&quot;, # Severity of this issue: WARNING, or ERROR. Items with an issue of status ERROR cannot appear with rich result features in Google Search results.
},
],
&quot;name&quot;: &quot;A String&quot;, # The user-provided name of this item.
},
],
&quot;richResultType&quot;: &quot;A String&quot;, # Rich Results type
},
],
&quot;verdict&quot;: &quot;A String&quot;, # High-level rich results inspection result for this URL.
},
},
}</pre>
</div>
</body></html>