Google Chrome Records API

The Records API from Google Chrome — 2 operation(s) for records.

GitHub OpenAPI

Operations 2

POST /v1/records:queryRecord Query record records #
POST /v1/records:queryHistoryRecord Query history record records #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-chrome:google-chrome-records-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-chrome-records-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Chrome UX Report Records API
  version: v1
  description: Generated from Google's published Discovery document for Chrome UX Report API (chromeuxreport v1, revision 20261110). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://chromeuxreport.googleapis.com
tags:
- name: Records
paths:
  /v1/records:queryRecord:
    post:
      operationId: chromeuxreport.records.queryRecord
      summary: Query record records
      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.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - apiKey: []
      tags:
      - Records
  /v1/records:queryHistoryRecord:
    post:
      operationId: chromeuxreport.records.queryHistoryRecord
      summary: Query history record records
      description: Queries the Chrome User Experience Report for a timeseries `history record` for a given site. Returns a `history record` that contains one or more `metric timeseries` corresponding to performance data about the requested site.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryHistoryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryHistoryResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - apiKey: []
      tags:
      - Records
components:
  schemas:
    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`.
      properties:
        percentiles:
          $ref: '#/components/schemas/Percentiles'
          description: Commonly useful percentiles of the Metric. The value type for the percentiles will be the same as the value types given for the Histogram bins.
        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: '#/components/schemas/Bin'
        fractions:
          type: object
          description: For enum metrics, provides fractions which add up to approximately 1.0.
          additionalProperties:
            format: double
            type: number
      type: object
    Key:
      type: object
      description: Key defines all the dimensions that identify this record as unique.
      properties:
        effectiveConnectionType:
          type: string
          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.'
        url:
          type: string
          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.'
        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:
          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.
          type: string
          enum:
          - ALL_FORM_FACTORS
          - PHONE
          - DESKTOP
          - TABLET
    UrlNormalization:
      type: object
      properties:
        originalUrl:
          type: string
          description: The original requested URL prior to any normalization actions.
        normalizedUrl:
          description: The URL after any normalization actions. This is a valid user experience URL that could reasonably be looked up.
          type: string
      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.
    TimeseriesBin:
      type: object
      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.
      properties:
        densities:
          items:
            type: number
            format: double
          type: array
          description: The proportion of users that experienced this bin's value for the given metric in a given collection period; the index for each of these entries corresponds to an entry in the CollectionPeriods field in the HistoryRecord message, which describes when the density was observed in the field. Thus, the length of this list of densities is equal to the length of the CollectionPeriods field in the HistoryRecord message.
        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.
        start:
          description: Start is the beginning of the data bin.
    QueryHistoryRequest:
      type: object
      properties:
        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
        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
        collectionPeriodCount:
          type: integer
          format: int32
          description: The number of collection periods to return. If not specified, the default is 25. If present, must be in the range [1, 40].
        formFactor:
          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.'
          type: string
          enum:
          - ALL_FORM_FACTORS
          - PHONE
          - DESKTOP
          - TABLET
        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", "experimental_time_to_first_byte", "experimental_interaction_to_next_paint"]'
          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 history record.
    Percentiles:
      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.
      properties:
        p75:
          description: 75% of users experienced the given metric at or below this value.
      type: object
    QueryHistoryResponse:
      properties:
        record:
          $ref: '#/components/schemas/HistoryRecord'
          description: The record that was found.
        urlNormalizationDetails:
          $ref: '#/components/schemas/UrlNormalization'
          description: These are details about automated normalization actions that were taken in order to make the requested `url_pattern` valid.
      type: object
      description: Response payload sent back to a physical web client. This response contains the record found based on the identiers present in a `QueryHistoryRequest`. The returned response will have a history record, and sometimes details on normalization actions taken on the request that were necessary to make the request successful.
    Date:
      type: object
      properties:
        month:
          type: integer
          description: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
          format: int32
        day:
          format: int32
          description: Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
          type: integer
        year:
          format: int32
          type: integer
          description: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      description: 'Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp'
    Record:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/Key'
          description: Key defines all of the unique querying parameters needed to look up a user experience record.
        metrics:
          additionalProperties:
            $ref: '#/components/schemas/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", "experimental_time_to_first_byte", "experimental_interaction_to_next_paint"]'
        collectionPeriod:
          $ref: '#/components/schemas/CollectionPeriod'
          description: The collection period indicates when the data reflected in this record was collected.
      description: Record is a single Chrome UX report data record. It contains use experience statistics for a single url pattern and set of dimensions.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    HistoryKey:
      description: Key defines all the dimensions that identify this record as unique.
      type: object
      properties:
        origin:
          type: string
          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.'
        url:
          description: 'Url specifies a specific url that this record is for. This url should be normalized, following the normalization actions taken in the request to increase the chances of successful lookup. Note: When specifying a "url" only data for that specific url will be aggregated.'
          type: string
        formFactor:
          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.
          type: string
          enum:
          - ALL_FORM_FACTORS
          - PHONE
          - DESKTOP
          - TABLET
    HistoryRecord:
      type: object
      properties:
        collectionPeriods:
          items:
            $ref: '#/components/schemas/CollectionPeriod'
          type: array
          description: The collection periods indicate when each of the data points reflected in the time series data in metrics was collected. Note that all the time series share the same collection periods, and it is enforced in the CrUX pipeline that every time series has the same number of data points.
        key:
          $ref: '#/components/schemas/HistoryKey'
          description: Key defines all of the unique querying parameters needed to look up a user experience history record.
        metrics:
          additionalProperties:
            $ref: '#/components/schemas/MetricTimeseries'
          type: object
          description: 'Metrics is the map of user experience time series 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", "experimental_time_to_first_byte", "experimental_interaction_to_next_paint"]'
      description: HistoryRecord is a timeseries of Chrome UX Report data. It contains user experience statistics for a single url pattern and a set of dimensions.
    Bin:
      properties:
        density:
          description: The proportion of users that experienced this bin's value for the given metric.
        start:
          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.
      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
    QueryRequest:
      properties:
        formFactor:
          type: string
          enum:
          - ALL_FORM_FACTORS
          - PHONE
          - DESKTOP
          - TABLET
          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.'
        origin:
          type: string
          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"'
        url:
          type: string
          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/"'
        metrics:
          type: array
          items:
            type: string
          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", "experimental_time_to_first_byte", "experimental_interaction_to_next_paint"]'
        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
      description: Request payload sent by a physical web client. This request includes all necessary context to load a particular user experience record.
      type: object
    MetricTimeseries:
      properties:
        histogramTimeseries:
          type: array
          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, for each timeseries entry.
          items:
            $ref: '#/components/schemas/TimeseriesBin'
        fractionTimeseries:
          description: Mapping from labels to timeseries of fractions attributed to this label.
          additionalProperties:
            $ref: '#/components/schemas/FractionTimeseries'
          type: object
        percentilesTimeseries:
          $ref: '#/components/schemas/TimeseriesPercentiles'
          description: Commonly useful percentiles of the Metric. The value type for the percentiles will be the same as the value types given for the Histogram bins.
      description: A `metric timeseries` 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`, where each bin has density values for a particular time period.
      type: object
    FractionTimeseries:
      description: For enum metrics, provides fraction timeseries which add up to approximately 1.0 per entry (k-th element into the repeated fractions field for any k <= len) across fraction_timeseries.
      type: object
      properties:
        fractions:
          items:
            type: number
            format: double
          type: array
          description: Values between 0.0 and 1.0 (inclusive) and NaN.
    TimeseriesPercentiles:
      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.
      properties:
        p75s:
          items: {}
          type: array
          description: 75% of users experienced the given metric at or below this value. The length of this list of densities is equal to the length of the CollectionPeriods field in the HistoryRecord message, which describes when the density was observed in the field.
      type: object
    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:
        record:
          $ref: '#/components/schemas/Record'
          description: The record that was found.
        urlNormalizationDetails:
          $ref: '#/components/schemas/UrlNormalization'
          description: These are details about automated normalization actions that were taken in order to make the requested `url_pattern` valid.
    CollectionPeriod:
      type: object
      properties:
        firstDate:
          $ref: '#/components/schemas/Date'
          description: The first day in the collection period, inclusive.
        lastDate:
          $ref: '#/components/schemas/Date'
          description: The last day in the collection period, inclusive.
      description: The collection period is a date range which includes the `first` and `last` day.
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
externalDocs:
  url: https://developers.google.com/web/tools/chrome-user-experience-report/api/reference
x-provenance:
  method: harvested
  publisher: Google
  source: https://chromeuxreport.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)