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

domain: developer.chrome.com · 6 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. Call the records.queryRecord endpoint with either a url or origin key (plus optional formFactor) to get the current 28-day rolling-average metrics
  3. For trend analysis, call the CrUX History API's queryHistoryRecord endpoint, setting collectionPeriodCount up to 40 weekly data points (default 25)
  4. Throttle requests to stay within the shared 150 queries/minute per Google Cloud project limit across both the record and history endpoints
  5. Fall back to origin-level queries when a specific URL has insufficient traffic to appear in CrUX (page-level data requires a popularity threshold)
  6. Schedule pulls to align with CrUX's weekly update cadence (History API refreshes Monday ~04:00 UTC with data through the prior Saturday) instead of polling daily

Known gotchas

Related routes

Use the CrUX API to retrieve field Core Web Vitals for a specific URL and compare against Good thresholds
developer.chrome.com · 5 steps · unrated
Query real-user Core Web Vitals for an origin or URL using the CrUX API
developer.chrome.com · 5 steps · unrated
Query the Google CrUX API for Core Web Vitals field data
chromeuxreport.googleapis.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