ClasesSEO
ES EN
SEO Search Engine Optimization

Google Indexing API: What It Does and Why It Won't Index Your Blog

9 min read Leer en español
Google Indexing API: What It Does and Why It Won't Index Your Blog
Table of contents

The Google Indexing API has existed for years and almost no blog can use it: it only accepts job postings and livestream events. Knowing why saves you weeks building an integration that will never index anything.

What the Indexing API is and what content it accepts

It is a Google endpoint for notifying new, updated or removed URLs without waiting for the crawler to discover them. It offers four actions: publish a URL (URL_UPDATED), remove it (URL_DELETED), check a notification's status, and send several calls in a single HTTP request.

A channel for content that expires

It was not built for blogs or stores. It was designed for ephemeral content that appears and disappears at a pace no sitemap can follow: thousands of job postings that open and close every week, or livestreams that go from scheduled to live within hours.

The official documentation says it plainly: the API only allows crawling pages with JobPosting or BroadcastEvent structured data inside a VideoObject. That is the eligibility rule.

The sentence that kills the myth

If your page lacks those types, the API is not for you. It is not a premium version of the Search Console button: it is a niche tool with a requirement most sites do not meet. On top of that, the default quota is 200 publishes per day per project, not enough for a catalog or a years-old archive.

Notifying is not indexing (the misconception that costs rankings)

The most widespread confusion is believing a successful call equals an indexed page. The nuance changes how you measure the result.

What an HTTP 200 actually means

When the API returns 200, the documentation says Google may attempt to recrawl the URL soon. It is a suggestion, not an order or a promise. The recrawl guide confirms it: crawls can take from a few days to several weeks. The 200 only certifies that the notification was received.

The status endpoint doesn't tell you if you're indexed

urlNotifications/metadata returns when Google received each notification, but not when a URL is indexed or removed. It is the delivery receipt of a certified letter: it proves you sent it, not that anyone read it. To learn whether the page entered the index, use another tool, such as the Search Console URL Inspection API.

Where the "instant indexing" hype comes from

Plugins and tutorials promise to index any URL with this API. If the content is not a job posting or a livestream, the request does not apply, even if the code shows no error. What seems to work is usually measuring normal crawling.

When it makes sense and when it's a waste of time

Before writing code, decide whether the problem justifies the infrastructure. It almost never does.

The two legitimate cases

A job board with thousands of roles that open and close weekly: the content lives hours or days and a sitemap arrives late. A livestream platform with BroadcastEvent inside VideoObject: the page changes state and Google needs to know now.

Decision ladder

  • Under about 20 URLs per day: the request indexing button in URL inspection.
  • Many permanent URLs (blog, store, services): a sitemap in Search Console with an honest lastmod and internal links. That is the normal, documented path.
  • Search engines other than Google: IndexNow, which Google does not use.
  • Jobs or livestreams at scale: the Indexing API, and only then.

The real cost nobody mentions

Setting it up means a Google Cloud project, a service account, a JSON key, Search Console permissions and code to maintain. For a blog there is no return: it is infrastructure for a problem you do not have.

Setting it up without getting stuck

If the case fits, the steps are short, but one permissions detail breaks most first attempts.

The four official steps

  1. Create a Google Cloud project and enable the Indexing API.
  2. Create a service account and download the JSON key. It is your only copy: outside the repository, path via environment variable.
  3. Verify the property in Search Console, by domain or URL prefix.
  4. Add the service account email as a delegated owner, not a read-only user.

The detail that breaks 90% of first attempts

The permission must be owner level: with a restricted role the API returns an error even when the token is valid. The second classic mistake is the scope: the API uses https://www.googleapis.com/auth/indexing, not webmasters.readonly; confusing them produces a 403 that looks like a credential problem.

Minimum security

The key grants write access to the property: treat it like a password, rotate it if leaked, and use one service account per environment.

The call: publish, delete and check in batches

The technical part is the simplest. The endpoint is https://indexing.googleapis.com/v3/urlNotifications:publish, the body carries Content-Type: application/json and two required fields: url and type (URL_UPDATED or URL_DELETED). One URL per body.

The endpoint and the minimum body

With google-auth the request fits in a few lines. Avoid oauth2client, obsolete since 2023:

from google.oauth2 import service_account
from google.auth.transport.requests import AuthorizedSession

SCOPES = ["https://www.googleapis.com/auth/indexing"]
creds = service_account.Credentials.from_service_account_file(
    "/path/outside/the/repo/key.json", scopes=SCOPES)
session = AuthorizedSession(creds)

body = {"url": "https://yoursite.com/job/123", "type": "URL_UPDATED"}
r = session.post(
    "https://indexing.googleapis.com/v3/urlNotifications:publish", json=body)
print(r.status_code, r.text)

Batches of 100 (and what you can't do)

You can bundle up to 100 requests into one multipart request. The saving is in connections, not quota: the 200 daily requests are counted per notified URL. The documentation forbids bypassing limits with multiple accounts.

Removing a URL

URL_DELETED only applies if the URL returns 404 or 410, or carries noindex (meta robots and noindex). To check status: GET .../urlNotifications/metadata?url=<URL>, encoding the colon and slashes (%3A, %2F) or the request fails.

Quotas, errors and the risk of losing access

The limits are low and the system watches usage.

The official numbers

  • 200 publish requests per day per project, counting URL_UPDATED and URL_DELETED. Resets at midnight Pacific, up to 24 hours to apply.
  • 180 metadata queries per minute and 380 requests per minute across all endpoints.
  • Free to use. Raising the quota requires a form and depends on content quality.

The errors you'll see

403: account without the property or without owner level. 429: quota exhausted. 400: malformed body or invalid type. Check the scope and the account email before touching the code.

The warning almost nobody reads

All submissions go through spam detection, and abuse can get your access revoked. It is not a channel for pushing content that breaks the rules.

Alternatives that actually move the needle on a normal site

For a blog or a store, the useful work lies elsewhere.

Sitemap first (and an honest lastmod)

Submitting the sitemap in Search Console remains the documented method for many URLs. A lastmod that does not match reality stops being a useful signal. Limits and format are in the guide to sitemaps and lastmod.

The sitemap ping is dead

Google announced it on June 26, 2023, and switched it off six months later: the endpoint returns 404. A plugin still calling it does nothing.

Requesting indexing works for few URLs and has an unpublished daily quota; repeating the same URL does not speed up crawling. What moves the needle most without an API is linking the page from one already crawled often: if it is orphaned, no API will save it.

How to check whether it worked and whether real indexing happened

Honest verification separates two things: the notification and the outcome.

Measuring without fooling yourself

The API tells you whether the notification arrived, not whether the page is indexed. For that, use URL inspection (by hand or via the API, 2,000 per day per property) and the page indexing report. To confirm Googlebot actually visited, check crawl stats and logs: a 200 in your script is not a Googlebot visit.

Six-point checklist

  1. Confirm the pages have JobPosting or BroadcastEvent inside VideoObject; if not, stop here.
  2. Decide whether volume justifies the infrastructure: more than 20 ephemeral URLs per day.
  3. Service account as delegated owner and the /auth/indexing scope.
  4. JSON key outside the repository, path via environment variable.
  5. Batches of up to 100, with control of the 200 daily requests.
  6. Verify indexing with URL inspection, never with the API's 200.

If by the end of the checklist your site publishes neither jobs nor livestreams, the best move is not to integrate anything. The Indexing API is not broken: it does what it promises, and what it promises is not indexing your blog.

We use cookies to improve your experience and analyze site traffic. By continuing to browse you accept their use.

Privacy