Created
June 14, 2024 01:30
-
-
Save rowe-morehouse/1568fad18a56b4d569e918960fa20b66 to your computer and use it in GitHub Desktop.
Copy and paste the following curl command into your terminal to ping indexnow to instantly inform search engines about latest content changes on your website.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# indexnow-curl-command.sh | |
# Copy and paste the following curl command into your terminal to ping indexnow to instantly inform search engines about latest content changes on your website. | |
# Add your API key first of course | |
# The -v flag is to get a verbose response from the API | |
# More info: https://www.indexnow.org/documentation | |
# Author: Rowe Morehouse 20240613 | |
# | |
curl -X POST https://api.indexnow.org/IndexNow \ | |
-H "Content-Type: application/json; charset=utf-8" \ | |
-v \ | |
-d '{ | |
"host": "yoursite.org", | |
"key": "xxxxxxf04ada4acxxxx709e4954xxxxx", | |
"keyLocation": "https://yoursite.org/xxxxxxf04ada4acxxxx709e4954xxxxx.txt", | |
"urlList": [ | |
"https://yoursite.org", | |
"https://yoursite.org/your-url-1", | |
"https://yoursite.org/your-url-2", | |
"https://yoursite.org/your-url-3" | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment