Imp Imp
← Back to Arsenal
PageSpeed Insights - Core Web Vitals & Real User Metrics

PageSpeed Insights - Core Web Vitals & Real User Metrics

Seo Tools

PageSpeed Insights actor uses Google's PageSpeed Insights API to get: Real-World Field Data from Chrome UX Report (CrUX) Lab Data from Lighthouse Core Web Vitals - LCP, FID/INP, CLS, FCP, TTFB, TBT Performance Scores - 0-100 scores for Performance, Accessibility, Best Practices, SEO Mobile & Desktop

PageSpeed Insights - Core Web Vitals & Real User Metrics

Get real-world performance data from Chrome users by John Rippy | johnrippy.link
🏆 2025 Zapier Automation Hero of the YearProject Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →

---

What This Actor Does

The PageSpeed Insights actor provides access to Google's PageSpeed Insights API to get:

---

Why Use This Actor?

Real User Data vs Lab Data

Most performance tools only give you lab data - synthetic tests run in controlled conditions. This actor gives you field data from the Chrome UX Report (CrUX), which represents actual user experiences from millions of Chrome users over a 28-day rolling window.

Core Web Vitals Explained

---

Use Cases

---

Quick Start Examples

Example 1: Single URL Analysis

{

"url": "https://example.com",

"strategy": "both"

}

Example 2: Batch URL Analysis

{

"urls": [

"https://example.com",

"https://competitor1.com",

"https://competitor2.com"

],

"strategy": "mobile"

}

Example 3: With Webhook (Zapier/Make/n8n)

{

"url": "https://example.com",

"strategy": "both",

"webhookUrl": "https://hooks.zapier.com/hooks/catch/12345/abcdef/"

}

Example 4: Demo Mode (Free Testing)

{

"demoMode": true

}

---

Input Parameters

*Either url or urls is required (unless using demoMode)

---

Output Format

{

"url": "https://example.com",

"strategy": "mobile",

"timestamp": "2024-12-25T12:00:00.000Z",

"hasFieldData": true,

"performanceScore": 85,

"accessibilityScore": 92,

"bestPracticesScore": 100,

"seoScore": 98,

"coreWebVitals": {

"lcp": {

"value": 2.1,

"unit": "seconds",

"rating": "good",

"source": "field"

},

"fid": {

"value": 45,

"unit": "milliseconds",

"rating": "good",

"source": "field"

},

"cls": {

"value": 0.05,

"unit": "score",

"rating": "good",

"source": "field"

},

"fcp": {

"value": 1.2,

"unit": "seconds",

"rating": "good",

"source": "field"

},

"ttfb": {

"value": 0.4,

"unit": "seconds",

"rating": "good",

"source": "field"

},

"inp": {

"value": 120,

"unit": "milliseconds",

"rating": "good",

"source": "field"

}

},

"labData": {

"lcp": 2.3,

"tbt": 150,

"cls": 0.02,

"fcp": 1.4,

"speedIndex": 2.8

},

"audits": {

"passed": 42,

"failed": 3,

"opportunities": [

{

"id": "render-blocking-resources",

"title": "Eliminate render-blocking resources",

"potentialSavings": "1.2s"

}

]

}

}

---

Webhook Integration

Webhook Payload Format

When the analysis completes, results are POSTed to your webhook:

{

"event": "pagespeed_analysis_complete",

"timestamp": "2024-12-25T12:00:00.000Z",

"actor": "pagespeed-insights",

"runId": "abc123",

"urlsAnalyzed": 3,

"status": "success",

"results": [...]

}

Zapier Setup

1. Create a new Zap with "Webhooks by Zapier" as trigger

2. Select "Catch Hook"

3. Copy the webhook URL

4. Add to webhookUrl input parameter

5. Add actions: Send to Google Sheets, Slack, email, etc.

---

API Usage

Using the Apify API

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('localhowl/pagespeed-insights').call({

urls: ['https://example.com', 'https://competitor.com'],

strategy: 'both'

});

const { items } = await client.dataset(run.defaultDatasetId).listItems();

console.log(items);

Using cURL

curl -X POST "https://api.apify.com/v2/acts/localhowl~pagespeed-insights/runs?token=YOUR_API_TOKEN" \

-H "Content-Type: application/json" \

-d '{

"url": "https://example.com",

"strategy": "mobile"

}'

---

Pricing

This actor uses the Google PageSpeed Insights API which is free for most usage. Apify platform usage is billed separately based on compute units used.

---

Limitations

---

Related Actors

---

Built by John Rippy | johnrippy.link
🏆 2025 Zapier Automation Hero of the YearProject Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →

---

Keywords

pagespeed insights, core web vitals, crux data, chrome ux report, lcp, fid, cls, inp, lighthouse, web performance, seo audit, page speed, google pagespeed api, website performance monitoring, real user metrics, field data

149,000
KILLS
100%
HEALTH
Doomguy
274
ACTORS
0/3
SECRETS