Pagespeed Insights
v0.2.1Google PageSpeed Insights — runs Lighthouse against any public URL and returns the performance…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pagespeed_audit
Run Google's PageSpeed Insights (Lighthouse) against any public URL and get back the performance, accessibility, best-practices and SEO scores, the lab timing metrics behind them, and the RANKED list of specific fixes with the milliseconds or bytes each one would save — render-blocking resources, unused JavaScript and CSS, unoptimised images, missing text compression. AUTHORITATIVE for "why is this page slow and what do I fix first": this is Google's own analyser running the page on Google's infrastructure, which is what no amount of reading a site's HTML can substitute for. Works on any pub…
| Parameter | Type | Description |
|---|---|---|
url * | string | Full page URL to analyse, including the scheme, e.g. https://www.example.com/pricing. |
categories | array | Which Lighthouse categories to run. Defaults to performance only, which is much faster. Options: performance, accessibility, best-practices, seo. |
locale | string | BCP-47 locale for the audit titles, e.g. en, fr, ja. Defaults to English. |
max_opportunities | number | How many ranked improvement opportunities to return (default 10, max 30). |
strategy | string | Device to emulate: mobile (the default, and what Google indexes with) or desktop. |
pagespeed_field_metrics
Real-user Core Web Vitals for a page AND for its whole origin in one call, from Google's Chrome UX Report as PageSpeed Insights serves it — 75th-percentile Largest Contentful Paint, Interaction to Next Paint, Cumulative Layout Shift and Time to First Byte, with the good/needs-improvement/poor split behind each and Google's own pass/fail verdict. AUTHORITATIVE for whether a page passes Core Web Vitals, and it says plainly when a low-traffic page has no data of its own and Google substituted the origin's — a substitution that otherwise reads as page data and misattributes the whole site's pe…
| Parameter | Type | Description |
|---|---|---|
url * | string | Full page URL, including the scheme, e.g. https://www.example.com/pricing. |
strategy | string | Device class for the field data: mobile (the default) or desktop. |