indexnow-setup

Set up IndexNow for any website to enable real-time URL submission to Bing, Yandex, Seznam, and other search engines. Use when the user needs to (1) configure IndexNow for a website, (2) generate and place an IndexNow key file, (3) create a URL submission script, (4) integrate IndexNow into a build/deploy pipeline, or (5) fix Google/Bing indexing delays by pushing URLs proactively.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "indexnow-setup" with this command: npx skills add tuyangtusenpo/indexnow-setup

IndexNow Setup

Overview

IndexNow is a protocol that lets websites notify search engines about new, updated, or deleted URLs in real time. Instead of waiting for crawlers, you push URLs directly to api.indexnow.org, and participating search engines (Bing, Yandex, Seznam, Naver) pick them up.

Workflow

Step 1: Generate and place the key file

Generate a random 32-character hex key:

node -e "console.log(require('crypto').randomBytes(16).toString('hex'))"

Place a .txt file named <key>.txt containing only the key string into the site's public root:

  • Next.js App Router -- public/<key>.txt
  • Next.js Pages Router -- public/<key>.txt
  • Plain static site -- root directory (e.g., dist/ or public/)
  • Vite / CRA -- public/<key>.txt
  • Nuxt -- public/<key>.txt

After deploy, the file must be accessible at https://<domain>/<key>.txt with a 200 response containing only the key string.

Step 2: Create the submission script

Copy scripts/submit-indexnow.mjs from this skill into the project (e.g., scripts/submit-indexnow.mjs).

If the project already has package.json, add an npm script:

"indexnow": "node scripts/submit-indexnow.mjs"

Or add a site_url and key pair inline:

"indexnow": "node scripts/submit-indexnow.mjs https://example.com abcd1234..."

Step 3: Ensure a sitemap exists

The script reads URLs from /sitemap.xml. Ensure the site generates a valid sitemap at that path. For Next.js App Router, this is typically app/sitemap.ts.

Step 4: Submit URLs

Run after every deploy or content update:

npm run indexnow

The script:

  1. Fetches sitemap.xml from the site
  2. Extracts all <loc> URLs
  3. POSTs them to https://api.indexnow.org/IndexNow

For non-Node projects, invoke the script directly:

node scripts/submit-indexnow.mjs https://example.com <key>

Step 5: Verify

Use Bing Webmaster Tools to confirm URLs are being received. Check the URL inspection tool for submission history.

Environment Variables

The script accepts arguments or environment variables:

PrioritySource
1stCLI args: node submit-indexnow.mjs <url> <key>
2ndSITE_URL + INDEXNOW_KEY env vars

HTTP Response Codes

StatusMeaning
200URLs submitted successfully
400Invalid request format
403Key not found or invalid
422URLs don't belong to the host
429Rate limited (spam protection)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

claw-saver

Back up the full OpenClaw environment (~/.openclaw) to a Git repository. Supports scheduled backups, interactive restore, and Git LFS for large model files.

Registry SourceRecently Updated
General

电商售后客服应答规范

电商售后客服应答规范技能。当客服人员需要处理用户退换货申请、物流异常咨询、售后补偿协商三类售后诉求时调用,生成符合品牌服务规范的统一话术应答。适用场景:(1) 用户申请退货或换货,(2) 用户咨询物流延误/丢件/破损等异常,(3) 用户要求补偿/赔偿/优惠券等协商。不包含代码,纯提示词驱动。

Registry SourceRecently Updated
General

English Homework Grader

Grade English written homework for elementary students (grades 3-6). Use when correcting or evaluating English written assignments such as spelling, fill-in-...

Registry SourceRecently Updated
General

Clawhub Skill

Play the daily up or dn chart-prediction game and report results

Registry SourceRecently Updated