A simple Bash script to automatically submit URLs to search engines like Microsoft Bing, Naver, Yandex, Yahoo, and Seznam using IndexNow API.
✔️ Single URL Submission
✔️ Bulk URL Submission from a File
✔️ Fetching & Submitting URLs from Sitemaps
✔️ Fetching & Submitting URLs from Web Pages
✔️ Multiple Search Engine Support
- 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:
-
Clone the Repository
git clone https://github.com/nexoslabs/IndexNow.git cd IndexNow -
Set Up Configuration
Edit
config/settings.envand update the following:HOST="https://www.yourdomain.com" API_KEY="your-api-key-here" KEY_LOCATION="https://www.yourdomain.com/your-api-key.txt"
bash scripts/indexnow.sh -u "https://www.yourdomain.com/sample-page"bash scripts/indexnow.sh -f urls.txt📌 Ensure urls.txt contains one URL per line.
bash scripts/indexnow.sh -s "https://www.yourdomain.com/sitemap.xml"bash scripts/indexnow.sh -p "https://www.yourdomain.com"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
📖 See our Contribution Guidelines for more details.
This project is licensed under the Apache-2.0 license. See the LICENSE file for details.
💬 Join us on Discord: Click Here
🐦 Follow on Twitter: @nexoslabs
📧 Email: contact@nexoscreation.tech
Made with ❤️ by the @nexoslabs Team