Core Web Vitals field history (CrUX)
crux_historyTrack weekly Core Web Vitals trends (LCP, INP, CLS, FCP, TTFB) for a URL or origin using Chrome UX Report history, including distribution of good, needs-improvement, and poor experiences over time.
Instructions
Real-user Core Web Vitals trend from the Chrome UX Report History API for an origin or URL: weekly p75 of LCP, INP, CLS, FCP, TTFB over the last ~25 weeks with the share of good / needs-improvement / poor for each week. Use crux_snapshot for the latest record and the LCP sub-part breakdown. Needs the 'Chrome UX Report API' enabled on the GCP project and a key in CRUX_API_KEY / GOOGLE_API_KEY / PAGESPEED_API_KEY. Returns 404 when the page has too little traffic for CrUX; try the origin instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | origin | |
| weeks | No | ||
| target | Yes | Page URL or origin (https://example.com). | |
| formFactor | No | Device class; ALL merges every device. | PHONE |