url | string | Yes | - | The URL to fetch and analyze (e.g. https://example.com/page). |
strategy | enum (MOBILE, DESKTOP) | No | MOBILE | Device to emulate for the Lighthouse run. Defaults to MOBILE. |
categories | array of string or SelectableOption | No | - | Lighthouse categories to run: PERFORMANCE, SEO, ACCESSIBILITY, BEST_PRACTICES. Defaults to all four. Lab metrics are only returned when PERFORMANCE is included. |
detail_level | enum (metrics, insights, full) | No | metrics | How much of the PageSpeed Insights response to return. All levels keep the raw API field names and structure. ‘metrics’ (default, ~5 KB): category scores, Core Web Vitals lab audits, and CrUX field data. ‘insights’ (~50 KB): metrics plus every audit (without detail tables), for finding what to fix. ‘full’ (100 KB+): the raw API response with screenshot data removed. Prefer ‘metrics’ or ‘insights’; only use ‘full’ when explicitly needed. |