Bulk PageSpeed / Lighthouse audit
audit_pagespeedMeasure page performance by running Google PageSpeed Insights on URL lists, sitemaps, or same-domain crawls across mobile and desktop and collect aggregated scores.
Instructions
Run Google PageSpeed Insights (Lighthouse) on a list of URLs, a sitemap, or a same-domain crawl, on mobile and/or desktop, with aggregated scores. Requires your own free Google PageSpeed Insights API key (googleApiKey, or the GOOGLE_PSI_API_KEY environment variable when running locally). Each URL x device is one billed audit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_pagespeed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Pages to audit. | |
| dryRun | No | Preview with built-in sample data; no website is contacted and the cost is minimal. | |
| strategy | No | Devices to test (default mobile). | |
| maxAudits | No | Safety cap on audits (default 20 here). | |
| maxCostUsd | No | Optional hard cap in USD for this call. The underlying Actor stops when the cap is reached. Minimum 0.05 (the Apify per-run minimum). Default: a small amount computed from the number of URLs, never below 0.05. | |
| sitemapUrls | No | Sitemap URLs to discover pages from. | |
| googleApiKey | No | Your Google PageSpeed Insights API key (free). | |
| maxCrawlPages | No | Max pages from the crawl (default 20). | |
| crawlStartUrls | No | Start pages for a same-domain crawl. |