blob: 82b5d05d469f0fbd64bcb369e01f032dd3bcb286 [file]
{
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"rootUrl": "https://chromeuxreport.googleapis.com/",
"basePath": "",
"name": "chromeuxreport",
"schemas": {
"Percentiles": {
"properties": {
"p75": {
"type": "any",
"description": "75% of users experienced the given metric at or below this value."
}
},
"type": "object",
"description": "Percentiles contains synthetic values of a metric at a given statistical percentile. These are used for estimating a metric's value as experienced by a percentage of users out of the total number of users.",
"id": "Percentiles"
},
"Record": {
"properties": {
"key": {
"$ref": "Key",
"description": "Key defines all of the unique querying parameters needed to look up a user experience record."
},
"metrics": {
"additionalProperties": {
"$ref": "Metric"
},
"type": "object",
"description": "Metrics is the map of user experience data available for the record defined in the key field. Metrics are keyed on the metric name. Allowed key values: [\"first_contentful_paint\", \"first_input_delay\", \"largest_contentful_paint\", \"cumulative_layout_shift\"]"
}
},
"description": "Record is a single Chrome UX report data record. It contains use experience statistics for a single url pattern and set of dimensions.",
"id": "Record",
"type": "object"
},
"QueryRequest": {
"properties": {
"url": {
"description": "The url pattern \"url\" refers to a url pattern that is any arbitrary url. Examples: \"https://example.com/\", \"https://cloud.google.com/why-google-cloud/\"",
"type": "string"
},
"effectiveConnectionType": {
"description": "The effective connection type is a query dimension that specifies the effective network class that the record's data should belong to. This field uses the values [\"offline\", \"slow-2G\", \"2G\", \"3G\", \"4G\"] as specified in: https://wicg.github.io/netinfo/#effective-connection-types Note: If no effective connection type is specified, then a special record with aggregated data over all effective connection types will be returned.",
"type": "string"
},
"origin": {
"description": "The url pattern \"origin\" refers to a url pattern that is the origin of a website. Examples: \"https://example.com\", \"https://cloud.google.com\"",
"type": "string"
},
"formFactor": {
"enum": [
"ALL_FORM_FACTORS",
"PHONE",
"DESKTOP",
"TABLET"
],
"type": "string",
"description": "The form factor is a query dimension that specifies the device class that the record's data should belong to. Note: If no form factor is specified, then a special record with aggregated data over all form factors will be returned.",
"enumDescriptions": [
"The default value, representing all device classes.",
"The device class representing a \"mobile\"/\"phone\" sized client.",
"The device class representing a \"desktop\"/\"laptop\" type full size client.",
"The device class representing a \"tablet\" type client."
]
},
"metrics": {
"description": "The metrics that should be included in the response. If none are specified then any metrics found will be returned. Allowed values: [\"first_contentful_paint\", \"first_input_delay\", \"largest_contentful_paint\", \"cumulative_layout_shift\"]",
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "Request payload sent by a physical web client. This request includes all necessary context to load a particular user experience record.",
"id": "QueryRequest",
"type": "object"
},
"Key": {
"properties": {
"origin": {
"description": "Origin specifies the origin that this record is for. Note: When specifying an origin, data for loads under this origin over all pages are aggregated into origin level user experience data.",
"type": "string"
},
"formFactor": {
"enumDescriptions": [
"The default value, representing all device classes.",
"The device class representing a \"mobile\"/\"phone\" sized client.",
"The device class representing a \"desktop\"/\"laptop\" type full size client.",
"The device class representing a \"tablet\" type client."
],
"description": "The form factor is the device class that all users used to access the site for this record. If the form factor is unspecified, then aggregated data over all form factors will be returned.",
"enum": [
"ALL_FORM_FACTORS",
"PHONE",
"DESKTOP",
"TABLET"
],
"type": "string"
},
"effectiveConnectionType": {
"description": "The effective connection type is the general connection class that all users experienced for this record. This field uses the values [\"offline\", \"slow-2G\", \"2G\", \"3G\", \"4G\"] as specified in: https://wicg.github.io/netinfo/#effective-connection-types If the effective connection type is unspecified, then aggregated data over all effective connection types will be returned.",
"type": "string"
},
"url": {
"description": "Url specifies a specific url that this record is for. Note: When specifying a \"url\" only data for that specific url will be aggregated.",
"type": "string"
}
},
"description": "Key defines all the dimensions that identify this record as unique.",
"id": "Key",
"type": "object"
},
"Bin": {
"properties": {
"density": {
"description": "The proportion of users that experienced this bin's value for the given metric.",
"type": "number",
"format": "double"
},
"start": {
"type": "any",
"description": "Start is the beginning of the data bin."
},
"end": {
"description": "End is the end of the data bin. If end is not populated, then the bin has no end and is valid from start to +inf.",
"type": "any"
}
},
"id": "Bin",
"description": "A bin is a discrete portion of data spanning from start to end, or if no end is given, then from start to +inf. A bin's start and end values are given in the value type of the metric it represents. For example, \"first contentful paint\" is measured in milliseconds and exposed as ints, therefore its metric bins will use int32s for its start and end types. However, \"cumulative layout shift\" is measured in unitless decimals and is exposed as a decimal encoded as a string, therefore its metric bins will use strings for its value type.",
"type": "object"
},
"UrlNormalization": {
"type": "object",
"description": "Object representing the normalization actions taken to normalize a url to achieve a higher chance of successful lookup. These are simple automated changes that are taken when looking up the provided `url_patten` would be known to fail. Complex actions like following redirects are not handled.",
"properties": {
"originalUrl": {
"type": "string",
"description": "The original requested URL prior to any normalization actions."
},
"normalizedUrl": {
"type": "string",
"description": "The URL after any normalization actions. This is a valid user experience URL that could reasonably be looked up."
}
},
"id": "UrlNormalization"
},
"QueryResponse": {
"description": "Response payload sent back to a physical web client. This response contains the record found based on the identiers present in a `QueryRequest`. The returned response will have a record, and sometimes details on normalization actions taken on the request that were necessary to make the request successful.",
"type": "object",
"properties": {
"urlNormalizationDetails": {
"$ref": "UrlNormalization",
"description": "These are details about automated normalization actions that were taken in order to make the requested `url_pattern` valid."
},
"record": {
"description": "The record that was found.",
"$ref": "Record"
}
},
"id": "QueryResponse"
},
"Metric": {
"description": "A `metric` is a set of user experience data for a single web performance metric, like \"first contentful paint\". It contains a summary histogram of real world Chrome usage as a series of `bins`.",
"type": "object",
"id": "Metric",
"properties": {
"histogram": {
"description": "The histogram of user experiences for a metric. The histogram will have at least one bin and the densities of all bins will add up to ~1.",
"type": "array",
"items": {
"$ref": "Bin"
}
},
"percentiles": {
"description": "Common useful percentiles of the Metric. The value type for the percentiles will be the same as the value types given for the Histogram bins.",
"$ref": "Percentiles"
}
}
}
},
"protocol": "rest",
"canonicalName": "Chrome UX Report",
"version_module": true,
"resources": {
"records": {
"methods": {
"queryRecord": {
"httpMethod": "POST",
"request": {
"$ref": "QueryRequest"
},
"description": "Queries the Chrome User Experience for a single `record` for a given site. Returns a `record` that contains one or more `metrics` corresponding to performance data about the requested site.",
"response": {
"$ref": "QueryResponse"
},
"id": "chromeuxreport.records.queryRecord",
"parameters": {},
"parameterOrder": [],
"flatPath": "v1/records:queryRecord",
"path": "v1/records:queryRecord"
}
}
}
},
"mtlsRootUrl": "https://chromeuxreport.mtls.googleapis.com/",
"parameters": {
"access_token": {
"type": "string",
"description": "OAuth access token.",
"location": "query"
},
"upload_protocol": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"quotaUser": {
"location": "query",
"type": "string",
"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."
},
"key": {
"type": "string",
"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."
},
"oauth_token": {
"type": "string",
"location": "query",
"description": "OAuth 2.0 token for the current user."
},
"fields": {
"type": "string",
"location": "query",
"description": "Selector specifying which fields to include in a partial response."
},
"alt": {
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"location": "query",
"default": "json",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
]
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"prettyPrint": {
"default": "true",
"type": "boolean",
"location": "query",
"description": "Returns response with indentations and line breaks."
},
"uploadType": {
"type": "string",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query"
},
"$.xgafv": {
"description": "V1 error format.",
"location": "query",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"enum": [
"1",
"2"
],
"type": "string"
}
},
"title": "Chrome UX Report API",
"fullyEncodeReservedExpansion": true,
"ownerDomain": "google.com",
"ownerName": "Google",
"discoveryVersion": "v1",
"id": "chromeuxreport:v1",
"kind": "discovery#restDescription",
"revision": "20200803",
"description": "The Chrome UX Report API lets you view real user experience data for millions of websites. ",
"documentationLink": "https://developers.google.com/web/tools/chrome-user-experience-report/api/reference",
"servicePath": "",
"baseUrl": "https://chromeuxreport.googleapis.com/",
"version": "v1",
"batchPath": "batch"
}