pagespeed-insights

n8n node for Google PageSpeed Insights API with OAuth2

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)

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-pagespeed-insights in Enter npm package name
  4. Agree to the risks of using community nodes
  5. 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:

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the PageSpeed Insights API
  4. Go to Credentials and create OAuth 2.0 Client ID
  5. Set authorized redirect URIs to your n8n instance OAuth callback URL
  6. Copy the Client ID and Client Secret
  7. 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

  1. Add the PageSpeed Insights node to your workflow
  2. Configure OAuth2 credentials
  3. Enter the URL to analyze
  4. Select strategy (Mobile/Desktop)
  5. Choose categories to analyze
  6. Enable/disable simplified response
  7. 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)

Resources

License

MIT

Discussion