Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

281 rader
9.5 KiB

  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 URLs",
  7. "discoveryVersion": "v1",
  8. "documentationLink": "https://developers.google.com/webmaster-tools/search-console-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. "$.xgafv": {
  20. "description": "V1 error format.",
  21. "enum": [
  22. "1",
  23. "2"
  24. ],
  25. "enumDescriptions": [
  26. "v1 error format",
  27. "v2 error format"
  28. ],
  29. "location": "query",
  30. "type": "string"
  31. },
  32. "access_token": {
  33. "description": "OAuth access token.",
  34. "location": "query",
  35. "type": "string"
  36. },
  37. "alt": {
  38. "default": "json",
  39. "description": "Data format for response.",
  40. "enum": [
  41. "json",
  42. "media",
  43. "proto"
  44. ],
  45. "enumDescriptions": [
  46. "Responses with Content-Type of application/json",
  47. "Media download with context-dependent Content-Type",
  48. "Responses with Content-Type of application/x-protobuf"
  49. ],
  50. "location": "query",
  51. "type": "string"
  52. },
  53. "callback": {
  54. "description": "JSONP",
  55. "location": "query",
  56. "type": "string"
  57. },
  58. "fields": {
  59. "description": "Selector specifying which fields to include in a partial response.",
  60. "location": "query",
  61. "type": "string"
  62. },
  63. "key": {
  64. "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.",
  65. "location": "query",
  66. "type": "string"
  67. },
  68. "oauth_token": {
  69. "description": "OAuth 2.0 token for the current user.",
  70. "location": "query",
  71. "type": "string"
  72. },
  73. "prettyPrint": {
  74. "default": "true",
  75. "description": "Returns response with indentations and line breaks.",
  76. "location": "query",
  77. "type": "boolean"
  78. },
  79. "quotaUser": {
  80. "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.",
  81. "location": "query",
  82. "type": "string"
  83. },
  84. "uploadType": {
  85. "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
  86. "location": "query",
  87. "type": "string"
  88. },
  89. "upload_protocol": {
  90. "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
  91. "location": "query",
  92. "type": "string"
  93. }
  94. },
  95. "protocol": "rest",
  96. "resources": {
  97. "urlTestingTools": {
  98. "resources": {
  99. "mobileFriendlyTest": {
  100. "methods": {
  101. "run": {
  102. "description": "Runs Mobile-Friendly Test for a given URL.",
  103. "flatPath": "v1/urlTestingTools/mobileFriendlyTest:run",
  104. "httpMethod": "POST",
  105. "id": "searchconsole.urlTestingTools.mobileFriendlyTest.run",
  106. "parameterOrder": [],
  107. "parameters": {},
  108. "path": "v1/urlTestingTools/mobileFriendlyTest:run",
  109. "request": {
  110. "$ref": "RunMobileFriendlyTestRequest"
  111. },
  112. "response": {
  113. "$ref": "RunMobileFriendlyTestResponse"
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. },
  121. "revision": "20180601",
  122. "rootUrl": "https://searchconsole.googleapis.com/",
  123. "schemas": {
  124. "BlockedResource": {
  125. "description": "Blocked resource.",
  126. "id": "BlockedResource",
  127. "properties": {
  128. "url": {
  129. "description": "URL of the blocked resource.",
  130. "type": "string"
  131. }
  132. },
  133. "type": "object"
  134. },
  135. "Image": {
  136. "description": "Describe image data.",
  137. "id": "Image",
  138. "properties": {
  139. "data": {
  140. "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.",
  141. "format": "byte",
  142. "type": "string"
  143. },
  144. "mimeType": {
  145. "description": "The mime-type of the image data.",
  146. "type": "string"
  147. }
  148. },
  149. "type": "object"
  150. },
  151. "MobileFriendlyIssue": {
  152. "description": "Mobile-friendly issue.",
  153. "id": "MobileFriendlyIssue",
  154. "properties": {
  155. "rule": {
  156. "description": "Rule violated.",
  157. "enum": [
  158. "MOBILE_FRIENDLY_RULE_UNSPECIFIED",
  159. "USES_INCOMPATIBLE_PLUGINS",
  160. "CONFIGURE_VIEWPORT",
  161. "FIXED_WIDTH_VIEWPORT",
  162. "SIZE_CONTENT_TO_VIEWPORT",
  163. "USE_LEGIBLE_FONT_SIZES",
  164. "TAP_TARGETS_TOO_CLOSE"
  165. ],
  166. "enumDescriptions": [
  167. "Unknown rule. Sorry, we don't have any description for the rule that was\nbroken.",
  168. "Plugins incompatible with mobile devices are being used. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#flash_usage).",
  169. "Viewsport is not specified using the meta viewport tag. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#viewport_not_configured).",
  170. "Viewport defined to a fixed width. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#fixed-width_viewport).",
  171. "Content not sized to viewport. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport).",
  172. "Font size is too small for easy reading on a small screen. [Learn More]\n(https://support.google.com/webmasters/answer/6352293#small_font_size).",
  173. "Touch elements are too close to each other. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#touch_elements_too_close)."
  174. ],
  175. "type": "string"
  176. }
  177. },
  178. "type": "object"
  179. },
  180. "ResourceIssue": {
  181. "description": "Information about a resource with issue.",
  182. "id": "ResourceIssue",
  183. "properties": {
  184. "blockedResource": {
  185. "$ref": "BlockedResource",
  186. "description": "Describes a blocked resource issue."
  187. }
  188. },
  189. "type": "object"
  190. },
  191. "RunMobileFriendlyTestRequest": {
  192. "description": "Mobile-friendly test request.",
  193. "id": "RunMobileFriendlyTestRequest",
  194. "properties": {
  195. "requestScreenshot": {
  196. "description": "Whether or not screenshot is requested. Default is false.",
  197. "type": "boolean"
  198. },
  199. "url": {
  200. "description": "URL for inspection.",
  201. "type": "string"
  202. }
  203. },
  204. "type": "object"
  205. },
  206. "RunMobileFriendlyTestResponse": {
  207. "description": "Mobile-friendly test response, including mobile-friendly issues and resource\nissues.",
  208. "id": "RunMobileFriendlyTestResponse",
  209. "properties": {
  210. "mobileFriendliness": {
  211. "description": "Test verdict, whether the page is mobile friendly or not.",
  212. "enum": [
  213. "MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED",
  214. "MOBILE_FRIENDLY",
  215. "NOT_MOBILE_FRIENDLY"
  216. ],
  217. "enumDescriptions": [
  218. "Internal error when running this test. Please try running the test again.",
  219. "The page is mobile friendly.",
  220. "The page is not mobile friendly."
  221. ],
  222. "type": "string"
  223. },
  224. "mobileFriendlyIssues": {
  225. "description": "List of mobile-usability issues.",
  226. "items": {
  227. "$ref": "MobileFriendlyIssue"
  228. },
  229. "type": "array"
  230. },
  231. "resourceIssues": {
  232. "description": "Information about embedded resources issues.",
  233. "items": {
  234. "$ref": "ResourceIssue"
  235. },
  236. "type": "array"
  237. },
  238. "screenshot": {
  239. "$ref": "Image",
  240. "description": "Screenshot of the requested URL."
  241. },
  242. "testStatus": {
  243. "$ref": "TestStatus",
  244. "description": "Final state of the test, can be either complete or an error."
  245. }
  246. },
  247. "type": "object"
  248. },
  249. "TestStatus": {
  250. "description": "Final state of the test, including error details if necessary.",
  251. "id": "TestStatus",
  252. "properties": {
  253. "details": {
  254. "description": "Error details if applicable.",
  255. "type": "string"
  256. },
  257. "status": {
  258. "description": "Status of the test.",
  259. "enum": [
  260. "TEST_STATUS_UNSPECIFIED",
  261. "COMPLETE",
  262. "INTERNAL_ERROR",
  263. "PAGE_UNREACHABLE"
  264. ],
  265. "enumDescriptions": [
  266. "Internal error when running this test. Please try running the test again.",
  267. "Inspection has completed without errors.",
  268. "Inspection terminated in an error state. This indicates a problem in\nGoogle's infrastructure, not a user error. Please try again later.",
  269. "Google can not access the URL because of a user error such 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."
  270. ],
  271. "type": "string"
  272. }
  273. },
  274. "type": "object"
  275. }
  276. },
  277. "servicePath": "",
  278. "title": "Google Search Console URL Testing Tools API",
  279. "version": "v1",
  280. "version_module": true
  281. }