PageSpeed Insights: Understand and Use the Results
Lighthouse audit via Google PageSpeed
Page speed: what makes a website feel fast (and why Google cares)
Page speed is the umbrella term for how long a web page takes to load, become interactive, and feel responsive to a real human user. It is not a single number — it is a small constellation of measurements, each one capturing a slightly different part of "how does this page feel?" Some of those measurements happen in the first second after you click a link (how long until you see something on the screen?). Some happen later in the load (how long until you can actually scroll without the page jumping around?). And some happen the moment you try to interact (how long does the button take to respond when you tap it?).
You should care because page speed is the single biggest invisible reason a website loses customers. Slow pages don't usually fail in dramatic ways — they fail by silently making people leave before they ever see your content. Google has measured this in detail and the curves are unforgiving: when a mobile page goes from 1 second to 3 seconds to load, the probability of a visitor bouncing increases by 32%. From 1 to 5 seconds, by 90%. From 1 to 10 seconds, by 123%. Every fraction of a second is a fraction of a customer.
The five things every page-speed measurement actually looks at:
Time to first byte (TTFB) — how long the server takes to send the very first byte of the response after a click. Good is under 600 milliseconds.
Largest Contentful Paint (LCP) — how long until the biggest visible thing on the page (usually the hero image or a headline) actually appears. Google's official threshold for "good" is under 2.5 seconds.
Cumulative Layout Shift (CLS) — how much the page jumps around as it loads. Have you ever tried to tap a button and then a banner ad popped in and you tapped the wrong thing? That is a layout shift. The Google threshold is a CLS score under 0.1.
Interaction to Next Paint (INP) — how long the page takes to respond after you actually do something (tap, click, type). Good is under 200 milliseconds.
Total page weight — how many bytes the page downloads to render. Modern pages routinely cross 5 MB; the fastest pages stay under 1 MB.
Three questions a page-speed check answers:
Is my website actually slow, or does it just feel slow on my fast connection?
Which specific change would give me the biggest speed boost for the least work?
Am I losing visitors and search rankings because of performance problems I cannot see from my office laptop?
The cost of ignoring page speed is the slow, invisible erosion of traffic and conversions over months. The fix is rarely a complete rebuild — it is almost always a handful of small wins (compress images, lazy-load below-the-fold assets, set the right cache headers, use a CDN) that compound into a noticeably faster experience. The first step is measuring what you actually have, which is exactly what a page-speed audit gives you.
The PageSpeed Insights endpoint, in plain language
Lighthouse audit via Google PageSpeed
PageSpeed Insights is the industry standard for web performance measurement. Integrating it via API (Application Programming Interface) enables automated performance monitoring, automated deployment workflows gates, and competitive benchmarking without manual browser testing.
What is actually happening when you call it
Submits the domain to Google PageSpeed Insights API (Application Programming Interface) for a full Lighthouse audit. Returns category scores (performance, accessibility, best practices, SEO (Search Engine Optimization)), detailed optimization opportunities with estimated savings, diagnostic information, and real-world loading experience data from CrUX. Supports both mobile and desktop strategies. Category and audit output follows the upstream Lighthouse version; field data is only included when available for the requested page.
Why this specific tool matters
Choose a task: Performance Monitoring. Track PageSpeed scores over time to detect performance regressions after deployments.
Run the PageSpeed Insights request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the PageSpeed Insights reference to check the field definitions and supported options.
Available on the developer plan. The technical details: `GET /v1/domain/pagespeed`.
When would I actually use this?
Performance Monitoring
Track PageSpeed scores over time to detect performance regressions after deployments.
Use the finding: Catch performance issues before they impact user experience and SEO (Search Engine Optimization).
CI/CD Performance Gate
Block deployments when PageSpeed performance score drops below a threshold.
Use the finding: Prevent performance regressions from reaching production.
Competitive Benchmarking
Compare PageSpeed scores against top competitors to identify performance gaps.
Use the finding: Set data-driven performance targets based on competitive landscape.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_pagespeed with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For PageSpeed Insights, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This PageSpeed Insights request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/pagespeed?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for PageSpeed Insights
Start with the inputs below. Keep the same hostname, path, and options when comparing PageSpeed Insights observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`. | https://example.com |
Interpret PageSpeed Insights findings
Read these fields alongside the full response from your PageSpeed Insights check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The audited domain (bare hostname). |
url | string | Full URL (web address) that was fetched, echoing the protocol used in the request. |
strategy | string | The audit strategy used (mobile/desktop) |
Words you might be wondering about
API (Application Programming Interface) — A way for one program to ask another program for something — like a waiter taking your order to the kitchen.
SEO (Search Engine Optimization) — Everything you do to help search engines like Google find, understand, and rank your website.
Related Guides
Core Web Vitals: Understand and Use the Results
Synthetic headers timing and static optimization signals
Server Response Time and Edge TTFB Percentiles Explained
Measure response latency from an edge worker and understand what the median, p90, p95, and p99 can tell you. Learn where a small synthetic sample differs from browser timing and production tail latency.
Performance Score: Understand and Use the Results
Synthetic HTTP optimization signals with evidence coverage
SEO Score: Understand and Use the Results
Composite SEO score from multiple audits
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.