Keep your pages fresh in search by sending every URL from your sitemap to the Google Indexing API on a schedule or on demand. Great for marketing and SEO teams that publish often and want faster recrawls without manual work.
Both a manual button and a daily schedule at 1 AM start the run. The flow downloads your sitemap, converts the XML to clean JSON, and splits it into single URLs. Each link is sent to the Google Indexing API as URL UPDATED. A two second pause between calls helps avoid hitting limits. The response is checked for success, and if the API does not confirm an update, the run stops with a clear message so you know the daily quota is used up.
To set this up, use a Google Cloud project with the Indexing API enabled and a service account that is added as an owner in Search Console. Add the service account JSON in n8n as a Google API credential and select it on the indexing node. Replace the sample sitemap URL with your own and adjust the schedule time if needed. Expect less manual work, faster content refresh after updates, and steady indexing for blogs and stores that change often.