indexnow.md
本地来源:seo-llm/raw/seo知识库/TXT整理/seo方法论/bing-seo/indexnow.md.txt
# IndexNow 协议
> 来源:https://www.indexnow.org
## 概述
IndexNow 是一个开放协议,允许网站所有者在内容变更时即时通知搜索引擎。无需等待爬虫被动发现更新,而是主动推送变更通知。提交一次 URL,所有参与的搜索引擎都会收到通知。
该协议由 Microsoft Bing 和 Yandex 于 2021 年 10 月联合推出。
## 核心功能
### 支持的搜索引擎
- Microsoft Bing
- Yandex
- Seznam
- Naver
- DuckDuckGo(通过 Bing 间接支持)
- **注意:Google 不支持 IndexNow**
### 提交方式
#### 1. 单个 URL(GET 请求)
```
https://<searchengine>/indexnow?url=https://www.example.com/page.html&key=<your-key>
```
#### 2. 批量 URL(POST 请求)
```json
POST https://api.indexnow.org/IndexNow
{
"host": "www.example.org",
"key": "<your-key>",
"keyLocation": "https://www.example.org/<your-key>.txt",
"urlList": [
"https://www.example.org/url1",
"https://www.example.org/url2"
]
}
```
- 每次最多提交 **10,000 个** URL
## 使用说明
### 实施步骤
1. **生成 API Key**
```bash
openssl rand -hex 16
```
2. **托管 Key 文件**
- 将 `{your-key}.txt` 放在网站根目录
- 如:`https://www.example.com/{your-key}.txt`
- 文件内容就是 key 本身
3. **提交 URL**
- 使用 GET 或 POST 请求提交
- 可通过浏览器、curl、wget 或代码发送
### API 响应码
| 状态码 | 含义 |
| ------ | ------------------------ |
| 200 | 提交成功(不保证被索引) |
| 400 | 请求格式错误 |
| 403 | Key 无效 |
| 422 | URL 与主机不匹配 |
| 429 | 请求过多(疑似垃圾) |
## 关键信息
### CMS/平台集成
- **WordPress**:官方 IndexNow 插件、Rank Math、Yoast 等 SEO 插件内置支持
- **Shopify**:原生集成
- **Wix**:原生集成
- **Cloudflare**:通过 Crawler Hints 支持
### 最佳实践
- 内容新增、更新、删除时自动提交
- API Key 不要提交到 Git(加入 .gitignore)
- 大量提交时注意限流(429 错误),使用队列管理
- 确保 robots.txt 不阻止爬虫抓取提交的 URL
- IndexNow 与 Sitemap 可同时使用,互不冲突
### 与 Google Indexing API 对比
| 维度 | IndexNow | Google Indexing API |
| ---------- | ------------------------ | ---------------------------- |
| 支持引擎 | Bing/Yandex/Seznam/Naver | 仅 Google |
| 适用页面 | 所有页面 | 仅 JobPosting/BroadcastEvent |
| 实现复杂度 | 简单(HTTP 请求) | 较复杂(OAuth 2.0) |
| 每日限额 | 10,000/次 | 200(默认) |
本文档为站内渲染。原始文件本地路径:saas/source/seo-llm/raw-seo知识库-TXT整理-seo方法论-bing-seo-indexnow-md-7acf0a.txt(仅本地保留,不入库不部署)