PageSpeed analysis
analyze_page_speedRun PageSpeed Insights for a landing page to measure Lighthouse and real-user Core Web Vitals, then identify fixes that can reduce wasted ad clicks.
Instructions
Run PageSpeed Insights for a landing page — Lighthouse + real-user data.
Returns the performance score (0-100), lab Core Web Vitals (LCP, CLS, TBT, FCP), CrUX field data from real Chrome users where available (p75 LCP/INP/CLS/FCP/TTFB + FAST/AVERAGE/SLOW ratings), and the top improvement opportunities with estimated savings. When the page itself has too little traffic for field data, the origin-wide field data is returned instead, marked field.scope="origin".
Typical input is an ad final_url: slow landing pages depress Quality Score and waste paid clicks. Takes 10-30s; that is normal for a Lighthouse run.
PageSpeed Insights API: https://developers.google.com/speed/docs/insights/v5/about
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the page to analyze, e.g. an ad's final_url ("https://example.com/landing"). | |
| strategy | No | "mobile" (default — most paid traffic) or "desktop". | mobile |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||