Skip to content

tiloschroeder/IndexNow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IndexNow

Using these two shell scripts for IndexNow, you can manually submit changes to your website to multiple search engines immediately.

Documentation

You can find complete documentation and FAQs at IndexNow.

Usage

  • git clone or download the package and unzip it
  • change to directory IndexNow (cd IndexNow)
  • Make the scripts executable if needed:
chmod +x indexnow.sh indexnow-urllist.sh

API key

An 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.

Submit a single URL

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/ 03f4c0548af441569a4b426ddd8d4e9b

Submit a set of URLs

Open 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

Response

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)

About

Two simple shell scripts for IndexNow API

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages