Package Information
Downloads: 6 weekly / 47 monthly
Latest Version: 1.0.11
Author: Mohammdareza Azari
Documentation
n8n-nodes-pagespeed-insights
This is an n8n community node that lets you use Google PageSpeed Insights API with OAuth2 authentication in your n8n workflows.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
Community Nodes (Recommended)
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-pagespeed-insightsin Enter npm package name - Agree to the risks of using community nodes
- Select Install
Manual Installation
To get started install the package in your n8n root directory:
npm install n8n-nodes-pagespeed-insights
For Docker-based deployments add the following line before the font installation command in your n8n Dockerfile:
RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-pagespeed-insights
Operations
- PageSpeed Analysis: Get comprehensive performance, accessibility, SEO, and best practices scores for any URL
Credentials Setup
This node uses OAuth2 authentication with Google API. Follow these steps:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the PageSpeed Insights API
- Go to Credentials and create OAuth 2.0 Client ID
- Set authorized redirect URIs to your n8n instance OAuth callback URL
- Copy the Client ID and Client Secret
- In n8n, create new credentials:
- Select PageSpeed Insights OAuth2 API
- Enter Client ID and Client Secret
- Click Connect my account and authorize access
Features
- Multiple Strategies: Analyze for mobile or desktop
- Multiple Categories: Performance, Accessibility, Best Practices, and SEO
- Simplified Response: Get clean, easy-to-use metrics
- Full Response Option: Access complete Lighthouse data
- Locale Support: Get results in your preferred language
- Core Web Vitals: FCP, LCP, TBT, CLS, Speed Index, TTI
Compatibility
Tested against n8n version 1.0.0 and above.
Usage
PageSpeed Analysis
- Add the PageSpeed Insights node to your workflow
- Configure OAuth2 credentials
- Enter the URL to analyze
- Select strategy (Mobile/Desktop)
- Choose categories to analyze
- Enable/disable simplified response
- Execute the node
The node will return:
- Scores (0-100) for each category
- Core Web Vitals metrics
- Loading experience data
- Full Lighthouse audit results (if simplified response is disabled)