PageSpeed Insights
AI-generatedSummary
Run a PageSpeed Insights test for the configured URL through an Apify actor, then return the run status and, on success, its dataset results.
Inputs
- URL (required) — URL to test.
- Strategy — Choose mobile, desktop, or both; defaults to mobile.
- Categories — Audits to request: performance, accessibility, best practices, and/or SEO. Defaults to performance.
- Include Core Web Vitals — Whether to include detailed Core Web Vitals metrics; defaults to true.
- Include Opportunities — Whether to include optimization opportunities and suggestions; defaults to true.
- Demo Mode — Whether to run with sample data; defaults to false.
- Timeout (seconds) — How long the Apify run request waits for completion; defaults to 300 seconds.
- Apify API credentials (required) — Requires the Apify API token credential to start the actor and retrieve its dataset.
Output shape
One output item per input item, each containing a JSON object.
For a SUCCEEDED run, the object contains runId, status, and results from the Apify dataset. For other run statuses, it contains runId, status, and a message indicating that the test did not complete successfully. Errors are raised as a node operation error associated with the input item.
Examples
Example 1: Run mobile performance and SEO audits for a URL
Provide the URL and keep the default mobile strategy; select performance and SEO categories. Leave Core Web Vitals and opportunities enabled if you want those details in the result.
Example 2: Compare device strategies
Set Strategy to Both and provide the target URL. The node passes this choice to the Apify PageSpeed Insights actor and returns its dataset when the run succeeds.