AmpInspectionResult
import type { AmpInspectionResult } from "https://googleapis.deno.dev/v1/searchconsole:v1.ts";
AMP inspection result of the live page or the current information from Google's index, depending on whether you requested a live inspection or not.
interface AmpInspectionResult {
ampIndexStatusVerdict?:
| "VERDICT_UNSPECIFIED"
| "PASS"
| "PARTIAL"
| "FAIL"
| "NEUTRAL";
ampUrl?: string;
indexingState?:
| "AMP_INDEXING_STATE_UNSPECIFIED"
| "AMP_INDEXING_ALLOWED"
| "BLOCKED_DUE_TO_NOINDEX"
| "BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER";
issues?: AmpIssue[];
lastCrawlTime?: Date;
pageFetchState?:
| "PAGE_FETCH_STATE_UNSPECIFIED"
| "SUCCESSFUL"
| "SOFT_404"
| "BLOCKED_ROBOTS_TXT"
| "NOT_FOUND"
| "ACCESS_DENIED"
| "SERVER_ERROR"
| "REDIRECT_ERROR"
| "ACCESS_FORBIDDEN"
| "BLOCKED_4XX"
| "INTERNAL_CRAWL_ERROR"
| "INVALID_URL";
robotsTxtState?: "ROBOTS_TXT_STATE_UNSPECIFIED" | "ALLOWED" | "DISALLOWED";
verdict?:
} | "VERDICT_UNSPECIFIED"
| "PASS"
| "PARTIAL"
| "FAIL"
| "NEUTRAL";
§Properties
§
ampIndexStatusVerdict?: "VERDICT_UNSPECIFIED" | "PASS" | "PARTIAL" | "FAIL" | "NEUTRAL"
[src]Index status of the AMP URL.
§
ampUrl?: string
[src]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.
§
indexingState?: "AMP_INDEXING_STATE_UNSPECIFIED" | "AMP_INDEXING_ALLOWED" | "BLOCKED_DUE_TO_NOINDEX" | "BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER"
[src]Whether or not the page blocks indexing through a noindex rule.
§
lastCrawlTime?: Date
[src]Last time this AMP version was crawled by Google. Absent if the URL was never crawled successfully.
§
pageFetchState?: "PAGE_FETCH_STATE_UNSPECIFIED" | "SUCCESSFUL" | "SOFT_404" | "BLOCKED_ROBOTS_TXT" | "NOT_FOUND" | "ACCESS_DENIED" | "SERVER_ERROR" | "REDIRECT_ERROR" | "ACCESS_FORBIDDEN" | "BLOCKED_4XX" | "INTERNAL_CRAWL_ERROR" | "INVALID_URL"
[src]Whether or not Google could fetch the AMP.