Google PageSpeed

Analyze webpage performance with Google PageSpeed Insights

Google PageSpeed Insights is a web performance analysis tool powered by Lighthouse that evaluates the quality of web pages across multiple dimensions including performance, accessibility, SEO, and best practices.

With the Google PageSpeed integration in Sim, you can:

  • Analyze webpage performance: Get detailed performance scores and metrics for any public URL, including First Contentful Paint, Largest Contentful Paint, and Speed Index
  • Evaluate accessibility: Check how well a webpage meets accessibility standards and identify areas for improvement
  • Audit SEO: Assess a page's search engine optimization and discover opportunities to improve rankings
  • Review best practices: Verify that a webpage follows modern web development best practices
  • Compare strategies: Run analyses using either desktop or mobile strategies to understand performance across device types
  • Localize results: Retrieve analysis results in different locales for internationalized reporting

In Sim, the Google PageSpeed integration enables your agents to programmatically audit web pages as part of automated workflows. This is useful for monitoring site performance over time, triggering alerts when scores drop below thresholds, generating performance reports, and ensuring that deployed changes meet quality standards before release.

Getting Your API Key

  1. Go to the Google Cloud Console
  2. Create or select a project
  3. Enable the PageSpeed Insights API from the API Library
  4. Navigate to Credentials and create an API key
  5. Use the API key in the Sim block configuration

Usage Instructions

Analyze web pages for performance, accessibility, SEO, and best practices using Google PageSpeed Insights API powered by Lighthouse.

Tools

google_pagespeed_analyze

Analyze a webpage for performance, accessibility, SEO, and best practices using Google PageSpeed Insights.

Input

ParameterTypeRequiredDescription
apiKeystringYesGoogle PageSpeed Insights API Key
urlstringYesThe URL of the webpage to analyze
categorystringNoLighthouse categories to analyze (comma-separated): performance, accessibility, best-practices, seo
strategystringNoAnalysis strategy: desktop or mobile
localestringNoLocale for results (e.g., en, fr, de)

Output

ParameterTypeDescription
finalUrlstringThe final URL after redirects
performanceScorenumberPerformance category score (0-1)
accessibilityScorenumberAccessibility category score (0-1)
bestPracticesScorenumberBest Practices category score (0-1)
seoScorenumberSEO category score (0-1)
firstContentfulPaintstringTime to First Contentful Paint (display value)
firstContentfulPaintMsnumberTime to First Contentful Paint in milliseconds
largestContentfulPaintstringTime to Largest Contentful Paint (display value)
largestContentfulPaintMsnumberTime to Largest Contentful Paint in milliseconds
totalBlockingTimestringTotal Blocking Time (display value)
totalBlockingTimeMsnumberTotal Blocking Time in milliseconds
cumulativeLayoutShiftstringCumulative Layout Shift (display value)
cumulativeLayoutShiftValuenumberCumulative Layout Shift numeric value
speedIndexstringSpeed Index (display value)
speedIndexMsnumberSpeed Index in milliseconds
interactivestringTime to Interactive (display value)
interactiveMsnumberTime to Interactive in milliseconds
overallCategorystringOverall loading experience category (FAST, AVERAGE, SLOW, or NONE)
analysisTimestampstringUTC timestamp of the analysis
lighthouseVersionstringVersion of Lighthouse used for the analysis

On this page

Start building today
Trusted by over 70,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started