Index Now
A simple Bash/Shell script to automate IndexNow URL submission for search engines like Bing, Yandex, Yahoo, and Seznam.
A simple Bash script to automatically submit URLs to search engines like Microsoft Bing, Naver, Yandex, Yahoo, and Seznam using IndexNow API.
✨ Features
✔️ Single URL Submission
✔️ Bulk URL Submission from a File
✔️ Fetching & Submitting URLs from Sitemaps
✔️ Fetching & Submitting URLs from Web Pages
✔️ Multiple Search Engine Support
📥 Installation
🔧 Prerequisites
- A valid IndexNow API Key
- Generate here: IndexNow Key
- API Key Verification File
- Create a text file:
your-api-key.txt
(replace with your actual key). - Upload it to your website’s root directory:
https://www.yourdomain.com/your-api-key.txt
- The file must contain the exact API key.
- Create a text file:
- Required Tools
- cURL (Check installation:
curl --version
) - Install it if missing:
sudo apt install curl # Ubuntu/Debian brew install curl # macOS (Homebrew)
- cURL (Check installation:
⚡ Installation Steps
- Clone the Repository
git clone https://github.com/nexoscreation/IndexNow.git cd IndexNow
- Set Up Configuration
Editconfig/settings.env
and update the following:HOST="https://www.yourdomain.com" API_KEY="your-api-key-here" KEY_LOCATION="https://www.yourdomain.com/your-api-key.txt"
🎯 Usage
✅ Submit a Single URL
bash scripts/indexnow.sh -u "https://www.yourdomain.com/sample-page"
✅ Submit Bulk URLs from a File
bash scripts/indexnow.sh -f urls.txt
📌 Ensure urls.txt
contains one URL per line.
✅ Submit URLs from a Sitemap
bash scripts/indexnow.sh -s "https://www.yourdomain.com/sitemap.xml"
✅ Submit URLs Found on a Web Page
bash scripts/indexnow.sh -p "https://www.yourdomain.com"
🤝 Contributing
We ❤️ contributions! Follow these steps to contribute:
- 🍴 Fork the repository
- 🌿 Create a new branch (
git checkout -b feature/AmazingFeature
) - 💾 Commit your changes (
git commit -m 'Add some AmazingFeature'
) - 🚀 Push to the branch (
git push origin feature/AmazingFeature
) - 🔃 Open a Pull Request
📄 License
This project is licensed under the Apache-2.0 license.
Made with ❤️ by @nexoscreation