Automate Sitemap and URL Submission to IndexNow 🔎#
Why Use IndexNow?#
Are you concerned about search engine optimization (SEO)? Do you want to make sure your website is indexed frequently by Bing, Yandex, DuckDuckGo, and other search engines?
Imagine submitting all your sitemap URLs to IndexNow when your website is updated, so that search engines know when to crawl your site again. This is what this action does.
What is IndexNow?
IndexNow is an open source protocol that allows website owners to notify search engines when their content has changed, so that search engines can quickly crawl and index the new content. This is particularly useful for sites that update frequently or have dynamic content, and it is useful for search engines to know which pages to crawl and index since the last visit.
By using IndexNow, you can ensure that your website is indexed more frequently, which can improve your search engine rankings and drive more traffic to your site.
Search engines such as Bing, Yandex, DuckDuckGo (via Bing's index) and others already support IndexNow, but not all search engines. For example, Google is not on board, but this may change in the future.
How to Automatically Submit Sitemap and URLs to IndexNow#
This workflow for GitHub Actions will automatically submit your sitemap to IndexNow for faster indexing by Bing, Yandex, DuckDuckGo and other search engines.
If you're already using GitHub Actions, simply add this action to your workflow. It can automatically submit your sitemap to IndexNow whenever you deploy changes to your site or at a specific time.
How to Use#
Example workflow that you can adjust to your needs:
.github/workflows/submit_sitemap_to_index_now.yml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
Learn more in the user guide and find more parameters to customise the workflow.
Workflow Triggers#
If you're using GitHub Pages to deploy your website, you can also use this action to automatically submit the URLs of your sitemap to IndexNow. Simply adjust the on
trigger so that it runs after your website has been successfully deployed:
.github/workflows/submit_sitemap_to_index_now.yml | |
---|---|
3 4 5 6 |
|
There are many more workflow trigger variations to cover your needs.
Next Steps#
Ready to try? Let's get started.
Or find more information on GitHub Marketplace:
Support the Project#
If you have already downloaded and tried the package – maybe even used it in a production environment – perhaps you would like to support its development?
Become a Sponsor
If you find this project helpful, please consider supporting its development. Your donations will help keep it alive and growing. Every contribution, no matter the size, makes a difference.
Thank you for your support! 🙌