google-indexing
БесплатноБез исполняемых скриптовНе проверенSubmit URLs to Google for indexing using the Google Indexing API and bulk-submit from sitemaps. Use when a user asks to index pages on Google, submit URLs to…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Google Indexing
Overview
Submit URLs to Google with the Indexing API and service account authentication. Supports single URL submission, bulk submission from sitemaps, and notification-status checks.
Important limit: Google documents the Indexing API only for pages with JobPosting structured data or BroadcastEvent inside a VideoObject (livestreams). For ordinary pages (blog posts, product or docs pages) Google's supported routes are the URL Inspection tool's "Request indexing" in Search Console (a few URLs, quota-limited) and sitemaps. Use this API for eligible pages, and tell the user plainly when theirs are not.
Instructions
When a user asks to submit URLs to Google for indexing, follow these steps:
Step 1: Verify credentials are set up
The Google Indexing API requires a Google Cloud service account. Check that the user has:
- A Google Cloud project with the Indexing API enabled
- A service account JSON key file
- The property verified in Search Console, with the service account email added as a delegated owner (property Settings → Users and permissions → Add user → Owner; Google's docs call it adding an owner under the verified owner list)
If the user doesn't have these, walk them through the setup:
# 1. Enable the Indexing API
# Visit: https://console.cloud.google.com/apis/library/indexing.googleapis.com
# 2. Create a service account and download JSON key
# Visit: https://console.cloud.google.com/iam-admin/serviceaccounts
# Create account → Keys → Add Key → JSON → Download
# 3. Add the service account email as Owner in Search Console
# Visit: https://search.google.com/search-console → Settings → Users and permissions
# Add the service account email (e.g., [email protected]) as Owner
Verify the key file exists and is valid:
python3 -c "
import json
with open('service-account.json') as f:
sa = json.load(f)
print(f'Project: {sa[\"project_id\"]}')
print(f'Email: {sa[\"client_email\"]}')
print('Key file is valid.')
"
Step 2: Submit URLs for indexing
Single URL submission:
import json
import time
import requests
from google.auth.transport.requests import AuthorizedSession
from google.oauth2 import service_account
import os
SCOPES = ["https://www.googleapis.com/auth/indexing"]
ENDPOINT = "https://indexing.googleapis.com/v3/urlNotifications:publish"
CREDENTIALS_FILE = os.environ["GOOGLE_APPLICATION_CREDENTIALS"] # path to the key file; never hard-code or commit it
def get_auth_session(credentials_file):
credentials = service_account.Credentials.from_service_account_file(
credentials_file, scopes=SCOPES
)
return AuthorizedSession(credentials) # fetches and refreshes the token
def submit_url(session, url, action="URL_UPDATED"):
body = {"url": url, "type": action}
response = session.post(ENDPOINT, json=body)
return response.status_code, response.json()
session = get_auth_session(CREDENTIALS_FILE)
status, result = submit_url(session, "https://jobs.northwind-careers.com/openings/senior-data-engineer")
print(f"Status: {status}")
print(json.dumps(result, indent=2))
The type field accepts:
URL_UPDATED— new or changed contentURL_DELETED— request removal; the page must return 404/410 or carry anoindexmeta tag
Batch submission from a list of URLs:
def batch_submit(session, urls, delay=1):
results = {"success": 0, "failed": 0, "errors": []}
for i, url in enumerate(urls, 1):
status, response = submit_url(session, url)
if status == 200:
results["success"] += 1
print(f"[{i}/{len(urls)}] OK {url}")
else:
results["failed"] += 1
error_msg = response.get("error", {}).get("message", "Unknown error")
results["errors"].append({"url": url, "status": status, "error": error_msg})
print(f"[{i}/{len(urls)}] FAIL {url} — {error_msg}")
if i < len(urls):
time.sleep(delay)
return results
Step 3: Submit URLs from a sitemap
Parse the sitemap and submit all URLs:
# pip install defusedxml
import defusedxml.ElementTree as ET # guards untrusted sitemaps against XML-bomb / entity-expansion attacks
def parse_sitemap(sitemap_url):
response = requests.get(sitemap_url, timeout=30)
response.raise_for_status()
root = ET.fromstring(response.content)
ns = {"ns": "http://www.sitemaps.org/schemas/sitemap/0.9"}
# Handle sitemap index (contains other sitemaps)
sitemap_tags = root.findall("ns:sitemap/ns:loc", ns)
if sitemap_tags:
urls = []
for sitemap_loc in sitemap_tags:
print(f"Parsing child sitemap: {sitemap_loc.text}")
urls.extend(parse_sitemap(sitemap_loc.text))
return urls
# Handle regular sitemap (contains URLs)
return [loc.text for loc in root.findall("ns:url/ns:loc", ns)]
def submit_sitemap(credentials
Установить google-indexing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл google-indexing?
Submit URLs to Google for indexing using the Google Indexing API and bulk-submit from sitemaps. Use when a user asks to index pages on Google, submit URLs to Google Search Console, speed up Google indexing, request crawling, bulk index pages, submit a sitemap's URLs for indexing, or check indexing status. Also use when the user mentions "Google Indexing API", "request indexing", "submit to Google", or "pages not indexed".
Как установить скилл google-indexing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-indexing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic