Using these two shell scripts for IndexNow, you can manually submit changes to your website to multiple search engines immediately.
You can find complete documentation and FAQs at IndexNow.
git cloneor download the package and unzip it- change to directory
IndexNow(cd IndexNow) - Make the scripts executable if needed:
chmod +x indexnow.sh indexnow-urllist.shAn API key is needed to match the ownership of the domain with submitted URLs.
Go to https://www.bing.com/indexnow/getstarted and generate your API key. Save the key in a text file and name the file like the key, e.g. 03f4c0548af441569a4b426ddd8d4e9b.txt.
Upload the file to the root of your website, e.g. https://example.net/03f4c0548af441569a4b426ddd8d4e9b.txt.
To submit a single URL, run the shell script indexnow.sh with the following two parameters:
- URL e.g.
https://example.net/ - your API key, eg.
03f4c0548af441569a4b426ddd8d4e9b
./indexnow.sh https://example.net/ 03f4c0548af441569a4b426ddd8d4e9bOpen the file indexnow-urllist.sh and replace the following parameters:
- your host
- your API key
- each URL in a new line
Save the file and run the following command from the command line: ./indexnow-urllist.sh
| HTTP Code | Response | Reasons |
|---|---|---|
| 200 | OK | URL submitted successfully |
| 400 | Bad request | Invalid format |
| 403 | Forbidden | In case of key not valid (e.g. key not found, file found but key not in the file) |
| 422 | Unprocessable Entity | In case of URLs don’t belong to the host or the key is not matching the schema in the protocol |
| 429 | Too Many Requests | Too Many Requests (potential Spam) |