Skip to content

Commit 72ab8a7

Browse files
committed
Enhance GSC URL Inspections API with detailed response schema
1 parent 7bfa068 commit 72ab8a7

File tree

1 file changed

+139
-5
lines changed

1 file changed

+139
-5
lines changed

api/gsc-url-inspections.yaml

Lines changed: 139 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,153 @@ paths:
3232
required:
3333
- url
3434
example:
35-
url: "https://www.glasses.com/gl-us/burberry/8056262081037"
35+
url: "https://www.example.com/product/12345"
3636
responses:
3737
'200':
38-
description: Inspection request accepted / result
38+
description: URL inspection result from Google Search Console
3939
content:
4040
application/json:
4141
schema:
4242
type: object
4343
properties:
44-
status:
45-
type: string
46-
data:
44+
inspectionResult:
4745
type: object
46+
properties:
47+
inspectionResultLink:
48+
type: string
49+
format: uri
50+
description: Link to view the full inspection result in Google Search Console
51+
indexStatusResult:
52+
type: object
53+
properties:
54+
verdict:
55+
type: string
56+
description: Overall indexing verdict
57+
enum: [PASS, FAIL, NEUTRAL]
58+
coverageState:
59+
type: string
60+
description: Current coverage state of the URL
61+
robotsTxtState:
62+
type: string
63+
description: Whether robots.txt allows indexing
64+
enum: [ALLOWED, DISALLOWED]
65+
indexingState:
66+
type: string
67+
description: Current indexing state
68+
lastCrawlTime:
69+
type: string
70+
format: date-time
71+
description: Timestamp of the last crawl
72+
pageFetchState:
73+
type: string
74+
description: Status of the page fetch
75+
googleCanonical:
76+
type: string
77+
format: uri
78+
description: Canonical URL detected by Google
79+
userCanonical:
80+
type: string
81+
format: uri
82+
description: Canonical URL specified by the user
83+
sitemap:
84+
type: array
85+
items:
86+
type: string
87+
format: uri
88+
description: Sitemaps that reference this URL
89+
referringUrls:
90+
type: array
91+
items:
92+
type: string
93+
format: uri
94+
description: URLs that link to this page
95+
crawledAs:
96+
type: string
97+
description: Device type used for crawling
98+
enum: [MOBILE, DESKTOP]
99+
mobileUsabilityResult:
100+
type: object
101+
properties:
102+
verdict:
103+
type: string
104+
description: Mobile usability verdict
105+
richResultsResult:
106+
type: object
107+
properties:
108+
verdict:
109+
type: string
110+
description: Rich results verdict
111+
enum: [PASS, FAIL, NEUTRAL, VERDICT_UNSPECIFIED]
112+
detectedItems:
113+
type: array
114+
items:
115+
type: object
116+
properties:
117+
richResultType:
118+
type: string
119+
description: Type of rich result detected
120+
items:
121+
type: array
122+
items:
123+
type: object
124+
properties:
125+
name:
126+
type: string
127+
description: Name of the detected item
128+
issues:
129+
type: array
130+
items:
131+
type: object
132+
properties:
133+
issueMessage:
134+
type: string
135+
description: Description of the issue
136+
severity:
137+
type: string
138+
description: Severity level of the issue
139+
enum: [WARNING, ERROR]
140+
example:
141+
inspectionResult:
142+
inspectionResultLink: "https://search.google.com/search-console/inspect?resource_id=sc-domain:example.com&id=3LKVoOqyHSOj12br3NiNoQ&utm_medium=link&utm_source=api"
143+
indexStatusResult:
144+
verdict: "PASS"
145+
coverageState: "Submitted and indexed"
146+
robotsTxtState: "ALLOWED"
147+
indexingState: "INDEXING_ALLOWED"
148+
lastCrawlTime: "2025-11-04T02:36:47Z"
149+
pageFetchState: "SUCCESSFUL"
150+
googleCanonical: "https://www.example.com/product/12345"
151+
userCanonical: "https://www.example.com/product/12345"
152+
sitemap:
153+
- "https://www.example.com/sitemap.xml"
154+
referringUrls:
155+
- "https://www.example.com/sitemap.xml"
156+
- "https://www.example.com/product-listing"
157+
crawledAs: "MOBILE"
158+
mobileUsabilityResult:
159+
verdict: "VERDICT_UNSPECIFIED"
160+
richResultsResult:
161+
verdict: "PASS"
162+
detectedItems:
163+
- richResultType: "Product snippets"
164+
items:
165+
- name: "Sample Product Name"
166+
issues:
167+
- issueMessage: "Missing field \"review\""
168+
severity: "WARNING"
169+
- issueMessage: "Missing field \"aggregateRating\""
170+
severity: "WARNING"
171+
- richResultType: "Merchant listings"
172+
items:
173+
- name: "Sample Product Name"
174+
issues:
175+
- issueMessage: "Missing field \"shippingDetails\""
176+
severity: "WARNING"
177+
- issueMessage: "Missing field \"hasMerchantReturnPolicy\""
178+
severity: "WARNING"
179+
- richResultType: "Breadcrumbs"
180+
items:
181+
- name: "Unnamed item"
48182
'400':
49183
description: Bad Request
50184
'401':

0 commit comments

Comments
 (0)