Bulk PageSpeed Insights audits on your own Google API key
audit_pagespeedRuns bulk PageSpeed Insights audits for multiple URLs across mobile and desktop, returning Lighthouse scores, Core Web Vitals, and top optimization opportunities.
Instructions
Give URLs and your own free Google API key with the PageSpeed Insights API enabled. Returns one row per URL and device (mobile, desktop, or both): Lighthouse performance, accessibility, best practices, and SEO scores; lab LCP, FCP, TBT, CLS, Speed Index, and server response; Chrome UX Report field LCP, INP, CLS, FCP, and TTFB with a Core Web Vitals pass or fail; and the top 5 opportunities by time saved. Pay per event on Apify: 0.009 USD per audit row.
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, one per line, for example https://www.example.com/pricing. A domain with no scheme gets https:// added. Repeats are audited once. In Clay, put the column inside a one item list. | |
| locale | No | Language for audit titles, for example en (default), de, or fr. | |
| api_key | No | Your own Google API key with the PageSpeed Insights API enabled. Make one free in Google Cloud Console: APIs and Services, Credentials, Create credentials, API key, then enable PageSpeed Insights API. Google's free quota is 25,000 audits a day. The key is stored encrypted by Apify, sent only to googleapis.com, and never written to a row or a log. With no key the run writes one free row and audits | |
| max_urls | No | Audit at most this many URLs per run, after repeats are removed. Default 100, up to 5,000. | |
| strategy | No | mobile (default), desktop, or both. both audits each URL twice and returns two rows. | |
| categories | No | Which Lighthouse category scores to return: performance, accessibility, best-practices, seo. Default all four. Lab metrics and field data come with performance. | |
| concurrency | No | How many audits run at the same time, 1 to 8. Default 4. A per minute quota answer makes the actor wait 61 seconds and try again. | |
| max_charge_usd | No | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. | |
| include_opportunities | No | yes (default) or no. With yes, each row lists up to 5 Lighthouse opportunities with the largest estimated time saving. |