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
- Go to console.cloud.google.com and create or select a project
- APIs & Services → Enable → search "Web Search Indexing API" → Enable
- IAM & Admin → Service Accounts → Create Service Account
- Create a JSON key and download it
Step 2: Add to Search Console
- Open Google Search Console → Settings → Users and permissions → Add user
- Enter the service account email (ends in @developer.gserviceaccount.com)
- 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.