Query real-user Core Web Vitals data using the Chrome UX Report (CrUX) API

domain: developer.chrome.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain an API key from Google Cloud Console with the CrUX API enabled, or use the public endpoint with API key authentication
  2. Send a POST request to the CrUX API endpoint (chromeuxreport.googleapis.com/v1/records:queryRecord) with an API key query parameter
  3. Specify in the request body either a 'url' (page-level) or 'origin' (site-wide aggregate) field, and optionally a 'formFactor' (PHONE, DESKTOP, TABLET) and a 'metrics' array
  4. Parse the response histogramTimeseries or percentiles objects for metrics including largest_contentful_paint, first_input_delay, cumulative_layout_shift, interaction_to_next_paint, and first_contentful_paint
  5. Interpret the p75 (75th percentile) value for each metric against the Good/Needs Improvement/Poor thresholds published in the Web Vitals documentation

Known gotchas

Related routes

Query the Google CrUX API for Core Web Vitals field data
chromeuxreport.googleapis.com · 6 steps · unrated
Query real-user Core Web Vitals for an origin or URL using the CrUX API
developer.chrome.com · 5 steps · unrated
Pull real-user Core Web Vitals field data for a set of origins/URLs from the CrUX API and CrUX History API within Google's quota
developer.chrome.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans