OLD | NEW |
(Empty) | |
| 1 { |
| 2 "basePath": "/pagespeedonline/v1/", |
| 3 "baseUrl": "https://www.googleapis.com/pagespeedonline/v1/", |
| 4 "batchPath": "batch", |
| 5 "description": "Lets you analyze the performance of a web page and get tailo
red suggestions to make that page faster.", |
| 6 "discoveryVersion": "v1", |
| 7 "documentationLink": "https://developers.google.com/speed/docs/insights/v1/g
etting_started", |
| 8 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/i9zrKH7a71FIACHf4pP1Da2VYE4\"", |
| 9 "icons": { |
| 10 "x16": "http://www.google.com/images/icons/product/pagespeed-16.png", |
| 11 "x32": "http://www.google.com/images/icons/product/pagespeed-32.png" |
| 12 }, |
| 13 "id": "pagespeedonline:v1", |
| 14 "kind": "discovery#restDescription", |
| 15 "name": "pagespeedonline", |
| 16 "ownerDomain": "google.com", |
| 17 "ownerName": "Google", |
| 18 "parameters": { |
| 19 "alt": { |
| 20 "default": "json", |
| 21 "description": "Data format for the response.", |
| 22 "enum": [ |
| 23 "json" |
| 24 ], |
| 25 "enumDescriptions": [ |
| 26 "Responses with Content-Type of application/json" |
| 27 ], |
| 28 "location": "query", |
| 29 "type": "string" |
| 30 }, |
| 31 "fields": { |
| 32 "description": "Selector specifying which fields to include in a par
tial response.", |
| 33 "location": "query", |
| 34 "type": "string" |
| 35 }, |
| 36 "key": { |
| 37 "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.", |
| 38 "location": "query", |
| 39 "type": "string" |
| 40 }, |
| 41 "oauth_token": { |
| 42 "description": "OAuth 2.0 token for the current user.", |
| 43 "location": "query", |
| 44 "type": "string" |
| 45 }, |
| 46 "prettyPrint": { |
| 47 "default": "true", |
| 48 "description": "Returns response with indentations and line breaks."
, |
| 49 "location": "query", |
| 50 "type": "boolean" |
| 51 }, |
| 52 "quotaUser": { |
| 53 "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. Overrides userIp if both are provided.", |
| 54 "location": "query", |
| 55 "type": "string" |
| 56 }, |
| 57 "userIp": { |
| 58 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
| 59 "location": "query", |
| 60 "type": "string" |
| 61 } |
| 62 }, |
| 63 "protocol": "rest", |
| 64 "resources": { |
| 65 "pagespeedapi": { |
| 66 "methods": { |
| 67 "runpagespeed": { |
| 68 "description": "Runs Page Speed analysis on the page at the
specified URL, and returns a Page Speed score, a list of suggestions to make tha
t page faster, and other information.", |
| 69 "httpMethod": "GET", |
| 70 "id": "pagespeedonline.pagespeedapi.runpagespeed", |
| 71 "parameterOrder": [ |
| 72 "url" |
| 73 ], |
| 74 "parameters": { |
| 75 "filter_third_party_resources": { |
| 76 "default": "false", |
| 77 "description": "Indicates if third party resources s
hould be filtered out before PageSpeed analysis.", |
| 78 "location": "query", |
| 79 "type": "boolean" |
| 80 }, |
| 81 "locale": { |
| 82 "description": "The locale used to localize formatte
d results", |
| 83 "location": "query", |
| 84 "pattern": "[a-zA-Z]+(_[a-zA-Z]+)?", |
| 85 "type": "string" |
| 86 }, |
| 87 "rule": { |
| 88 "description": "A Page Speed rule to run; if none ar
e given, all rules are run", |
| 89 "location": "query", |
| 90 "pattern": "[a-zA-Z]+", |
| 91 "repeated": true, |
| 92 "type": "string" |
| 93 }, |
| 94 "screenshot": { |
| 95 "default": "false", |
| 96 "description": "Indicates if binary data containing
a screenshot should be included", |
| 97 "location": "query", |
| 98 "type": "boolean" |
| 99 }, |
| 100 "strategy": { |
| 101 "description": "The analysis strategy to use", |
| 102 "enum": [ |
| 103 "desktop", |
| 104 "mobile" |
| 105 ], |
| 106 "enumDescriptions": [ |
| 107 "Fetch and analyze the URL for desktop browsers"
, |
| 108 "Fetch and analyze the URL for mobile devices" |
| 109 ], |
| 110 "location": "query", |
| 111 "type": "string" |
| 112 }, |
| 113 "url": { |
| 114 "description": "The URL to fetch and analyze", |
| 115 "location": "query", |
| 116 "pattern": "http(s)?://.*", |
| 117 "required": true, |
| 118 "type": "string" |
| 119 } |
| 120 }, |
| 121 "path": "runPagespeed", |
| 122 "response": { |
| 123 "$ref": "Result" |
| 124 } |
| 125 } |
| 126 } |
| 127 } |
| 128 }, |
| 129 "revision": "20140528", |
| 130 "rootUrl": "https://www.googleapis.com/", |
| 131 "schemas": { |
| 132 "Result": { |
| 133 "id": "Result", |
| 134 "properties": { |
| 135 "formattedResults": { |
| 136 "description": "Localized Page Speed results. Contains a rul
eResults entry for each Page Speed rule instantiated and run by the server.", |
| 137 "properties": { |
| 138 "locale": { |
| 139 "description": "The locale of the formattedResults,
e.g. \"en_US\".", |
| 140 "type": "string" |
| 141 }, |
| 142 "ruleResults": { |
| 143 "additionalProperties": { |
| 144 "description": "The enum-like identifier for thi
s rule. For instance \"EnableKeepAlive\" or \"AvoidCssImport\". Not localized.", |
| 145 "properties": { |
| 146 "localizedRuleName": { |
| 147 "description": "Localized name of the ru
le, intended for presentation to a user.", |
| 148 "type": "string" |
| 149 }, |
| 150 "ruleImpact": { |
| 151 "description": "The impact (unbounded fl
oating point value) that implementing the suggestions for this rule would have o
n making the page faster. Impact is comparable between rules to determine which
rule's suggestions would have a higher or lower impact on making a page faster.
For instance, if enabling compression would save 1MB, while optimizing images wo
uld save 500kB, the enable compression rule would have 2x the impact of the imag
e optimization rule, all other things being equal.", |
| 152 "format": "double", |
| 153 "type": "number" |
| 154 }, |
| 155 "urlBlocks": { |
| 156 "description": "List of blocks of URLs.
Each block may contain a heading and a list of URLs. Each URL may optionally inc
lude additional details.", |
| 157 "items": { |
| 158 "properties": { |
| 159 "header": { |
| 160 "description": "Heading to b
e displayed with the list of URLs.", |
| 161 "properties": { |
| 162 "args": { |
| 163 "description": "List
of arguments for the format string.", |
| 164 "items": { |
| 165 "properties": { |
| 166 "type": { |
| 167 "descrip
tion": "Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DUR
ATION.", |
| 168 "type":
"string" |
| 169 }, |
| 170 "value": { |
| 171 "descrip
tion": "Argument value, as a localized string.", |
| 172 "type":
"string" |
| 173 } |
| 174 }, |
| 175 "type": "object" |
| 176 }, |
| 177 "type": "array" |
| 178 }, |
| 179 "format": { |
| 180 "description": "A lo
calized format string with $N placeholders, where N is the 1-indexed argument nu
mber, e.g. 'Minifying the following $1 resources would save a total of $2 bytes'
.", |
| 181 "type": "string" |
| 182 } |
| 183 }, |
| 184 "type": "object" |
| 185 }, |
| 186 "urls": { |
| 187 "description": "List of entr
ies that provide information about URLs in the url block. Optional.", |
| 188 "items": { |
| 189 "properties": { |
| 190 "details": { |
| 191 "description": "
List of entries that provide additional details about a single URL. Optional.", |
| 192 "items": { |
| 193 "properties"
: { |
| 194 "args":
{ |
| 195 "des
cription": "List of arguments for the format string.", |
| 196 "ite
ms": { |
| 197
"properties": { |
| 198
"type": { |
| 199
"description": "Type of argument. One of URL, STRING_LITERAL, INT_LITERA
L, BYTES, or DURATION.", |
| 200
"type": "string" |
| 201
}, |
| 202
"value": { |
| 203
"description": "Argument value, as a localized string.", |
| 204
"type": "string" |
| 205
} |
| 206
}, |
| 207
"type": "object" |
| 208 }, |
| 209 "typ
e": "array" |
| 210 }, |
| 211 "format"
: { |
| 212 "des
cription": "A localized format string with $N placeholders, where N is the 1-ind
exed argument number, e.g. 'Unnecessary metadata for this resource adds an addit
ional $1 bytes to its download size'.", |
| 213 "typ
e": "string" |
| 214 } |
| 215 }, |
| 216 "type": "obj
ect" |
| 217 }, |
| 218 "type": "array" |
| 219 }, |
| 220 "result": { |
| 221 "description": "
A format string that gives information about the URL, and a list of arguments fo
r that format string.", |
| 222 "properties": { |
| 223 "args": { |
| 224 "descrip
tion": "List of arguments for the format string.", |
| 225 "items":
{ |
| 226 "pro
perties": { |
| 227
"type": { |
| 228
"description": "Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, B
YTES, or DURATION.", |
| 229
"type": "string" |
| 230
}, |
| 231
"value": { |
| 232
"description": "Argument value, as a localized string.", |
| 233
"type": "string" |
| 234
} |
| 235 }, |
| 236 "typ
e": "object" |
| 237 }, |
| 238 "type":
"array" |
| 239 }, |
| 240 "format": { |
| 241 "descrip
tion": "A localized format string with $N placeholders, where N is the 1-indexed
argument number, e.g. 'Minifying the resource at URL $1 can save $2 bytes'.", |
| 242 "type":
"string" |
| 243 } |
| 244 }, |
| 245 "type": "object" |
| 246 } |
| 247 }, |
| 248 "type": "object" |
| 249 }, |
| 250 "type": "array" |
| 251 } |
| 252 }, |
| 253 "type": "object" |
| 254 }, |
| 255 "type": "array" |
| 256 } |
| 257 }, |
| 258 "type": "object" |
| 259 }, |
| 260 "description": "Dictionary of formatted rule results
, with one entry for each Page Speed rule instantiated and run by the server.", |
| 261 "type": "object" |
| 262 } |
| 263 }, |
| 264 "type": "object" |
| 265 }, |
| 266 "id": { |
| 267 "description": "Canonicalized and final URL for the document
, after following page redirects (if any).", |
| 268 "type": "string" |
| 269 }, |
| 270 "invalidRules": { |
| 271 "description": "List of rules that were specified in the req
uest, but which the server did not know how to instantiate.", |
| 272 "items": { |
| 273 "type": "string" |
| 274 }, |
| 275 "type": "array" |
| 276 }, |
| 277 "kind": { |
| 278 "default": "pagespeedonline#result", |
| 279 "description": "Kind of result.", |
| 280 "type": "string" |
| 281 }, |
| 282 "pageStats": { |
| 283 "description": "Summary statistics for the page, such as num
ber of JavaScript bytes, number of HTML bytes, etc.", |
| 284 "properties": { |
| 285 "cssResponseBytes": { |
| 286 "description": "Number of uncompressed response byte
s for CSS resources on the page.", |
| 287 "format": "int64", |
| 288 "type": "string" |
| 289 }, |
| 290 "flashResponseBytes": { |
| 291 "description": "Number of response bytes for flash r
esources on the page.", |
| 292 "format": "int64", |
| 293 "type": "string" |
| 294 }, |
| 295 "htmlResponseBytes": { |
| 296 "description": "Number of uncompressed response byte
s for the main HTML document and all iframes on the page.", |
| 297 "format": "int64", |
| 298 "type": "string" |
| 299 }, |
| 300 "imageResponseBytes": { |
| 301 "description": "Number of response bytes for image r
esources on the page.", |
| 302 "format": "int64", |
| 303 "type": "string" |
| 304 }, |
| 305 "javascriptResponseBytes": { |
| 306 "description": "Number of uncompressed response byte
s for JS resources on the page.", |
| 307 "format": "int64", |
| 308 "type": "string" |
| 309 }, |
| 310 "numberCssResources": { |
| 311 "description": "Number of CSS resources referenced b
y the page.", |
| 312 "format": "int32", |
| 313 "type": "integer" |
| 314 }, |
| 315 "numberHosts": { |
| 316 "description": "Number of unique hosts referenced by
the page.", |
| 317 "format": "int32", |
| 318 "type": "integer" |
| 319 }, |
| 320 "numberJsResources": { |
| 321 "description": "Number of JavaScript resources refer
enced by the page.", |
| 322 "format": "int32", |
| 323 "type": "integer" |
| 324 }, |
| 325 "numberResources": { |
| 326 "description": "Number of HTTP resources loaded by t
he page.", |
| 327 "format": "int32", |
| 328 "type": "integer" |
| 329 }, |
| 330 "numberStaticResources": { |
| 331 "description": "Number of static (i.e. cacheable) re
sources on the page.", |
| 332 "format": "int32", |
| 333 "type": "integer" |
| 334 }, |
| 335 "otherResponseBytes": { |
| 336 "description": "Number of response bytes for other r
esources on the page.", |
| 337 "format": "int64", |
| 338 "type": "string" |
| 339 }, |
| 340 "textResponseBytes": { |
| 341 "description": "Number of uncompressed response byte
s for text resources not covered by other statistics (i.e non-HTML, non-script,
non-CSS resources) on the page.", |
| 342 "format": "int64", |
| 343 "type": "string" |
| 344 }, |
| 345 "totalRequestBytes": { |
| 346 "description": "Total size of all request bytes sent
by the page.", |
| 347 "format": "int64", |
| 348 "type": "string" |
| 349 } |
| 350 }, |
| 351 "type": "object" |
| 352 }, |
| 353 "responseCode": { |
| 354 "description": "Response code for the document. 200 indicate
s a normal page load. 4xx/5xx indicates an error.", |
| 355 "format": "int32", |
| 356 "type": "integer" |
| 357 }, |
| 358 "score": { |
| 359 "description": "The Page Speed Score (0-100), which indicate
s how much faster a page could be. A high score indicates little room for improv
ement, while a lower score indicates more room for improvement.", |
| 360 "format": "int32", |
| 361 "type": "integer" |
| 362 }, |
| 363 "screenshot": { |
| 364 "description": "Base64 encoded screenshot of the page that w
as analyzed.", |
| 365 "properties": { |
| 366 "data": { |
| 367 "description": "Image data base64 encoded.", |
| 368 "format": "byte", |
| 369 "type": "string" |
| 370 }, |
| 371 "height": { |
| 372 "description": "Height of screenshot in pixels.", |
| 373 "format": "int32", |
| 374 "type": "integer" |
| 375 }, |
| 376 "mime_type": { |
| 377 "description": "Mime type of image data. E.g. \"imag
e/jpeg\".", |
| 378 "type": "string" |
| 379 }, |
| 380 "width": { |
| 381 "description": "Width of screenshot in pixels.", |
| 382 "format": "int32", |
| 383 "type": "integer" |
| 384 } |
| 385 }, |
| 386 "type": "object" |
| 387 }, |
| 388 "title": { |
| 389 "description": "Title of the page, as displayed in the brows
er's title bar.", |
| 390 "type": "string" |
| 391 }, |
| 392 "version": { |
| 393 "description": "The version of the Page Speed SDK used to ge
nerate these results.", |
| 394 "properties": { |
| 395 "major": { |
| 396 "description": "The major version number of the Page
Speed SDK used to generate these results.", |
| 397 "format": "int32", |
| 398 "type": "integer" |
| 399 }, |
| 400 "minor": { |
| 401 "description": "The minor version number of the Page
Speed SDK used to generate these results.", |
| 402 "format": "int32", |
| 403 "type": "integer" |
| 404 } |
| 405 }, |
| 406 "type": "object" |
| 407 } |
| 408 }, |
| 409 "type": "object" |
| 410 } |
| 411 }, |
| 412 "servicePath": "pagespeedonline/v1/", |
| 413 "title": "PageSpeed Insights API", |
| 414 "version": "v1" |
| 415 } |
OLD | NEW |