npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@searchops/n8n-nodes-pagespeed

v1.0.2

Published

n8n node for Google PageSpeed Insights API - Analyze web page performance, SEO, accessibility, and best practices

Downloads

305

Readme

n8n-nodes-pagespeed

This is an n8n community node that integrates with the Google PageSpeed Insights API. Analyze web page performance, SEO, accessibility, and best practices.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

npm

npm install @searchops/n8n-nodes-pagespeed

n8n GUI

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter @searchops/n8n-nodes-pagespeed
  4. Agree to the risks and select Install

Credentials

This node can work with or without an API key:

  • Without API key: Works but with lower rate limits
  • With API key: Recommended for production use with higher rate limits

Getting an API Key

  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
  5. Click Create Credentials > API Key
  6. Copy the API key and add it to n8n credentials

Node Reference

Operations

The node performs a PageSpeed analysis on the specified URL.

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | URL | String | Yes | The URL of the page to analyze | | Strategy | Options | No | mobile (default) or desktop | | Categories | Multi-select | No | Categories to analyze: Performance, SEO, Accessibility, Best Practices | | Simplified Output | Boolean | No | Return simplified metrics (default) or full API response |

Options

| Option | Type | Description | |--------|------|-------------| | Locale | String | Locale for formatted results (e.g., en, pt-BR, es) | | UTM Campaign | String | Campaign name for analytics | | UTM Source | String | Campaign source for analytics |

Output

Simplified Output (default)

{
  "requestedUrl": "https://example.com",
  "finalUrl": "https://example.com/",
  "fetchTime": "2024-01-15T12:00:00.000Z",
  "strategy": "mobile",
  "scores": {
    "performance": 95,
    "accessibility": 100,
    "seo": 92,
    "bestPractices": 100
  },
  "metrics": {
    "firstContentfulPaint": {
      "score": 0.99,
      "value": 1234,
      "displayValue": "1.2 s"
    },
    "largestContentfulPaint": {
      "score": 0.95,
      "value": 2345,
      "displayValue": "2.3 s"
    },
    "cumulativeLayoutShift": {
      "score": 1,
      "value": 0.001,
      "displayValue": "0.001"
    },
    "totalBlockingTime": {
      "score": 0.98,
      "value": 50,
      "displayValue": "50 ms"
    },
    "speedIndex": {
      "score": 0.97,
      "value": 1500,
      "displayValue": "1.5 s"
    }
  },
  "fieldData": {
    "origin": "url",
    "metrics": {
      "CUMULATIVE_LAYOUT_SHIFT_SCORE": {
        "percentile": 0,
        "category": "FAST"
      }
    }
  }
}

Full Output

When "Simplified Output" is disabled, the node returns the complete API response from Google PageSpeed Insights.

Use Cases

  • Performance Monitoring: Automatically check website performance on a schedule
  • SEO Auditing: Analyze SEO scores across multiple pages
  • Competitive Analysis: Compare your site's performance against competitors
  • CI/CD Integration: Fail deployments if performance drops below threshold
  • Reporting: Generate automated performance reports

Example Workflows

Basic Performance Check

  1. Add a Schedule Trigger node
  2. Add the Google PageSpeed Insights node
  3. Configure the URL and categories
  4. Add an IF node to check if performance score < 80
  5. Send alert via Slack/Email if performance is low

Bulk URL Analysis

  1. Add a Spreadsheet node with URLs
  2. Add the Google PageSpeed Insights node
  3. Connect the URL field from the spreadsheet
  4. Store results in a database or spreadsheet

Resources

License

MIT