indexnow

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

SEO Technical: IndexNow

SEO技术:IndexNow

Guides IndexNow protocol integration for faster search engine indexing (primarily Bing).
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
指导集成IndexNow协议以加快搜索引擎(主要是Bing)的索引速度。
调用规则首次使用时,如果对用户有帮助,可以先用1-2句话介绍本技能涵盖的内容及其作用,再提供核心输出。后续使用或用户要求跳过介绍时,直接输出核心内容即可。

Scope (Technical SEO)

适用范围(技术SEO)

  • IndexNow: Submit URLs to Bing/Yandex for faster indexing
  • URL notification: Notify search engines of new or updated URLs
  • IndexNow:向Bing/Yandex提交URL以加快索引速度
  • URL通知:告知搜索引擎有新增或更新的URL

Initial Assessment

初步评估

Check for product marketing context first: If
.claude/product-marketing-context.md
or
.cursor/product-marketing-context.md
exists, read it for site URL.
Identify:
  1. Site URL: Base domain
  2. URL source: Config file, sitemap, CMS, etc.
  3. Deployment: CI/CD, manual, or both
首先检查产品营销上下文:如果存在
.claude/product-marketing-context.md
.cursor/product-marketing-context.md
文件,读取文件获取站点URL。
确认以下信息:
  1. 站点URL:主域名
  2. URL来源:配置文件、站点地图、CMS等
  3. 部署方式:CI/CD、手动部署,或两者结合

Overview

概述

IndexNow notifies search engines (mainly Bing) of new or updated URLs to speed up indexing.
IndexNow会将新增或更新的URL告知搜索引擎(主要是Bing),从而加快索引速度。

Implementation Steps

实现步骤

1. API Key and Verification

1. API密钥与验证

  • Generate API key (e.g., UUID)
  • Create verification file:
    https://example.com/{key}.txt
  • File content: the API key string
  • Configure key and URL in your IndexNow client
  • 生成API密钥(例如UUID)
  • 创建验证文件:
    https://example.com/{key}.txt
  • 文件内容:API密钥字符串本身
  • 在你的IndexNow客户端中配置密钥和URL

2. Submission Methods

2. 提交方式

MethodWhen to use
Single URLNew or updated page
BatchMany URLs at once (e.g., after deploy)
Relative pathsConvert to full URLs before submitting
提交方式适用场景
单URL提交页面新增或更新时
批量提交一次性提交大量URL(例如部署完成后)
相对路径提交前需转换为完整URL

3. Best Practices

3. 最佳实践

PracticeNote
When to submitNew pages, major content updates, meta changes
When not toMinor edits; let natural crawling handle
FrequencyOnce per deploy; avoid excessive submissions
PrioritySubmit high-value commercial pages first
实践规则注意事项
提交时机新增页面、内容重大更新、元数据变更时
不建议提交的场景微小改动;交给自然爬虫处理即可
提交频率每次部署后提交一次即可;避免过度提交
优先级优先提交高价值的商业页面

4. CI/CD Integration

4. CI/CD集成

bash
npm run build
npm run indexnow:all
bash
npm run build
npm run indexnow:all

5. Single Source of Truth (URL List)

5. 单一数据源(URL列表)

  • Use same config as sitemap: Import URL list from central config (e.g.,
    site-pages-config.ts
    ) or sitemap generation logic.
  • Avoid: Separate hardcoded URL lists for IndexNow—leads to inconsistency and missed URLs.
  • Feed: If you have RSS/feed, it can also consume from the same config to stay in sync.
  • 使用和站点地图相同的配置:从中央配置(例如
    site-pages-config.ts
    )或站点地图生成逻辑中导入URL列表。
  • 不建议:为IndexNow单独维护硬编码的URL列表——会导致不一致、遗漏URL。
  • Feed:如果你有RSS/feed,也可以从同一个配置中拉取数据保持同步。

Supported Search Engines

支持的搜索引擎

  • Bing: Primary support
  • Yandex: Supports IndexNow
  • Google: Does not use IndexNow; use Sitemap + Search Console
  • Bing:主要支持方
  • Yandex:支持IndexNow
  • Google:不使用IndexNow;请使用站点地图+Search Console提交

Verification

验证方式

Common Issues

常见问题

IssueFix
Domain verification failsEnsure URL uses correct domain
API key errorVerify key and verification file match
Network errorsRetry; API can be intermittent
问题解决方法
域名验证失败确认URL使用的是正确域名
API密钥错误验证密钥和验证文件内容是否匹配
网络错误重试;API可能偶尔不稳定

Output Format

输出格式

  • Setup steps: Key generation, verification file
  • Submission flow: Single vs. batch
  • Integration: CI/CD or manual script
  • References: IndexNow docs
  • 设置步骤:密钥生成、验证文件配置
  • 提交流程:单URL提交 vs 批量提交
  • 集成方案:CI/CD或手动脚本
  • 参考资料IndexNow官方文档

Related Skills

相关技能

  • xml-sitemap: Share same URL list from central config
  • indexing: Broader indexing strategy
  • xml-sitemap:从中央配置共享同一份URL列表
  • indexing:更广泛的索引策略