2017-08-05 18:17:15 +00:00
{
2017-09-21 15:48:45 +00:00
"kind" : "discovery#restDescription" ,
"description" : "Provides tools for running validation tests against single URLs" ,
"servicePath" : "" ,
"rootUrl" : "https://searchconsole.googleapis.com/" ,
"basePath" : "" ,
"ownerDomain" : "google.com" ,
"name" : "searchconsole" ,
"batchPath" : "batch" ,
"id" : "searchconsole:v1" ,
"documentationLink" : "https://developers.google.com/webmaster-tools/search-console-api/" ,
"revision" : "20170915" ,
"title" : "Google Search Console URL Testing Tools API" ,
2017-08-05 18:17:15 +00:00
"ownerName" : "Google" ,
"discoveryVersion" : "v1" ,
2017-09-13 12:09:48 +00:00
"version_module" : true ,
2017-08-05 18:17:15 +00:00
"resources" : {
"urlTestingTools" : {
"resources" : {
"mobileFriendlyTest" : {
"methods" : {
"run" : {
"request" : {
"$ref" : "RunMobileFriendlyTestRequest"
} ,
"description" : "Runs Mobile-Friendly Test for a given URL." ,
2017-09-21 15:48:45 +00:00
"httpMethod" : "POST" ,
"parameterOrder" : [ ] ,
2017-08-05 18:17:15 +00:00
"response" : {
"$ref" : "RunMobileFriendlyTestResponse"
} ,
2017-09-13 12:09:48 +00:00
"parameters" : { } ,
"flatPath" : "v1/urlTestingTools/mobileFriendlyTest:run" ,
2017-09-21 15:48:45 +00:00
"id" : "searchconsole.urlTestingTools.mobileFriendlyTest.run" ,
"path" : "v1/urlTestingTools/mobileFriendlyTest:run"
2017-08-05 18:17:15 +00:00
}
}
}
}
}
} ,
"parameters" : {
2017-09-13 12:09:48 +00:00
"access_token" : {
"location" : "query" ,
"description" : "OAuth access token." ,
"type" : "string"
} ,
2017-09-21 15:48:45 +00:00
"key" : {
"location" : "query" ,
"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." ,
"type" : "string"
} ,
2017-08-05 18:17:15 +00:00
"quotaUser" : {
"location" : "query" ,
"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." ,
"type" : "string"
} ,
"pp" : {
2017-09-13 12:09:48 +00:00
"location" : "query" ,
2017-08-05 18:17:15 +00:00
"description" : "Pretty-print response." ,
"type" : "boolean" ,
2017-09-13 12:09:48 +00:00
"default" : "true"
2017-08-05 18:17:15 +00:00
} ,
2017-09-13 12:09:48 +00:00
"bearer_token" : {
2017-08-05 18:17:15 +00:00
"location" : "query" ,
2017-09-13 12:09:48 +00:00
"description" : "OAuth bearer token." ,
2017-08-05 18:17:15 +00:00
"type" : "string"
} ,
2017-09-13 12:09:48 +00:00
"oauth_token" : {
2017-09-21 15:48:45 +00:00
"type" : "string" ,
2017-08-05 18:17:15 +00:00
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "OAuth 2.0 token for the current user."
2017-08-05 18:17:15 +00:00
} ,
"upload_protocol" : {
"description" : "Upload protocol for media (e.g. \"raw\", \"multipart\")." ,
"type" : "string" ,
"location" : "query"
} ,
"prettyPrint" : {
2017-09-13 12:09:48 +00:00
"location" : "query" ,
2017-08-05 18:17:15 +00:00
"description" : "Returns response with indentations and line breaks." ,
"type" : "boolean" ,
2017-09-13 12:09:48 +00:00
"default" : "true"
2017-08-05 18:17:15 +00:00
} ,
2017-09-21 15:48:45 +00:00
"fields" : {
2017-08-05 18:17:15 +00:00
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "Selector specifying which fields to include in a partial response." ,
2017-08-05 18:17:15 +00:00
"type" : "string"
} ,
2017-09-21 15:48:45 +00:00
"uploadType" : {
"description" : "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." ,
2017-09-13 12:09:48 +00:00
"type" : "string" ,
"location" : "query"
2017-08-05 18:17:15 +00:00
} ,
"callback" : {
"description" : "JSONP" ,
2017-09-13 12:09:48 +00:00
"type" : "string" ,
"location" : "query"
2017-08-05 18:17:15 +00:00
} ,
"$.xgafv" : {
2017-09-21 15:48:45 +00:00
"description" : "V1 error format." ,
2017-08-05 18:17:15 +00:00
"type" : "string" ,
"enumDescriptions" : [
"v1 error format" ,
"v2 error format"
] ,
"location" : "query" ,
"enum" : [
"1" ,
"2"
2017-09-21 15:48:45 +00:00
]
2017-08-05 18:17:15 +00:00
} ,
"alt" : {
2017-09-21 15:48:45 +00:00
"description" : "Data format for response." ,
"default" : "json" ,
2017-08-05 18:17:15 +00:00
"enum" : [
"json" ,
"media" ,
"proto"
] ,
"type" : "string" ,
"enumDescriptions" : [
"Responses with Content-Type of application/json" ,
"Media download with context-dependent Content-Type" ,
"Responses with Content-Type of application/x-protobuf"
] ,
2017-09-21 15:48:45 +00:00
"location" : "query"
2017-08-05 18:17:15 +00:00
}
} ,
"schemas" : {
2017-09-21 15:48:45 +00:00
"BlockedResource" : {
"properties" : {
"url" : {
"description" : "URL of the blocked resource." ,
"type" : "string"
}
} ,
"id" : "BlockedResource" ,
"description" : "Blocked resource." ,
"type" : "object"
} ,
"TestStatus" : {
"description" : "Final state of the test, including error details if necessary." ,
"type" : "object" ,
"properties" : {
"status" : {
"enumDescriptions" : [
"Internal error when running this test. Please try running the test again." ,
"Inspection has completed without errors." ,
"Inspection terminated in an error state. This indicates a problem in\nGoogle's infrastructure, not a user error. Please try again later." ,
"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."
] ,
"enum" : [
"TEST_STATUS_UNSPECIFIED" ,
"COMPLETE" ,
"INTERNAL_ERROR" ,
"PAGE_UNREACHABLE"
] ,
"description" : "Status of the test." ,
"type" : "string"
} ,
"details" : {
"description" : "Error details if applicable." ,
"type" : "string"
}
} ,
"id" : "TestStatus"
} ,
2017-08-05 18:17:15 +00:00
"Image" : {
"type" : "object" ,
"properties" : {
"mimeType" : {
"description" : "The mime-type of the image data." ,
"type" : "string"
} ,
"data" : {
"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." ,
2017-09-13 12:09:48 +00:00
"format" : "byte" ,
2017-08-05 18:17:15 +00:00
"type" : "string"
}
} ,
2017-09-21 15:48:45 +00:00
"id" : "Image" ,
"description" : "Describe image data."
2017-08-05 18:17:15 +00:00
} ,
"RunMobileFriendlyTestRequest" : {
2017-09-21 15:48:45 +00:00
"id" : "RunMobileFriendlyTestRequest" ,
2017-08-05 18:17:15 +00:00
"description" : "Mobile-friendly test request." ,
"type" : "object" ,
"properties" : {
"url" : {
"description" : "URL for inspection." ,
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"requestScreenshot" : {
"description" : "Whether or not screenshot is requested. Default is false." ,
"type" : "boolean"
2017-08-05 18:17:15 +00:00
}
2017-09-21 15:48:45 +00:00
}
2017-08-05 18:17:15 +00:00
} ,
"MobileFriendlyIssue" : {
"description" : "Mobile-friendly issue." ,
"type" : "object" ,
"properties" : {
"rule" : {
"enum" : [
"MOBILE_FRIENDLY_RULE_UNSPECIFIED" ,
"USES_INCOMPATIBLE_PLUGINS" ,
"CONFIGURE_VIEWPORT" ,
"FIXED_WIDTH_VIEWPORT" ,
"SIZE_CONTENT_TO_VIEWPORT" ,
"USE_LEGIBLE_FONT_SIZES" ,
"TAP_TARGETS_TOO_CLOSE"
] ,
"description" : "Rule violated." ,
2017-09-21 15:48:45 +00:00
"type" : "string" ,
"enumDescriptions" : [
"Unknown rule. Sorry, we don't have any description for the rule that was\nbroken." ,
"Plugins incompatible with mobile devices are being used. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#flash_usage)." ,
"Viewsport is not specified using the meta viewport tag. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#viewport_not_configured)." ,
"Viewport defined to a fixed width. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#fixed-width_viewport)." ,
"Content not sized to viewport. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport)." ,
"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)." ,
"Touch elements are too close to each other. [Learn more]\n(https://support.google.com/webmasters/answer/6352293#touch_elements_too_close)."
]
2017-08-05 18:17:15 +00:00
}
} ,
"id" : "MobileFriendlyIssue"
} ,
"RunMobileFriendlyTestResponse" : {
"description" : "Mobile-friendly test response, including mobile-friendly issues and resource\nissues." ,
"type" : "object" ,
"properties" : {
2017-09-21 15:48:45 +00:00
"testStatus" : {
"description" : "Final state of the test, can be either complete or an error." ,
"$ref" : "TestStatus"
} ,
"resourceIssues" : {
"description" : "Information about embedded resources issues." ,
"type" : "array" ,
"items" : {
"$ref" : "ResourceIssue"
}
} ,
2017-08-05 18:17:15 +00:00
"mobileFriendliness" : {
"enumDescriptions" : [
"Internal error when running this test. Please try running the test again." ,
"The page is mobile friendly." ,
"The page is not mobile friendly."
] ,
"enum" : [
"MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED" ,
"MOBILE_FRIENDLY" ,
"NOT_MOBILE_FRIENDLY"
] ,
"description" : "Test verdict, whether the page is mobile friendly or not." ,
"type" : "string"
} ,
"mobileFriendlyIssues" : {
"description" : "List of mobile-usability issues." ,
2017-09-13 12:09:48 +00:00
"type" : "array" ,
2017-08-05 18:17:15 +00:00
"items" : {
"$ref" : "MobileFriendlyIssue"
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
} ,
"screenshot" : {
2017-09-13 12:09:48 +00:00
"$ref" : "Image" ,
"description" : "Screenshot of the requested URL."
2017-08-05 18:17:15 +00:00
}
} ,
"id" : "RunMobileFriendlyTestResponse"
} ,
"ResourceIssue" : {
"properties" : {
"blockedResource" : {
"$ref" : "BlockedResource" ,
"description" : "Describes a blocked resource issue."
}
} ,
2017-09-21 15:48:45 +00:00
"id" : "ResourceIssue" ,
"description" : "Information about a resource with issue." ,
2017-09-13 12:09:48 +00:00
"type" : "object"
2017-08-05 18:17:15 +00:00
}
} ,
2017-09-13 12:09:48 +00:00
"protocol" : "rest" ,
2017-08-05 18:17:15 +00:00
"icons" : {
2017-09-21 15:48:45 +00:00
"x16" : "http://www.google.com/images/icons/product/search-16.gif" ,
"x32" : "http://www.google.com/images/icons/product/search-32.gif"
2017-08-05 18:17:15 +00:00
} ,
2017-09-13 12:09:48 +00:00
"version" : "v1" ,
"baseUrl" : "https://searchconsole.googleapis.com/" ,
2017-09-21 15:48:45 +00:00
"canonicalName" : "Search Console"
2017-08-05 18:17:15 +00:00
}