---
description: Core Web Vitals analyzer using PageSpeed Insights API (LCP, CLS, INP, FID)
---

# SEO Core Web Vitals

PageSpeed Insights API client for CWV measurement and recommendations.

## Triggers
- "Core Web Vitals", "page speed"
- "LCP", "CLS", "INP", "performance audit"

## Quick Start

```bash
export PAGESPEED_API_KEY=your_api_key
python scripts/pagespeed_client.py --url https://example.com
python scripts/pagespeed_client.py --url https://example.com --strategy both
python scripts/pagespeed_client.py --urls urls.txt --output results.json
```

## CWV Thresholds

| Metric | Good | Poor |
|--------|------|------|
| LCP | <=2.5s | >4s |
| FID | <=100ms | >300ms |
| CLS | <=0.1 | >0.25 |
| INP | <=200ms | >500ms |

## Common Fixes

| Issue | Fix |
|-------|-----|
| Large LCP | Optimize images, preload critical resources |
| High CLS | Set image dimensions, avoid injected content |
| Poor INP | Reduce JavaScript, optimize event handlers |
| Slow TTFB | Improve server response, use CDN |

## Rate Limits
- No API key: 25/day; With key: 25,000/day

## Notion Output
- Database: `2c8581e5-8a1e-8035-880b-e38cefc2f3ef`
- Korean report, Audit ID: [TYPE]-YYYYMMDD-NNN
