Pagespeed Audit
pagespeed_auditRun 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 public site, including a competitor's. A call takes 10-40 seconds because the page is genuinely loaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full page URL to analyse, including the scheme, e.g. https://www.example.com/pricing. | |
| locale | No | BCP-47 locale for the audit titles, e.g. en, fr, ja. Defaults to English. | |
| strategy | No | Device to emulate: mobile (the default, and what Google indexes with) or desktop. | |
| categories | No | Which Lighthouse categories to run. Defaults to performance only, which is much faster. Options: performance, accessibility, best-practices, seo. | |
| max_opportunities | No | How many ranked improvement opportunities to return (default 10, max 30). |