Overview
PageSpeed Insights (PSI) is a Google-developed tool designed to assess and report on the performance of web pages, providing data for both mobile and desktop contexts. Launched in 2010, its primary function is to help developers and website owners identify potential performance bottlenecks and receive actionable recommendations for improvement. The tool measures various aspects of page performance, with a significant emphasis on Core Web Vitals, which are a set of real-world, user-centered metrics that quantify key aspects of the user experience. These metrics include Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS), which Google uses as ranking signals for search results, as outlined in their documentation on Page Experience systems.
PSI operates by fetching a URL twice, once with a mobile user agent and once with a desktop user agent, to simulate different browsing environments. It then runs a Lighthouse audit on the retrieved page. The results are presented in two main sections: field data and lab data. Field data, labeled "Discover what your real users experience," uses anonymized data from the Chrome User Experience Report (CrUX) to show how real users experience the page. Lab data, labeled "Diagnose performance issues," is collected from a simulated load in a consistent, controlled environment. This distinction is critical because lab data provides a reproducible debugging environment, while field data reflects actual user experiences, which can vary based on network conditions, device capabilities, and other factors. More details on the differences are available in the PageSpeed Insights overview.
Developers and technical buyers utilize PageSpeed Insights for several key purposes. It serves as a diagnostic tool for identifying specific performance issues, such as unoptimized images, render-blocking resources, or excessive JavaScript execution. The recommendations provided are often detailed and include code-level suggestions, making it valuable for front-end developers aiming to optimize their codebase. For technical buyers, PSI offers a standardized way to audit the performance of websites and web applications, ensuring they meet specific performance benchmarks or Google's recommendations for search visibility. The open-source nature of Lighthouse, the underlying engine, allows for transparency in how scores are calculated and recommendations are generated. Its unlimited free usage, both via the web interface and a programmatic API, positions it as a accessible solution for continuous performance monitoring and integration into automated testing workflows.
Key features
- Core Web Vitals Reporting: Provides detailed scores and diagnostics for Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS), which are critical for user experience and search ranking.
- Field Data (CrUX): Displays real-world performance metrics gathered from actual Chrome users, offering insights into how a page performs for a diverse set of visitors.
- Lab Data (Lighthouse): Generates performance metrics from a simulated load in a controlled environment, useful for debugging and identifying specific optimization opportunities.
- Performance Audits: Runs a comprehensive Lighthouse audit covering performance, accessibility, best practices, SEO, and Progressive Web App (PWA) considerations.
- Optimization Suggestions: Offers specific, actionable recommendations, such as image optimization, eliminating render-blocking resources, and reducing server response times, with links to detailed documentation on web.dev performance guides.
- Mobile and Desktop Analysis: Provides separate performance reports for mobile and desktop versions of a URL, allowing for targeted optimization based on device type.
- API Access: Offers a programmatic API for integrating performance analysis into automated workflows, CI/CD pipelines, or custom monitoring dashboards, documented in the PageSpeed Insights API reference.
Pricing
PageSpeed Insights is available for free, offering unlimited usage via its web interface and API, subject to standard API request limits for sustained high-volume use cases.
| Service | Cost | Notes |
|---|---|---|
| PageSpeed Insights Web Interface | Free | Unlimited usage for manual analysis |
| PageSpeed Insights API | Free | Free with reasonable request limits for programmatic access. See API documentation for specifics. |
Pricing as of 2026-05-07.
Common integrations
- CI/CD Pipelines: Developers can integrate the PageSpeed Insights API into their continuous integration and continuous delivery pipelines to automate performance testing on every code commit or deployment.
- Custom Monitoring Dashboards: The API enables developers to build custom dashboards that track website performance trends over time, often alongside other analytics data.
- WordPress Plugins: While not a direct integration, many WordPress performance optimization plugins, such as Yoast SEO Premium, offer features that align with PSI recommendations, helping users improve their scores directly within WordPress.
- Web Analytics Platforms: Performance data from PSI can be combined with behavioral analytics from tools like Google Analytics to understand the impact of performance on user engagement and conversion rates.
- SEO Tools: Many SEO tool suites incorporate or reference PageSpeed Insights scores as part of their technical SEO audits, helping to identify areas for improvement that can affect search visibility.
Alternatives
- GTmetrix: Provides detailed performance reports, including Waterfall charts and video playback of page loading, using Lighthouse and Google PageSpeed metrics.
- WebPageTest: Offers advanced testing capabilities, allowing users to select specific locations, browsers, and connection speeds for highly customizable performance tests.
- Pingdom: Focuses on uptime monitoring and performance checks from various global locations, providing alerts and detailed reports on page speed and availability.
Getting started
To use the PageSpeed Insights API, you'll need an API key from the Google Cloud Console. Once you have the key, you can make HTTP GET requests to the API endpoint to retrieve performance data for a given URL. The following example demonstrates how to make a request using curl to get mobile performance data for a specific URL.
API_KEY="YOUR_API_KEY"
URL_TO_ANALYZE="https://example.com"
curl "https://www.googleapis.com/pagespeedinsights/v5/runPagespeed?url=${URL_TO_ANALYZE}&key=${API_KEY}&strategy=mobile"
Replace YOUR_API_KEY with your actual Google API key and https://example.com with the URL you wish to analyze. The strategy=mobile parameter specifies that the analysis should be performed for a mobile user agent. You can change this to strategy=desktop for desktop analysis.
The API response will be a JSON object containing a comprehensive report, including Lighthouse audit results, Core Web Vitals scores (both field and lab data), and a list of opportunities and diagnostics for improving page performance. Developers can parse this JSON response to extract specific metrics or integrate the results into their applications or reporting tools.