Simple PHP IndexNow Sitemap Submitter

Following @joeworkman’s recent reminder about Bing Webmaster Tools over on Weavers Space, I had a look at mine and noticed Microsoft now recommends using IndexNow to notify search engines when you’ve added or updated pages.

So I asked ChatGPT to help me build a small PHP utility.

It reads sitemap.xml, extracts every URL and submits them to the IndexNow API with a single click. It also keeps a record of the last successful submission, so I can see when I last notified Bing.

It isn’t something I’d use after every publish. My site changes fairly infrequently, so it’s more for new pages or a periodic reminder that the sitemap has changed.

I’ve removed all the JaxMore-specific bits and put together a generic version that anyone can use on a PHP-enabled website.

If anyone finds it useful, it’s available on GitHub:

GitHub - jacksona69/indexnow: A simple PHP utility that submits every URL in sitemap.xml to the IndexNow API. · GitHub

Hope it’s helpful to someone.

If anyone has suggestions or improvements, I’d love to hear them.

3 Likes