Skip to main content

Using the Google Indexing API with WordPress: Step-by-Step

Platform GuidesJune 1, 2026 8 min read

A technical guide to connecting the Google Indexing API to WordPress — manually via hooks or automatically via tools like Indexaro.

Why Use the Google Indexing API with WordPress?

The Google Indexing API lets you tell Google directly when a page is ready to be crawled. For WordPress sites, this means new posts and updated pages can appear in Google within hours instead of weeks.

Prerequisites

  • A Google Cloud Platform account (free to create)
  • A GCP project with the Indexing API enabled
  • A service account with a JSON key
  • The service account added as an Owner in Search Console for your property

Step 1: Create a GCP Service Account

  1. Go to console.cloud.google.com and create or select a project
  2. APIs & Services → Enable → search "Web Search Indexing API" → Enable
  3. IAM & Admin → Service Accounts → Create Service Account
  4. Create a JSON key and download it

Step 2: Add to Search Console

  1. Open Google Search Console → Settings → Users and permissions → Add user
  2. Enter the service account email (ends in @developer.gserviceaccount.com)
  3. Set permission to Owner

Step 3: Configure WordPress

Option A — Indexaro (recommended): Upload your service account JSON to Indexaro, verify your domain, and enable auto-submit. No WordPress plugin needed. Indexaro handles the API calls, quota tracking, pool SA rotation, and status monitoring. Start with our Google Indexing API overview or a managed indexing service.

Option B — Custom integration:

add_action('publish_post', function($post_id) {
  $url = get_permalink($post_id);
  // Authenticate + call https://indexing.googleapis.com/v3/urlNotifications:publish
  // with body: {"url": $url, "type": "URL_UPDATED"}
});

Managing Quota

Remember: 200 requests/day per service account. If you publish more than 200 pieces of content per day, use Indexaro's pool SA system to rotate across multiple service accounts automatically.

Ready to index your pages faster?

Start submitting URLs directly to Google, Bing, and Yandex. 7-day Pro trial, no credit card needed.

Start for free
Google Indexing APIWordPressTechnical SEO