Google’s Indexing API supports job listings and livestream pages, not ordinary WordPress articles. The distinction comes before the service account, JSON key or plugin settings. If you publish a general blog, you can stop here and use the sitemap and Search Console route below.
If your site qualifies, this guide explains the Google Indexing API for WordPress: what qualifies, how to grant access and what the OAuth exchange does. It also shows how to read a successful response without mistaking it for proof of indexing. It also covers two traps most setup guides skip: Rank Math’s Instant Indexing switch sends IndexNow, not Google requests, and a plugin’s default post-type list can submit ineligible pages. The API’s name contains no promise of instant inclusion in search.

Check eligibility before creating credentials
The official API documentation limits notifications to pages with JobPosting, or BroadcastEvent embedded in VideoObject. A tutorial about jobs does not become a job listing by adding a schema label. The page and its structured data must actually describe the supported content.

Do not enable an automatic submission feature that sends every post to this endpoint. First verify that your integration selects only eligible published pages and handles updates and removals correctly. If it cannot filter that selection, leave its automatic Google Indexing API feature off.
Check the integration’s default post-type list as well. A Google ping that defaults to the ordinary post type sends ineligible pages as soon as you switch it on. Our own wp-myguard plugin had that default, so we switched its Google ping off on this site in November 2026.
Google’s quickstart warns that abuse can cause access to be revoked. Sending unsupported content is not a risk-free experiment. Stories of faster crawling do not make it a supported use.
For normal WordPress posts, use normal discovery
Keep useful articles reachable through crawlable internal links and list their canonical, indexable URLs in an accurate sitemap. Submit the sitemap in Google Search Console. For a small number of new or substantially updated URLs, use URL Inspection’s request-indexing option where available.
Google’s recrawl guidance explains both routes. A sitemap submission or indexing request does not guarantee inclusion, ranking or an immediate crawl. Check the actual URL Inspection result rather than counting accepted requests.
IndexNow can notify its participating search engines of changed URLs. It’s a separate protocol, not a way to send an indexing request to Google. See the IndexNow documentation for its verification and submission rules. Neither protocol is a substitute for accessible content, correct canonicals and sensible internal navigation.
Rank Math’s Instant Indexing module is an IndexNow client, despite its name. In the versions this site runs (Rank Math 1.0.282 and Pro 3.0.125), it submits to api.indexnow.org and contains no Google Indexing API call. Switching it on does not notify Google, and leaving it on does not misuse Google’s API. The post types it submits come from its own settings, separate from any Google integration.
Create a project and enable the API
If your pages qualify, follow the official quickstart in the Google Cloud project that will own the integration. Enable the Indexing API in that project, then create a dedicated service account. Write down the account’s purpose and the sites it may submit, so someone can revoke or replace it later.
A service account is a machine identity, not your personal Google login. Its existence does not establish ownership of a website. The website authorisation happens separately in Search Console.
Do not make the service account a project Owner just to make indexing work. Give it only the access the integration’s setup guide requires. Broad project admin rights are a costly way to solve the wrong permissions problem.
Grant the required Search Console ownership
Verify the relevant site property in Search Console and add the service account’s email as an owner, following Google’s quickstart. Check that the property covers the exact URLs you intend to submit. A URL-prefix property for one scheme or hostname does not automatically cover another.
That ownership grant is meaningful access to the property. Keep its scope deliberate and review it when the integration is retired. For separate organisations or unrelated sites, separate credentials can limit the consequences of an exposed key.
If an API response reports an ownership or permission error, compare its target URL with the verified property and the account actually used by the integration. Also read the error body: an HTTP status alone rarely identifies the entire fault.
Handle the service-account key as a secret
Some WordPress integrations require a downloaded JSON service-account key. Google’s key-management guidance recommends avoiding user-managed keys where a suitable alternative exists. If your integration needs one, create it only for that purpose. Enter it only through the secure setup path the integration describes.
Never put the real key in a post, support ticket, shell argument or source repository. Limit who can read the configuration and its backups. A key stored in the WordPress database is open to anyone who gains database access. A friendly settings screen doesn’t turn that database into a secret vault.
Removing a downloaded file doesn’t revoke the key. Nor does shred guarantee erasure across SSDs, copy-on-write storage or backups. If the key is exposed, revoke it in Google Cloud, replace it in the integration and review the account’s access. Protect the password manager or secret store holding your retained copy too.
What the JWT and OAuth exchange do
An integration can get a short-lived access token via the service-account OAuth flow. In the key-based flow, the integration signs a JSON Web Token (JWT) with the service account’s private key. It then exchanges this signed JWT, called an assertion, for an access token at Google’s token endpoint.
The JWT identifies the account in iss, requests the indexing scope, sets the intended token endpoint in aud, and supplies issued-at and expiry times. Google allows at most one hour between iat and exp. Correct server time matters.
{"alg":"RS256","typ":"JWT"}
The header above names the signing algorithm and token type; it is not a usable credential. Use a maintained authentication library or a verified integration rather than building token signing from copied snippets. Keep both the signed assertion and resulting bearer token out of logs and process arguments.
The access token authorises API calls within its granted scope. It does not change which page types the API supports, and it does not prove a page is in Google’s index.
Send one eligible notification and inspect the response
Start with a real, published page whose supported structured data and visible content agree. Check that Google can fetch it and that its canonical and indexing settings match your intent. Do not use your most recent ordinary blog post as a connectivity test.
The notification endpoint takes a POST request:
POST https://indexing.googleapis.com/v3/urlNotifications:publish
For an eligible page that was added or updated, the request body has this shape:
{
"url": "https://example.com/jobs/site-reliability-engineer/",
"type": "URL_UPDATED"
}
This is an illustrative URL, not an endpoint to submit. Use your authorised integration to authenticate the request without exposing its bearer token. For a page being removed, follow the API’s documented removal procedure and use URL_DELETED as appropriate.
An HTTP 200 response acknowledges the notification. It does not prove that Google fetched the page, selected it for indexing or displayed it in search. The metadata endpoint reports on your notifications, not on indexing status. Use Search Console for the latter evidence.
To read that status in code, use the URL Inspection method of the separate Search Console API. It reports the version Google has indexed, not a live test, and it cannot request indexing. Enabling the Indexing API does not enable this API. In our project the service account lacked permission to enable it, so a project owner had to.
Quotas reset at midnight Pacific Time
The default quotas include 200 publish requests per day per project, covering both updates and removals. Google also documents separate per-minute quotas. Read the current limits assigned to your project rather than assuming every installation has the same allowance.
The daily quota resets at midnight Pacific Time, not midnight UTC or the WordPress timezone. Daylight saving affects its UTC equivalent. If your plugin displays a local counter, verify its reset rule and scope before trusting it as Google’s total.
Check usage and limits in the API Console. Monitoring data can arrive late, and a plugin’s count may omit calls made by another client. A green local meter is not proof that the project still has quota. Request extra quota only for a supported use case; do not evade a limit by spreading requests across disposable projects.
Troubleshoot the error, not just the status code
Read Google’s API error details alongside the response body and project settings. A permission failure can involve the API configuration or site ownership. Authentication failures can involve a revoked key, the account, the assertion or server time. They are not all damaged-newline problems.
Quota errors can concern a short-term rate or a daily allowance. Check the specific limit before deciding when to retry. Use bounded backoff where appropriate, and avoid re-queuing the same URL repeatedly because the first accepted notification did not produce an immediate search result.
Keep troubleshooting logs free of private keys, assertions and bearer tokens. Record the affected URL, request type, time, status and sanitised error instead. When the integration is no longer needed, disable its submissions, revoke unused keys and remove unnecessary ownership grants.
Related guides
- WordPress NGINX and PHP-FPM configuration: keep the pages you want discovered reachable and correctly served.
- Self-hosted Vaultwarden: protect the retained credentials your services depend on.
- Using the MyGuard APT repository: install packaged software without confusing package access with search-engine eligibility.