# Chrome UX Report

> Measure how real Chrome visitors experience a site and track Core Web Vitals over time.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/chrome-ux-report

## Actions

### Get current Web Vitals

Get the latest 28-day real-user measurements for a page or an entire site.

**Inputs**

- Origin (`origin`, text): Origin including its scheme, such as https://www.google.com.
- URL (`url`, text): The full URL of a specific page.
- Form factor (`form_factor`, text): The device type to measure. Leave empty to combine all devices. One of: `DESKTOP`, `PHONE`, `TABLET`.

**Outputs**

- `data` (object): The response from Chrome UX Report.

**Example output**

```json
{
  "data": {
    "record": {
      "collectionPeriod": {
        "firstDate": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "lastDate": {
          "day": 1,
          "month": 1,
          "year": 1
        }
      },
      "key": {
        "formFactor": "example",
        "origin": "example",
        "url": "example"
      },
      "metrics": {
        "cumulative_layout_shift": {
          "percentiles": {
            "p75": 1
          }
        },
        "interaction_to_next_paint": {
          "percentiles": {
            "p75": 1
          }
        },
        "largest_contentful_paint": {
          "percentiles": {
            "p75": 1
          }
        }
      }
    },
    "urlNormalizationDetails": {
      "normalizedUrl": "example",
      "originalUrl": "example"
    }
  }
}
```

### Get Web Vitals history

Get weekly snapshots of 28-day measurements for a page or an entire site.

**Inputs**

- Origin (`origin`, text): Origin including its scheme, such as https://www.google.com.
- URL (`url`, text): The full URL of a specific page.
- Form factor (`form_factor`, text): The device type to measure. Leave empty to combine all devices. One of: `DESKTOP`, `PHONE`, `TABLET`.

**Outputs**

- `data` (object): The response from Chrome UX Report.

**Example output**

```json
{
  "data": {
    "record": {
      "collectionPeriods": [
        {
          "firstDate": {
            "day": 1,
            "month": 1,
            "year": 1
          },
          "lastDate": {
            "day": 1,
            "month": 1,
            "year": 1
          }
        }
      ],
      "key": {
        "formFactor": "example",
        "origin": "example",
        "url": "example"
      },
      "metrics": {
        "cumulative_layout_shift": {
          "percentiles": {
            "p75s": [
              1
            ]
          }
        },
        "interaction_to_next_paint": {
          "percentiles": {
            "p75s": [
              1
            ]
          }
        },
        "largest_contentful_paint": {
          "percentiles": {
            "p75s": [
              1
            ]
          }
        }
      }
    },
    "urlNormalizationDetails": {
      "normalizedUrl": "example",
      "originalUrl": "example"
    }
  }
}
```
