HOME SKILLS BLOG GITHUB
// SKILL

GOOGLE SEO APIS
REAL FIELD DATA

Google SEO API integration is a direct connection to Search Console, PageSpeed Insights, CrUX, the Indexing API, and GA4. It complements crawl analysis with search performance, index status, Chrome field metrics, and organic traffic from Google's own systems. Claude SEO guides the Google Cloud and OAuth setup.

By Daniel Agrici · Last updated:

$
/seo google pagespeed https://your-site.com

REQUIRES CLAUDE SEO INSTALLED IN CLAUDE CODE

Claude SEO Google APIs integration with GSC PageSpeed CrUX and GA4
// HOW IT WORKS

Which Google SEO APIs does the skill use?

Claude SEO can query first-party Google sources directly: Search Console, PageSpeed Insights, CrUX, the Indexing API, and GA4. The core APIs are free within Google's normal quota limits, but they require your own project and credentials. Some supplementary services, including Cloud Natural Language, require billing to be enabled even when usage stays within a free tier.

The architecture is tiered. With just an API key (Tier 0) you unlock real Chrome user metrics via PageSpeed and CrUX. Add OAuth or a service account (Tier 1) and you get Search Console performance, URL Inspection, and the Indexing API. Add a GA4 property ID (Tier 2) and you get real organic traffic. Tier 3 layers in Keyword Planner. The skill auto-detects your tier and only surfaces commands you can actually run.

Primary references: the official Search Console API documentation covers search analytics, sitemaps, sites, and URL Inspection, while the CrUX API documentation explains programmatic access to Chrome user-experience data.

/seo google [command] <url> TIER 0 API key PSI, CrUX, NLP TIER 1 OAuth / SA GSC, Indexing TIER 2 + GA4 ID GA4 organic TIER 3 + Ads token Keyword Planner PDF + EXCEL + JSON REPORTS cwv-audit, gsc-performance, indexation, full

The Six Capabilities

Each card maps to a real Google data source you can query the second your credentials are configured.

01
PAGESPEED + CRUX
Combined Lighthouse lab data and CrUX field data in one call. Mobile and desktop strategies. CrUX falls back to origin-level when URL-level data unavailable.
02
SEARCH CONSOLE
Clicks, impressions, CTR, position, top queries, top pages. URL Inspection for crawl/index status. Sitemap submission monitoring. All free.
03
CRUX 25-WEEK HISTORY
Track LCP, INP, CLS, FCP, TTFB over 25 weeks. Catch regressions tied to specific deploys. Real-user data, not lab synthetic.
04
INDEXING API
Notify Google about eligible JobPosting pages or BroadcastEvent pages embedded in VideoObject. The API does not guarantee crawling or indexing and is not for ordinary URLs.
05
GA4 ORGANIC
Organic traffic, top landing pages, engagement, conversions. Requires Tier 2 (GA4 property ID configured). Pulls last 28 days by default.
06
PDF + EXCEL REPORTS
WeasyPrint-based A4 PDF report with matplotlib charts. Excel xlsx with Summary, Queries, Pages, Indexation sheets. Navy header styling, frozen rows, auto-filter.
// USAGE

How do you run the Google SEO APIs?

Credential Tier Detection

Always communicate the detected tier before running commands. Claude SEO checks ~/.config/claude-seo/google-api.json on every invocation. If you only have an API key, only Tier 0 commands surface. If GSC OAuth is wired up, Tier 1 commands unlock. If your GA4 property ID is set, Tier 2 unlocks. If Ads credentials are present, Tier 3 unlocks. You never get prompted for commands you cannot run.

Commands by Tier

CommandWhat it doesTier
/seo google setupCheck/configure API credentials--
/seo google pagespeed <url>PSI Lighthouse + CrUX field data0
/seo google crux <url>CrUX field data only (p75 metrics)0
/seo google crux-history <url>25-week CWV trend analysis0
/seo google youtube <query>YouTube video search (views, likes, duration)0
/seo google youtube-video <id>YouTube video details + top comments0
/seo google nlp <url-or-text>NLP entity extraction + sentiment + classification0
/seo google entities <url-or-text>Entity analysis only (for E-E-A-T)0
/seo google entity <query>Knowledge Graph entity check0
/seo google safety <url>Web Risk URL safety check0
/seo google gsc <property>Search Console: clicks, impressions, CTR, position1
/seo google inspect <url>URL Inspection: index status, canonical, crawl info1
/seo google inspect-batch <file>Batch URL Inspection from file1
/seo google sitemaps <property>GSC sitemap status1
/seo google index <url>Notify Google about one eligible JobPosting or BroadcastEvent page1
/seo google index-batch <file>Batch notifications for eligible pages, subject to quota1
/seo google ga4 [property-id]GA4 organic traffic report2
/seo google ga4-pages [property-id]Top organic landing pages2
/seo google keywords <seed>Keyword ideas from Google Ads Keyword Planner3
/seo google volume <keywords>Search volume lookup from Keyword Planner3

Indexing API restriction: Google officially supports this API only for pages with JobPosting structured data or a BroadcastEvent embedded in VideoObject. A successful notification does not guarantee crawling or indexing. Use URL Inspection for a few ordinary URLs and sitemaps for larger ordinary URL sets.

Generating Reports

After any analysis command, run /seo google report <type> to produce a styled deliverable. Report types are cwv-audit (Core Web Vitals from PSI + CrUX + history), gsc-performance (Search Console query tables and quick wins), indexation (batch inspection with coverage donut), and full (everything). PDF output uses WeasyPrint with matplotlib charts. Excel output ships with Summary, Queries, Pages, and Indexation sheets, frozen header rows, and auto-filter enabled, so pivots are one click away.

Rate Limits

The skill respects published Google quotas and reports them via /seo google quotas:

  • PageSpeed Insights v5: 240 QPM, 25,000 QPD (API key)
  • CrUX + History: 150 QPM shared, unlimited daily (API key)
  • GSC Search Analytics: 1,200 QPM per site, 30M QPD (service account)
  • GSC URL Inspection: 600 QPM, 2,000 QPD per site (service account)
  • Indexing API: 380 RPM, 200 publish per day (service account)
  • GA4 Data API: 10 concurrent, ~25K tokens per day (service account)

Technical Notes

  • INP replaced FID on March 12, 2024. The skill never references FID.
  • CLS values from CrUX are string-encoded (e.g. "0.05"). Scripts handle parsing.
  • CrUX 404 means insufficient Chrome traffic, not an auth error. PSI lab data is the fallback.
  • Search Analytics data has a 2-3 day lag. Reports note data freshness.
  • round_trip_time replaced effectiveConnectionType in CrUX in Feb 2025.
// FAQ

What should you know about Google SEO APIs?

The core Search Console, PageSpeed Insights, CrUX, Indexing, and GA4 APIs are free within Google's normal quota limits, but you need your own Google Cloud project and credentials. Some supplementary APIs have paid usage or setup requirements. Cloud Natural Language requires billing to be enabled even when its free tier applies, and Google Ads Keyword Planner requires eligible Ads access.
// RELATED SKILLS

EXPLORE MORE

VIEW ALL 25 SKILLS →

PULL REAL GOOGLE DATA
FROM FIRST-PARTY SOURCES.

$
git clone --depth 1 https://github.com/AgriciDaniel/claude-seo.git && bash claude-seo/install.sh
VIEW ON GITHUB ALL SKILLS >