IndexNow
/install indexnow-bing
IndexNow
通过 IndexNow 协议向 Bing、Yandex、Naver、Seznam 等搜索引擎提交 URL,加速页面收录。提交到 api.indexnow.org 会自动分发给所有支持的搜索引擎。
前置条件
- 网站已部署上线(搜索引擎需要访问验证文件)
- 系统有
curl(macOS/Linux 内置) - 项目有
public/目录
工作流程
Step 1: 检查 API Key
检查项目根目录是否存在 .indexnow-key 文件:
- 存在: 读取 key 值,继续下一步
- 不存在: 执行脚本生成 key:
脚本会生成随机 key,保存到${CLAUDE_SKILL_ROOT}/scripts/indexnow.sh generate-key.indexnow-key,并在public/目录创建{key}.txt验证文件。
Step 2: 确认验证文件
检查 public/{key}.txt 是否存在且内容正确。提醒用户:验证文件需要随项目部署后,搜索引擎才能验证 key。
Step 3: 提交 URL
根据用户需求选择提交方式:
提交单个或多个 URL:
${CLAUDE_SKILL_ROOT}/scripts/indexnow.sh submit https://example.com/page1 https://example.com/page2
从本地 sitemap.xml 提取并提交:
${CLAUDE_SKILL_ROOT}/scripts/indexnow.sh submit-sitemap [path]
默认读取 public/sitemap.xml。
从远程 sitemap URL 提取并提交:
${CLAUDE_SKILL_ROOT}/scripts/indexnow.sh submit-sitemap-url https://example.com/sitemap.xml
Step 4: 验证结果
脚本会输出每个 URL 的提交结果。响应码含义:
| 响应码 | 含义 | 处理方式 |
|---|---|---|
| 200 | 提交成功 | 无需操作 |
| 202 | 已接收,待验证 | 确认验证文件已部署 |
| 400 | 格式错误 | 检查 URL 格式 |
| 403 | key 无效 | 重新生成 key 并部署 |
| 422 | URL 不匹配 | 确认 URL 域名正确 |
| 429 | 请求过多 | 等待后重试 |
脚本命令参考
脚本位置: ${CLAUDE_SKILL_ROOT}/scripts/indexnow.sh
| 命令 | 说明 |
|---|---|
generate-key |
生成 API key 和验证文件 |
submit \x3Curl1> [url2...] |
提交一个或多个 URL |
submit-sitemap [path] |
从本地 sitemap 提取并提交 |
submit-sitemap-url \x3Curl> |
从远程 sitemap 提取并提交 |
status |
显示当前配置状态 |
注意事项
- 单次批量提交最多 10,000 个 URL,超过自动分批
.indexnow-key文件建议加入.gitignorepublic/{key}.txt验证文件需提交到版本控制并部署- 提交不保证被收录,但会通知搜索引擎尽快爬取
更多信息
更多 AI SEO 技能详见:https://domainrank.app/ai-seo-skills
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install indexnow-bing - After installation, invoke the skill by name or use
/indexnow-bing - Provide required inputs per the skill's parameter spec and get structured output
What is IndexNow?
通过 IndexNow 协议向搜索引擎(Bing、Yandex、Naver 等)提交 URL,加速页面收录。使用场景: (1) 用户想要提交新页面或更新的页面给搜索引擎 (2) 用户说"提交收录"、"indexnow"、"提交给 Bing"、"加速收录" (3) 用户需要从 sitemap 批量提交所有 URL... It is an AI Agent Skill for Claude Code / OpenClaw, with 61 downloads so far.
How do I install IndexNow?
Run "/install indexnow-bing" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is IndexNow free?
Yes, IndexNow is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does IndexNow support?
IndexNow is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created IndexNow?
It is built and maintained by domainrankhq (@domainrankhq); the current version is v1.0.1.