OLD | NEW |
(Empty) | |
| 1 { |
| 2 "basePath": "", |
| 3 "baseUrl": "https://searchconsole.googleapis.com/", |
| 4 "batchPath": "batch", |
| 5 "canonicalName": "Search Console", |
| 6 "description": "Provides tools for running validation tests against single U
RLs", |
| 7 "discoveryVersion": "v1", |
| 8 "documentationLink": "https://developers.google.com/webmaster-tools/search-c
onsole-api/", |
| 9 "icons": { |
| 10 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 11 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 12 }, |
| 13 "id": "searchconsole:v1", |
| 14 "kind": "discovery#restDescription", |
| 15 "name": "searchconsole", |
| 16 "ownerDomain": "google.com", |
| 17 "ownerName": "Google", |
| 18 "parameters": { |
| 19 "upload_protocol": { |
| 20 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 21 "location": "query", |
| 22 "type": "string" |
| 23 }, |
| 24 "prettyPrint": { |
| 25 "default": "true", |
| 26 "description": "Returns response with indentations and line breaks."
, |
| 27 "location": "query", |
| 28 "type": "boolean" |
| 29 }, |
| 30 "fields": { |
| 31 "description": "Selector specifying which fields to include in a par
tial response.", |
| 32 "location": "query", |
| 33 "type": "string" |
| 34 }, |
| 35 "uploadType": { |
| 36 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 37 "location": "query", |
| 38 "type": "string" |
| 39 }, |
| 40 "callback": { |
| 41 "description": "JSONP", |
| 42 "location": "query", |
| 43 "type": "string" |
| 44 }, |
| 45 "$.xgafv": { |
| 46 "description": "V1 error format.", |
| 47 "enum": [ |
| 48 "1", |
| 49 "2" |
| 50 ], |
| 51 "enumDescriptions": [ |
| 52 "v1 error format", |
| 53 "v2 error format" |
| 54 ], |
| 55 "location": "query", |
| 56 "type": "string" |
| 57 }, |
| 58 "alt": { |
| 59 "default": "json", |
| 60 "description": "Data format for response.", |
| 61 "enum": [ |
| 62 "json", |
| 63 "media", |
| 64 "proto" |
| 65 ], |
| 66 "enumDescriptions": [ |
| 67 "Responses with Content-Type of application/json", |
| 68 "Media download with context-dependent Content-Type", |
| 69 "Responses with Content-Type of application/x-protobuf" |
| 70 ], |
| 71 "location": "query", |
| 72 "type": "string" |
| 73 }, |
| 74 "key": { |
| 75 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 76 "location": "query", |
| 77 "type": "string" |
| 78 }, |
| 79 "access_token": { |
| 80 "description": "OAuth access token.", |
| 81 "location": "query", |
| 82 "type": "string" |
| 83 }, |
| 84 "quotaUser": { |
| 85 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 86 "location": "query", |
| 87 "type": "string" |
| 88 }, |
| 89 "pp": { |
| 90 "default": "true", |
| 91 "description": "Pretty-print response.", |
| 92 "location": "query", |
| 93 "type": "boolean" |
| 94 }, |
| 95 "bearer_token": { |
| 96 "description": "OAuth bearer token.", |
| 97 "location": "query", |
| 98 "type": "string" |
| 99 }, |
| 100 "oauth_token": { |
| 101 "description": "OAuth 2.0 token for the current user.", |
| 102 "location": "query", |
| 103 "type": "string" |
| 104 } |
| 105 }, |
| 106 "protocol": "rest", |
| 107 "resources": { |
| 108 "urlTestingTools": { |
| 109 "resources": { |
| 110 "mobileFriendlyTest": { |
| 111 "methods": { |
| 112 "run": { |
| 113 "description": "Runs Mobile-Friendly Test for a give
n URL.", |
| 114 "httpMethod": "POST", |
| 115 "id": "searchconsole.urlTestingTools.mobileFriendlyT
est.run", |
| 116 "parameterOrder": [], |
| 117 "parameters": {}, |
| 118 "path": "v1/urlTestingTools/mobileFriendlyTest:run", |
| 119 "request": { |
| 120 "$ref": "RunMobileFriendlyTestRequest" |
| 121 }, |
| 122 "response": { |
| 123 "$ref": "RunMobileFriendlyTestResponse" |
| 124 } |
| 125 } |
| 126 } |
| 127 } |
| 128 } |
| 129 } |
| 130 }, |
| 131 "revision": "20170212", |
| 132 "rootUrl": "https://searchconsole.googleapis.com/", |
| 133 "schemas": { |
| 134 "RunMobileFriendlyTestResponse": { |
| 135 "description": "Mobile-friendly test response, including mobile-frie
ndly issues and resource\nissues.", |
| 136 "id": "RunMobileFriendlyTestResponse", |
| 137 "properties": { |
| 138 "testStatus": { |
| 139 "$ref": "TestStatus", |
| 140 "description": "Final state of the test, can be either compl
ete or an error." |
| 141 }, |
| 142 "resourceIssues": { |
| 143 "description": "Information about embedded resources issues.
", |
| 144 "items": { |
| 145 "$ref": "ResourceIssue" |
| 146 }, |
| 147 "type": "array" |
| 148 }, |
| 149 "mobileFriendliness": { |
| 150 "description": "Test verdict, whether the page is mobile fri
endly or not.", |
| 151 "enum": [ |
| 152 "MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED", |
| 153 "MOBILE_FRIENDLY", |
| 154 "NOT_MOBILE_FRIENDLY" |
| 155 ], |
| 156 "enumDescriptions": [ |
| 157 "Internal error when running this test. Please try runni
ng the test again.", |
| 158 "The page is mobile friendly.", |
| 159 "The page is not mobile friendly." |
| 160 ], |
| 161 "type": "string" |
| 162 }, |
| 163 "mobileFriendlyIssues": { |
| 164 "description": "List of mobile-usability issues.", |
| 165 "items": { |
| 166 "$ref": "MobileFriendlyIssue" |
| 167 }, |
| 168 "type": "array" |
| 169 }, |
| 170 "screenshot": { |
| 171 "$ref": "Image", |
| 172 "description": "Screenshot of the requested URL." |
| 173 } |
| 174 }, |
| 175 "type": "object" |
| 176 }, |
| 177 "ResourceIssue": { |
| 178 "description": "Information about a resource with issue.", |
| 179 "id": "ResourceIssue", |
| 180 "properties": { |
| 181 "blockedResource": { |
| 182 "$ref": "BlockedResource", |
| 183 "description": "Describes a blocked resource issue." |
| 184 } |
| 185 }, |
| 186 "type": "object" |
| 187 }, |
| 188 "BlockedResource": { |
| 189 "description": "Blocked resource.", |
| 190 "id": "BlockedResource", |
| 191 "properties": { |
| 192 "url": { |
| 193 "description": "URL of the blocked resource.", |
| 194 "type": "string" |
| 195 } |
| 196 }, |
| 197 "type": "object" |
| 198 }, |
| 199 "TestStatus": { |
| 200 "description": "Final state of the test, including error details if
necessary.", |
| 201 "id": "TestStatus", |
| 202 "properties": { |
| 203 "status": { |
| 204 "description": "Status of the test.", |
| 205 "enum": [ |
| 206 "TEST_STATUS_UNSPECIFIED", |
| 207 "COMPLETE", |
| 208 "INTERNAL_ERROR", |
| 209 "PAGE_UNREACHABLE" |
| 210 ], |
| 211 "enumDescriptions": [ |
| 212 "Internal error when running this test. Please try runni
ng the test again.", |
| 213 "Inspection has completed without errors.", |
| 214 "Inspection terminated in an error state. This indicates
a problem in\nGoogle's infrastructure, not a user error. Please try again later
.", |
| 215 "Google can not access the URL because of a user error s
uch as a robots.txt\nblockage, a 403 or 500 code etc. Please make sure that the
URL provided is\naccessible by Googlebot and is not password protected." |
| 216 ], |
| 217 "type": "string" |
| 218 }, |
| 219 "details": { |
| 220 "description": "Error details if applicable.", |
| 221 "type": "string" |
| 222 } |
| 223 }, |
| 224 "type": "object" |
| 225 }, |
| 226 "RunMobileFriendlyTestRequest": { |
| 227 "description": "Mobile-friendly test request.", |
| 228 "id": "RunMobileFriendlyTestRequest", |
| 229 "properties": { |
| 230 "url": { |
| 231 "description": "URL for inspection.", |
| 232 "type": "string" |
| 233 }, |
| 234 "requestScreenshot": { |
| 235 "description": "Whether or not screenshot is requested. Defa
ult is false.", |
| 236 "type": "boolean" |
| 237 } |
| 238 }, |
| 239 "type": "object" |
| 240 }, |
| 241 "Image": { |
| 242 "description": "Describe image data.", |
| 243 "id": "Image", |
| 244 "properties": { |
| 245 "mimeType": { |
| 246 "description": "The mime-type of the image data.", |
| 247 "type": "string" |
| 248 }, |
| 249 "data": { |
| 250 "description": "Image data in format determined by the mime
type. Currently, the format\nwill always be \"image/png\", but this might change
in the future.", |
| 251 "format": "byte", |
| 252 "type": "string" |
| 253 } |
| 254 }, |
| 255 "type": "object" |
| 256 }, |
| 257 "MobileFriendlyIssue": { |
| 258 "description": "Mobile-friendly issue.", |
| 259 "id": "MobileFriendlyIssue", |
| 260 "properties": { |
| 261 "rule": { |
| 262 "description": "Rule violated.", |
| 263 "enum": [ |
| 264 "MOBILE_FRIENDLY_RULE_UNSPECIFIED", |
| 265 "USES_INCOMPATIBLE_PLUGINS", |
| 266 "CONFIGURE_VIEWPORT", |
| 267 "FIXED_WIDTH_VIEWPORT", |
| 268 "SIZE_CONTENT_TO_VIEWPORT", |
| 269 "USE_LEGIBLE_FONT_SIZES", |
| 270 "TAP_TARGETS_TOO_CLOSE" |
| 271 ], |
| 272 "enumDescriptions": [ |
| 273 "Unknown rule. Sorry, we don't have any description for
the rule that was\nbroken.", |
| 274 "Plugins incompatible with mobile devices are being used
. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#flash_usag
e).", |
| 275 "Viewsport is not specified using the meta viewport tag.
[Learn more]\n(https://support.google.com/webmasters/answer/6352293#viewport_no
t_configured).", |
| 276 "Viewport defined to a fixed width. [Learn more]\n(https
://support.google.com/webmasters/answer/6352293#fixed-width_viewport).", |
| 277 "Content not sized to viewport. [Learn more]\n(https://s
upport.google.com/webmasters/answer/6352293#content_not_sized_to_viewport).", |
| 278 "Font size is too small for easy reading on a small scre
en. [Learn More]\n(https://support.google.com/webmasters/answer/6352293#small_fo
nt_size).", |
| 279 "Touch elements are too close to each other. [Learn more
]\n(https://support.google.com/webmasters/answer/6352293#touch_elements_too_clos
e)." |
| 280 ], |
| 281 "type": "string" |
| 282 } |
| 283 }, |
| 284 "type": "object" |
| 285 } |
| 286 }, |
| 287 "servicePath": "", |
| 288 "title": "Google Search Console URL Testing Tools API", |
| 289 "version": "v1" |
| 290 } |
OLD | NEW |