How to Connect n8n to Google Search Console to Check Indexing and Request Indexing

Hi n8n community :waving_hand:

I’m working on a workflow where I want to:

  1. Check if a specific page (URL) is indexed on Google.
  2. Automatically request indexing if it’s not indexed.

Is there any way to connect n8n to Google Search Console or the Google Indexing API to accomplish this?

I’ve tried using HTTP Request node but I’m unsure about the authentication part (OAuth 2.0 or service account), and also how to structure the API calls properly.

Any guidance, examples, or working workflows would be greatly appreciated!

Thanks in advance :folded_hands:

Hi Yash – totally get the challenge of making sure key pages stay visible in Google.

One pattern that works well is: 1) a scheduled trigger that queries your URL list, 2) an HTTP Request node that calls the Search Console URL Inspection endpoint to check status, 3) a decision branch that routes non-indexed URLs to a second HTTP Request node hitting the Indexing API with a service-account JWT, and 4) a notifier (email/Slack) summarising results.

A couple of questions that help shape the details:
• Roughly how many URLs per run are you looking to process? (Impacts quota handling.)
• Is your Search Console property set as URL-prefix or Domain? (Dictates the exact siteUrl parameter.)

Best-practice tips: keep the service account key in an encrypted n8n credential, use exponential back-off on Indexing API errors, and log each request’s response code so you can re-queue failures.

This is general guidance based on my experience with similar projects.

did you succeed? if yes, can you share the template?