blob: 0b95564c2d985b2674b3fe2de07f7d13dca7d3b1 [file] [log] [blame]
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001{
2 "icons": {
3 "x32": "http://www.google.com/images/icons/product/search-32.gif",
4 "x16": "http://www.google.com/images/icons/product/search-16.gif"
5 },
6 "documentationLink": "https://developers.google.com/search/apis/indexing-api/",
7 "ownerDomain": "google.com",
8 "rootUrl": "https://indexing.googleapis.com/",
9 "schemas": {
10 "UrlNotification": {
11 "properties": {
12 "url": {
13 "type": "string",
14 "description": "The object of this notification. The URL must be owned by the publisher of this notification and, in case of `URL_UPDATED` notifications, it _must_ be crawlable by Google."
15 },
16 "type": {
17 "description": "The URL life cycle event that Google is being notified about.",
18 "type": "string",
19 "enumDescriptions": [
20 "Unspecified.",
21 "The given URL (Web document) has been updated.",
22 "The given URL (Web document) has been deleted."
23 ],
24 "enum": [
25 "URL_NOTIFICATION_TYPE_UNSPECIFIED",
26 "URL_UPDATED",
27 "URL_DELETED"
28 ]
29 },
30 "notifyTime": {
31 "description": "Creation timestamp for this notification. Users should _not_ specify it, the field is ignored at the request time.",
32 "type": "string",
33 "format": "google-datetime"
34 }
35 },
36 "type": "object",
37 "id": "UrlNotification",
38 "description": "`UrlNotification` is the resource used in all Indexing API calls. It describes one event in the life cycle of a Web Document."
39 },
40 "UrlNotificationMetadata": {
41 "type": "object",
42 "id": "UrlNotificationMetadata",
43 "description": "Summary of the most recent Indexing API notifications successfully received, for a given URL.",
44 "properties": {
45 "latestUpdate": {
46 "$ref": "UrlNotification",
47 "description": "Latest notification received with type `URL_UPDATED`."
48 },
49 "url": {
50 "type": "string",
51 "description": "URL to which this metadata refers."
52 },
53 "latestRemove": {
54 "$ref": "UrlNotification",
55 "description": "Latest notification received with type `URL_REMOVED`."
56 }
57 }
58 },
59 "PublishUrlNotificationResponse": {
60 "id": "PublishUrlNotificationResponse",
61 "properties": {
62 "urlNotificationMetadata": {
63 "description": "Description of the notification events received for this URL.",
64 "$ref": "UrlNotificationMetadata"
65 }
66 },
67 "description": "Output for PublishUrlNotification",
68 "type": "object"
69 }
70 },
71 "discoveryVersion": "v1",
72 "canonicalName": "Indexing",
73 "version_module": true,
74 "name": "indexing",
75 "version": "v3",
76 "auth": {
77 "oauth2": {
78 "scopes": {
79 "https://www.googleapis.com/auth/indexing": {
80 "description": "Submit data to Google for indexing"
81 }
82 }
83 }
84 },
85 "basePath": "",
86 "baseUrl": "https://indexing.googleapis.com/",
87 "id": "indexing:v3",
88 "batchPath": "batch",
89 "fullyEncodeReservedExpansion": true,
90 "mtlsRootUrl": "https://indexing.mtls.googleapis.com/",
91 "resources": {
92 "urlNotifications": {
93 "methods": {
94 "publish": {
95 "response": {
96 "$ref": "PublishUrlNotificationResponse"
97 },
98 "path": "v3/urlNotifications:publish",
99 "parameters": {},
100 "description": "Notifies that a URL has been updated or deleted.",
101 "flatPath": "v3/urlNotifications:publish",
102 "scopes": [
103 "https://www.googleapis.com/auth/indexing"
104 ],
105 "request": {
106 "$ref": "UrlNotification"
107 },
108 "parameterOrder": [],
109 "httpMethod": "POST",
110 "id": "indexing.urlNotifications.publish"
111 },
112 "getMetadata": {
113 "parameters": {
114 "url": {
115 "description": "URL that is being queried.",
116 "type": "string",
117 "location": "query"
118 }
119 },
120 "parameterOrder": [],
121 "scopes": [
122 "https://www.googleapis.com/auth/indexing"
123 ],
124 "id": "indexing.urlNotifications.getMetadata",
125 "httpMethod": "GET",
126 "path": "v3/urlNotifications/metadata",
127 "flatPath": "v3/urlNotifications/metadata",
128 "description": "Gets metadata about a Web Document. This method can _only_ be used to query URLs that were previously seen in successful Indexing API notifications. Includes the latest `UrlNotification` received via this API.",
129 "response": {
130 "$ref": "UrlNotificationMetadata"
131 }
132 }
133 }
134 }
135 },
136 "ownerName": "Google",
137 "description": "Notifies Google when your web pages change.",
138 "revision": "20200804",
139 "servicePath": "",
140 "title": "Indexing API",
141 "parameters": {
142 "prettyPrint": {
143 "description": "Returns response with indentations and line breaks.",
144 "type": "boolean",
145 "default": "true",
146 "location": "query"
147 },
148 "access_token": {
149 "description": "OAuth access token.",
150 "location": "query",
151 "type": "string"
152 },
153 "oauth_token": {
154 "description": "OAuth 2.0 token for the current user.",
155 "location": "query",
156 "type": "string"
157 },
158 "uploadType": {
159 "type": "string",
160 "location": "query",
161 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
162 },
163 "alt": {
164 "default": "json",
165 "location": "query",
166 "description": "Data format for response.",
167 "enum": [
168 "json",
169 "media",
170 "proto"
171 ],
172 "enumDescriptions": [
173 "Responses with Content-Type of application/json",
174 "Media download with context-dependent Content-Type",
175 "Responses with Content-Type of application/x-protobuf"
176 ],
177 "type": "string"
178 },
179 "upload_protocol": {
180 "location": "query",
181 "type": "string",
182 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
183 },
184 "fields": {
185 "type": "string",
186 "description": "Selector specifying which fields to include in a partial response.",
187 "location": "query"
188 },
189 "quotaUser": {
190 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
191 "type": "string",
192 "location": "query"
193 },
194 "key": {
195 "type": "string",
196 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
197 "location": "query"
198 },
199 "$.xgafv": {
200 "enumDescriptions": [
201 "v1 error format",
202 "v2 error format"
203 ],
204 "description": "V1 error format.",
205 "type": "string",
206 "location": "query",
207 "enum": [
208 "1",
209 "2"
210 ]
211 },
212 "callback": {
213 "location": "query",
214 "description": "JSONP",
215 "type": "string"
216 }
217 },
218 "protocol": "rest",
219 "kind": "discovery#restDescription"
220}