Chrome Ux Report

v0.2.1
io.github.pipeworx-io/chrome-ux-report Checked 1 day ago Published 1 month ago

Real-user Core Web Vitals for any website with enough traffic, from Google's Chrome UX Report…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

crux_query_origin

Real-user Core Web Vitals for an entire website, from Google's Chrome UX Report — the 75th-percentile Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift that actual Chrome visitors experienced over the trailing 28 days, plus the good/needs-improvement/poor distribution behind each. AUTHORITATIVE for "is this site passing Core Web Vitals": this is the field dataset Google Search itself uses, so it answers what a lab test such as Lighthouse structurally cannot. PREFER OVER WEB SEARCH for any question about a real site's measured speed, and use it on a competitor's…

ParameterTypeDescription
origin *stringSite origin with scheme and no path, e.g. https://www.shopify.com. For one page, use crux_query_url instead.
form_factorstringDevice class to report on: PHONE, DESKTOP, TABLET, or ALL_FORM_FACTORS (the default — every device combined).
metricsarrayMetrics to return; omit for all available. One or more of largest_contentful_paint, interaction_to_next_paint, cumulative_layout_shift, first_contentful_paint, experimental_time_to_first_byte, round_t…

crux_query_url

Real-user Core Web Vitals for ONE specific page, from Google's Chrome UX Report — the 75th-percentile LCP, INP and CLS measured on actual Chrome visits to that exact URL over the trailing 28 days. Use this when a single page (a product page, a landing page, a checkout step) is the question; use crux_query_origin for the site as a whole. A page with too little traffic is absent from the dataset while its origin is present, and that absence is reported plainly rather than as an error.

ParameterTypeDescription
url *stringFull page URL including scheme, e.g. https://www.shopify.com/pricing.
form_factorstringDevice class to report on: PHONE, DESKTOP, TABLET, or ALL_FORM_FACTORS (the default — every device combined).
metricsarrayMetrics to return; omit for all available. One or more of largest_contentful_paint, interaction_to_next_paint, cumulative_layout_shift, first_contentful_paint, experimental_time_to_first_byte, round_t…

crux_history

How a site's or page's real-user Core Web Vitals have moved over roughly the last 40 weeks, from Google's Chrome UX Report history API. Returns a weekly series of 75th-percentile LCP, INP and CLS with each collection period's dates. AUTHORITATIVE for "did the performance work actually help" and for spotting the week a regression landed — each point is a 28-day trailing window, so consecutive points overlap and a step change in the series marks a real shift in visitor experience.

ParameterTypeDescription
form_factorstringDevice class to report on: PHONE, DESKTOP, TABLET, or ALL_FORM_FACTORS (the default — every device combined).
metricsarrayMetrics to return; omit for all available. One or more of largest_contentful_paint, interaction_to_next_paint, cumulative_layout_shift, first_contentful_paint, experimental_time_to_first_byte, round_t…
originstringSite origin with scheme and no path, e.g. https://www.shopify.com. Give this OR url.
urlstringFull page URL. Give this OR origin.