# Blog Google > Integración con las APIs de Google para rendimiento de blog: PageSpeed Insights, CrUX con 25 semanas de histórico, Search Console, URL Inspection, Indexing API, GA4, NLP de entidades, YouTube y Keyword Planner. Fuente: https://skillsagentes.com/skills/agricidaniel/claude-blog/blog-google Markdown: https://skillsagentes.com/skills/agricidaniel/claude-blog/blog-google.md Repositorio: https://github.com/AgriciDaniel/claude-blog Autor: AgriciDaniel Licencia: MIT Actualizado: hace 19 días Coste de contexto: 165 tok instalada, 3.3k tok al activarse, 88.4k tok con todos los archivos del bundle Bundle: 24 archivos, 345 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add AgriciDaniel/claude-blog --skill blog-google --agent claude-code # Cursor npx -y skills add AgriciDaniel/claude-blog --skill blog-google --agent cursor # Codex npx -y skills add AgriciDaniel/claude-blog --skill blog-google --agent codex # Gemini CLI npx -y skills add AgriciDaniel/claude-blog --skill blog-google --agent gemini # Windsurf npx -y skills add AgriciDaniel/claude-blog --skill blog-google --agent windsurf # Cline npx -y skills add AgriciDaniel/claude-blog --skill blog-google --agent cline ``` ## Qué hace - Detecta el nivel de credenciales disponible, de 0 a 3, y solo ofrece los comandos de ese nivel, avisando siempre del nivel detectado - Lee la configuración de `~/.config/claude-seo/google-api.json`, compartida con claude-seo - Combina datos de laboratorio de Lighthouse con datos de campo de CrUX y detecta quick wins: consultas en posición 4-10 con muchas impresiones - Genera informes en PDF o HTML de Core Web Vitals, rendimiento en Search Console, indexación o todo junto - Marca como `SKIPPED` lo que no puede consultar en lugar de rellenar el hueco con métricas estimadas ## Cuándo usarla - El usuario dice "datos de Google", "page speed", "core web vitals", "search console", "indexación", "GA4" o "entidades NLP" - Otra subskill de blog necesita datos reales de rendimiento o indexación de una URL publicada ## Qué la activa - "Mide el PageSpeed de esta URL" - "Sácame el rendimiento en Search Console de los últimos 28 días" - "¿Está indexada esta página?" ## Antes de instalar - Necesita Python 3.11+ y credenciales en `~/.config/claude-seo/google-api.json`; Cloud Natural Language exige facturación y Google Ads una cuenta con developer token. - Necesita en el PATH: python, python3 - Variables de entorno: GA4_PROPERTY_ID, GOOGLE_ADS_CUSTOMER_ID, GOOGLE_ADS_DEVELOPER_TOKEN, GOOGLE_ADS_LOGIN_CUSTOMER_ID, GOOGLE_API_KEY, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_OAUTH_CLIENT_PATH, GSC_PROPERTY - makes network requests - needs API credentials ## Archivos - SKILL.md — 13 KB - assets/templates/cwv-audit-report.md — 2 KB - assets/templates/gsc-performance-report.md — 1 KB - assets/templates/indexation-status-report.md — 1 KB - references/api-reference.md — 9 KB - references/auth-setup.md — 5 KB - references/rate-limits-quotas.md — 4 KB - references/search-currentness.md — 10 KB - scripts/__init__.py — 0 B - scripts/crux_history.py — 11 KB - scripts/ga4_report.py — 17 KB - scripts/google_auth.py — 34 KB - scripts/google_report.py — 36 KB - scripts/gsc_inspect.py — 18 KB - scripts/gsc_query.py — 13 KB - scripts/indexing_notify.py — 13 KB - scripts/keyword_planner.py — 11 KB - scripts/nlp_analyze.py — 12 KB - scripts/pagespeed_check.py — 22 KB - scripts/requirements.lock — 90 KB - scripts/requirements.txt — 909 B - scripts/run.py — 4 KB - scripts/setup_environment.py — 6 KB - scripts/youtube_search.py — 12 KB ## SKILL.md Reproducido tal cual desde AgriciDaniel/claude-blog bajo MIT. Esta sección es el documento original y está en inglés. # Blog Google: Google API Data for Blog Performance Direct access to Google's SEO APIs for blog performance analysis. Provides real Chrome user metrics, indexation status, search performance, entity analysis, YouTube video discovery, keyword volumes, and PDF/HTML performance reports. Most integrations have no usage fee within their documented quotas. Cloud Natural Language requires billing and can incur charges after its free monthly tier. Google Ads requires an eligible account and developer token. Never enable billing or make a paid request without explicit user approval. ## Prerequisites **Always check credentials before running any command:** ```bash python3 skills/blog-google/scripts/run.py google_auth --check --json ``` **Config file:** `~/.config/claude-seo/google-api.json` (shared with claude-seo) ```json { "api_key": "YOUR_GOOGLE_API_KEY", "oauth_client_path": "/path/to/client_secret.json", "default_property": "sc-domain:example.com", "ga4_property_id": "properties/123456789", "ads_developer_token": "...", "ads_customer_id": "123-456-7890", "ads_login_customer_id": "123-456-7890" } ``` If missing, read `references/auth-setup.md` and walk the user through setup. ### Credential Tiers | Tier | Detection | Available Commands | |------|-----------|-------------------| | **0** (API Key) | `api_key` present | `pagespeed`, `crux`, `crux-history`, `youtube`, `nlp` | | **1** (OAuth/SA) | + OAuth token or service account | Tier 0 + `gsc`, `inspect`, `index` | | **2** (Full) | + `ga4_property_id` configured | Tier 1 + `ga4` | | **3** (Ads) | + `ads_developer_token` + `ads_customer_id` | Tier 2 + `keywords` | Always communicate the detected tier before running commands. ## Quick Reference | Command | What it does | Tier | |---------|-------------|------| | `/blog google setup` | Check/configure API credentials |: | | `/blog google pagespeed ` | PSI Lighthouse + CrUX field data | 0 | | `/blog google crux ` | CrUX field data only (p75 metrics) | 0 | | `/blog google crux-history ` | 25-week CWV trend analysis | 0 | | `/blog google youtube ` | YouTube video search (views, likes, duration) | 0 | | `/blog google nlp ` | NLP entity extraction + sentiment | 0 | | `/blog google gsc ` | Search Console: clicks, impressions, CTR, position | 1 | | `/blog google inspect ` | URL Inspection: index status, canonical | 1 | | `/blog google index ` | Submit URL to Indexing API | 1 | | `/blog google ga4 [property-id]` | GA4 organic traffic report | 2 | | `/blog google keywords ` | Keyword ideas from Google Ads Keyword Planner | 3 | | `/blog google report ` | PDF/HTML performance report |: | | `/blog google quotas` | Show rate limits for all APIs |: | --- ## PageSpeed + CrUX ### `/blog google pagespeed ` Combined Lighthouse lab data + CrUX field data for a published blog post. **Script:** `python3 skills/blog-google/scripts/run.py pagespeed_check --json` **Reference:** `references/api-reference.md` Output merges lab scores (point-in-time Lighthouse) with field data (28-day Chrome user metrics). CrUX tries URL-level first, falls back to origin-level. ### `/blog google crux ` CrUX field data only (no Lighthouse run). Faster. **Script:** `python3 skills/blog-google/scripts/run.py pagespeed_check --crux-only --json` ### `/blog google crux-history ` 25-week CrUX History trends. Shows whether CWV metrics are improving, stable, or degrading. **Script:** `python3 skills/blog-google/scripts/run.py crux_history --json` --- ## Search Console ### `/blog google gsc ` Search Analytics: clicks, impressions, CTR, position for last 28 days. **Script:** `python3 skills/blog-google/scripts/run.py gsc_query --property --json` **Default:** 28 days, dimensions=query,page, type=web, limit=1000. Includes quick-win detection: queries at position 4-10 with high impressions. The dedicated Search Console generative-AI reports are a gradual, subset rollout in the Search Console UI. They have separate Search and Discover views; the Search view covers AI Overviews and AI Mode. Do not promise clicks, queries, or API retrieval from these dedicated views. Until Google documents an API, report that capability as `SKIPPED` or unavailable and point the user to the UI. Google's July 29 Search Central announcement says Search Console platform properties for Instagram, TikTok, X, and YouTube are globally available. The current Help Center still says gradual rollout. Report this as a Google-source conflict, verify availability in the user's account, and do not claim that `/blog google gsc` retrieves these platform reports through the current API. ### `/blog google inspect ` URL Inspection: real indexation status from Google. **Script:** `python3 skills/blog-google/scripts/run.py gsc_inspect --json` Returns: verdict (PASS/FAIL), coverage state, robots.txt status, indexing state, page fetch state, canonical selection, mobile usability, rich results. After a canonicalization fix, Google may retain the URL in a duplicate cluster for up to two weeks. If the implementation is now correct and the fix is within that window, report `PENDING_REEVALUATION` rather than an immediate failure. Search Console's Request Indexing feature is quota-limited; reserve it for important URLs. For batch inspection: `python3 skills/blog-google/scripts/run.py gsc_inspect --batch --json` --- ## Indexing API ### `/blog google index ` Notify Google of a URL update through the Indexing API. **Script:** `python3 skills/blog-google/scripts/run.py indexing_notify --json` **Reference:** `references/api-reference.md` The Indexing API is officially for JobPosting and BroadcastEvent/VideoObject pages. Always inform the user of this restriction. Daily quota: 200 publish requests. Do not present it as a general-purpose replacement for URL Inspection's Request Indexing feature. For batch: `python3 skills/blog-google/scripts/run.py indexing_notify --batch --json` --- ## GA4 Traffic ### `/blog google ga4 [property-id]` Organic traffic report: daily sessions, users, pageviews, bounce rate, engagement. **Script:** `python3 skills/blog-google/scripts/run.py ga4_report --property --json` **Default:** 28 days, filtered to Organic Search channel group. For top landing pages: `python3 skills/blog-google/scripts/run.py ga4_report --property --report top-pages --json` --- ## YouTube (Video Discovery) YouTube research can add useful, relevant media and distribution context. Any third-party visibility correlation is observational, not a Google ranking or citation requirement. Free, API key only. Used by blog-write and blog-rewrite for video embedding. ### `/blog google youtube ` Search YouTube for videos relevant to a blog topic. **Script:** `python3 skills/blog-google/scripts/run.py youtube_search search "" --json` **Quota:** 100 units per search (10,000 units/day free). Returns: title, channel, views, likes, duration, description, tags. For video details + comments: `python3 skills/blog-google/scripts/run.py youtube_search video --json` --- ## NLP Content Analysis Google's entity and sentiment analysis can support topic and editorial review. It does not expose ranking-system scores, and E-E-A-T is not a numeric Google ranking factor. ### `/blog google nlp ` Full NLP analysis: entities, sentiment, content classification. **Script:** `python3 skills/blog-google/scripts/run.py nlp_analyze --url --json` **Free tier:** 5,000 units/month. Requires billing enabled on GCP project. For entity extraction only: `python3 skills/blog-google/scripts/run.py nlp_analyze --url --features entities --json` --- ## Keyword Research (Google Ads) Gold-standard keyword volume data. Requires Google Ads account (Tier 3). ### `/blog google keywords ` Generate keyword ideas from seed terms for blog topic research. **Script:** `python3 skills/blog-google/scripts/run.py keyword_planner ideas "" --json` For volume lookup: `python3 skills/blog-google/scripts/run.py keyword_planner volume "," --json` --- ## Reports ### `/blog google report ` Generate a PDF/HTML report with charts and tables. **Script:** `python3 skills/blog-google/scripts/run.py google_report --type --data --domain --format pdf` | Type | Input | Output | |------|-------|--------| | `cwv-audit` | PSI + CrUX + CrUX History data | Core Web Vitals audit with gauges, timelines | | `gsc-performance` | GSC query data | Search Console report with query tables | | `indexation` | Batch inspection data | Indexation status with coverage donut | | `full` | All data combined | Comprehensive Google SEO report | **Note:** PDF generation requires system libraries: `sudo apt install libpango1.0-dev libcairo2-dev`. Falls back to HTML if WeasyPrint is unavailable or PDF rendering fails. --- ## Rate Limits | API | Per-Minute | Per-Day | Auth | |-----|-----------|---------|------| | PSI v5 | 240 QPM | 25,000 QPD | API Key | | CrUX + History | 150 QPM (shared) | Unlimited | API Key | | GSC Search Analytics | 1,200 QPM/site | 30M QPD | Service Account | | GSC URL Inspection | 600 QPM | 2,000 QPD/site | Service Account | | Indexing API | 380 RPM | 200 publish/day | Service Account | | GA4 Data API | 10 concurrent (50 for 360) | 200K Core Tokens/day (2M for 360) | Service Account | | YouTube Data |: | 10,000 units/day | API Key | | NLP API |: | 5,000 units/month | API Key (billing) | Read `references/rate-limits-quotas.md` for detailed quota management. ## Blog Workflow Integration This skill is both user-invocable (`/blog google pagespeed`) and callable internally by other blog sub-skills: - **blog-seo-check**: Runs PSI + CrUX on published post URL for live CWV data - **blog-rewrite**: NLP entity analysis to identify E-E-A-T entity gaps - **blog-geo**: GSC performance data for real search appearance insights - **blog-audit**: Batch CWV + indexation checks across all published blog URLs - **blog-write / blog-rewrite**: YouTube search for video embedding Falls back gracefully when credentials are not configured. ## Report Templates Use the bundled templates when a workflow requests a durable human-readable report. Keep unavailable account data marked `SKIPPED`; never fill an empty section with estimated metrics. - `assets/templates/cwv-audit-report.md` for PageSpeed and CrUX evidence. - `assets/templates/gsc-performance-report.md` for Search Analytics exports. - `assets/templates/indexation-status-report.md` for URL Inspection evidence. ## Technical Notes - INP replaced FID on March 12, 2024. Never reference FID. - CLS values from CrUX are string-encoded (e.g., "0.05"). Scripts handle parsing. - CrUX 404 = insufficient Chrome traffic, not an auth error. - Search Analytics data has 2-3 day lag. - Indexing API is officially for JobPosting/BroadcastEvent pages only. - Most integrations have no usage fee within quota. Cloud Natural Language requires billing and can incur charges; Google Ads requires account and developer-token access. - Read `references/search-currentness.md` before diagnosing a named update, canonical change, Discover visibility, Google generative-AI reporting, platform properties, Preferred Sources, AMP, or crawler byte-limit issue. - A named update's dates do not prove what caused an individual site's change. Wait one full week after rollout before comparing data, and separate Web, Image, Video, and News performance. - Googlebot processes only the first 2MB of supported files and first 64MB of PDFs. Keep critical metadata and primary content before the cutoff. ## Error Handling | Scenario | Action | |----------|--------| | No credentials configured | Run `/blog google setup`. List Tier 0 commands (API key only). | | Service account lacks GSC access | Add `client_email` to GSC > Settings > Users > Add. | | CrUX data unavailable (404) | Insufficient Chrome traffic. Use PSI lab data as fallback. | | GA4 property not found | Find property ID in GA4 Admin > Property Details. | | Indexing API quota exceeded | 200/day limit. Prioritize most important URLs. | | Rate limit (429) | Wait and retry with exponential backoff. | ## Dónde encaja - Categoría: [SEO y GEO](https://skillsagentes.com/categorias/seo-geo.md) — Keywords, auditorías on-page, datos estructurados y visibilidad en respuestas de IA. - Creador: [AgriciDaniel](https://skillsagentes.com/creators/agricidaniel.md) — 80 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Blog](https://skillsagentes.com/skills/agricidaniel/claude-blog/blog.md): Motor de blog de ciclo completo con 31 subskills, 12 plantillas, puntuación sobre 100 y 5 agentes. Enruta cada petición a la subskill correcta: escribir, reescribir, analizar, auditar, schema, clusters y publicación multilingüe. - [Blog Notebooklm](https://skillsagentes.com/skills/agricidaniel/claude-blog/blog-notebooklm.md): Consulta cuadernos de Google NotebookLM para obtener respuestas ancladas en tus propios documentos y con citas: gestiona la biblioteca de cuadernos, la autenticación con Google y el descubrimiento de contenido. - [Blog Audio](https://skillsagentes.com/skills/agricidaniel/claude-blog/blog-audio.md): Genera narración en audio de posts con Google Gemini TTS: resumen hablado, lectura completa o diálogo tipo pódcast a dos voces, con 30 voces y salida MP3 más el código de inserción HTML5. - [Blog Image](https://skillsagentes.com/skills/agricidaniel/claude-blog/blog-image.md): Generación y edición de imágenes con IA para contenido de blog mediante Gemini por MCP: portadas, ilustraciones, tarjetas sociales y OG, con 6 modos de dominio y retorno silencioso si el MCP no está disponible. - [Blog Cluster](https://skillsagentes.com/skills/agricidaniel/claude-blog/blog-cluster.md): Motor de clusters temáticos semánticos: investiga keywords desde el SERP, agrupa por intención y solapamiento, construye una arquitectura hub-and-spoke, genera un mapa SVG y ejecuta el cluster llamando a blog-write. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)