PageSpeed Insights / Core Web Vitals
pagespeedRun PageSpeed Insights audits for a URL to get Lighthouse scores, lab metrics, CrUX field data, failed audits, and top optimization opportunities.
Instructions
Run Google PageSpeed Insights for a URL. Returns Lighthouse category scores (performance, SEO, accessibility, best practices), lab metrics (LCP, CLS, TBT, FCP, Speed Index), real-user CrUX data for the page and for the whole origin (LCP, INP, CLS, FCP, TTFB), so low-traffic pages still get field numbers, the failed audits of every requested category, and the top opportunities with estimated savings. Set PAGESPEED_API_KEY for a higher quota. Each run takes 15-60 s; Google caches results for a short while, so if a call times out simply call again. A 'Lighthouse returned error' after retry usually means the page never becomes idle (endless animations/JS) and cannot be audited by PSI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| locale | No | Language of the audit titles and descriptions, e.g. 'es', 'en', 'pt-BR'. Default 'en'. | |
| strategy | No | mobile | |
| categories | No | ||
| maxFailedAudits | No | Failed audits to list per category. | |
| topOpportunities | No |