Use the CrUX API to retrieve field Core Web Vitals for a specific URL and compare against Good thresholds

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. Enable the Chrome UX Report API in a Google Cloud project and generate an API key
  2. Send a POST request to https://chromeuxreport.googleapis.com/v1/records:queryRecord with a JSON body specifying either url or origin, and optionally formFactor and metrics fields
  3. Parse the response histogram for LCP, INP, and CLS; each metric includes a histogram array and a percentiles object with the 75th percentile value
  4. Compare the p75 values against Google's Good thresholds (LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1) to determine field-data status
  5. If the API returns a 404 (insufficient data for the URL), fall back to querying at the origin level and note that URL-level data requires a minimum traffic threshold

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