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