Google Indexing API: What It Supports, Why Blog Posts Don't Qualify, and What a Next.js Blog Should Use
The Google Indexing API only supports job and livestream pages. What happens if you send blog posts, and the sitemap + IndexNow setup for a Next.js blog.
The Google Indexing API lets a site owner tell Google that a URL was added, updated or removed, and Google says it can only be used for two kinds of pages: job postings (JobPosting structured data) and livestream videos (BroadcastEvent embedded in a VideoObject). It is not a general "index my blog post now" button. For a Next.js or MDX blog, the path Google supports is an accurate XML sitemap with honest lastmod dates, internal links from pages Google already crawls, and URL Inspection's Request Indexing for the handful of pages that cannot wait. Add IndexNow if you also care about Bing.
This guide is for a developer who ships a blog from a repo and keeps reading "use the Indexing API to get indexed in hours." It covers what the API does, what happens when you push ordinary pages through it, and the setup to use instead.
What the Indexing API actually does
The API has one main call. You send a JSON body with a URL and a type to https://indexing.googleapis.com/v3/urlNotifications:publish:
{
"url": "https://www.example.com/jobs/senior-rust-engineer",
"type": "URL_UPDATED"
}
URL_UPDATED means "crawl this, it is new or changed." URL_DELETED means "this page is gone." A second call, urlNotifications/metadata, returns the last notification Google received for a URL. There is also a batch endpoint that takes up to 100 notifications in one HTTP request, but each one still counts against the quota.
To use it you need:
- A Google Cloud project with the Web Search Indexing API enabled.
- A service account and its JSON key.
- That service account's email added as an Owner of the property in Search Console. A restricted or full user is not enough.
The default quota is 200 publish requests per day per project. Read calls have their own, higher limits.
Why blog posts don't qualify
Google's documentation is explicit: the Indexing API "can only be used to crawl pages with either JobPosting or BroadcastEvent embedded in a VideoObject." The reason is the shape of that content. A job listing that has closed, or a livestream that has ended, is wrong within hours. Google wants those pages recrawled fast and removed fast, and a sitemap is too slow for that.
A blog post does not expire that way. A guide you published today is still correct next week, so Google treats it like every other page: discovered through links and sitemaps, crawled on its own schedule.
What happens if you use it for normal pages anyway
The endpoint will usually accept a notification for any URL in a property you own and return a 200. That is where many "it works, my post got indexed in a day" stories come from. Three things to weigh before you copy them:
- A 200 response is not indexing. It confirms Google received the notification. Google's documentation says that using the API does not guarantee a page will be crawled or indexed.
- Google added an abuse warning. In 2024 Google updated the Indexing API docs to say that all submissions go through spam detection, and that attempts to abuse the API, including using multiple accounts or other ways to exceed quotas, may lead to access being revoked.
- Quota increases are reviewed. If you ask for more than the default 200 per day, the request is checked against the supported use cases. A blog is not one of them.
So the honest answer: pushing blog URLs through the Indexing API is outside the documented use, the effect on ordinary pages is not something Google promises, and the downside (losing access, flagged submissions) lands on the same Search Console property you depend on. A page that is good and linked gets crawled anyway. A page that is thin will not be kept in the index because you pinged it.
Indexing options compared
| Method | Supported for blog posts? | Which engines | Effort | Best for |
|---|---|---|---|---|
| Google Indexing API | No (JobPosting and BroadcastEvent only) | Google | Service account, owner access, code | Job boards, livestream pages |
| XML sitemap with accurate lastmod | Yes | Google, Bing and others | Generated at build time | Every page on the site |
| Internal links from crawled pages | Yes | All | Edit existing pages | New pages on a low-authority site |
| URL Inspection > Request Indexing | Yes, a few URLs a day | Google | Manual, in the Search Console UI | A launch page or an urgent fix |
| IndexNow | Yes | Bing, Yandex, Seznam, Naver and others (not Google) | Key file plus one POST | Telling non-Google engines about changes fast |
| Sitemap ping URL | No longer exists | — | — | Google retired it in 2023 |
The setup for a Next.js or MDX blog
1. Generate the sitemap from your content, with real dates
In the App Router, app/sitemap.ts returns the list. Use a date that changes only when the content changes, such as a lastModified or date field in frontmatter, never the build time:
// app/sitemap.ts
import type { MetadataRoute } from "next";
import { getAllPosts } from "@/lib/posts";
export default function sitemap(): MetadataRoute.Sitemap {
return getAllPosts()
.filter((post) => !post.noindex)
.map((post) => ({
url: `https://www.example.com/blog/${post.slug}`,
lastModified: post.lastModified ?? post.date,
}));
}
Google says it uses lastmod when it is consistently and verifiably accurate, and that it ignores priority and changefreq. Stamping every URL with today's date on every deploy teaches Google that your lastmod means nothing. Leave noindexed pages out: listing a page you have told Google not to index sends two opposite signals.
Submit the sitemap once in Search Console under Indexing > Sitemaps, and reference it in robots.txt with a Sitemap: line. After that there is nothing to ping; Google re-reads it on its own schedule.
2. Link every new page from pages Google already crawls
On a small site this does more than any submission method. A new post that only appears in the sitemap and on page 4 of the blog index is a low-priority URL. Link it from two or three older posts on the same topic, with anchor text that says what the page is about. The Next.js SEO checklist covers the rest of the App Router basics (metadata, canonicals, the sitemap route) this sits on.
3. Request indexing by hand, sparingly
For a page that matters now, paste its URL into URL Inspection in Search Console and click Request Indexing. There is a small daily limit per property, and requesting the same URL again does not speed it up. Use it for a launch page, not for every post.
4. Add IndexNow for Bing and the others
IndexNow is an open protocol: you host a key file at your site root and POST the changed URLs to a participating engine, which shares them with the others.
curl -X POST "https://api.indexnow.org/indexnow" \
-H "Content-Type: application/json; charset=utf-8" \
-d '{
"host": "www.example.com",
"key": "your-key",
"keyLocation": "https://www.example.com/your-key.txt",
"urlList": ["https://www.example.com/blog/new-post"]
}'
One request can carry up to 10,000 URLs. Send it after the deploy that made the URLs live, not when the pull request merges, or the engine may fetch the old page. Google does not read IndexNow, so this is in addition to the sitemap, not instead of it.
Checking index status from the terminal
The read side of this has a real API. The Search Console URL Inspection API returns, for a URL in a property you own, whether it is indexed, when Google last crawled it, and which canonical Google chose. It cannot request indexing, but it tells you which pages need attention. Pair it with the Search Analytics data (impressions per page) and you have the inputs for a weekly indexing check: pages with zero impressions after a few weeks, pages Google chose a different canonical for, pages excluded by noindex that you meant to keep.
That check is a good job for a coding agent or a CLI, because the fixes are code changes: a sitemap entry, a canonical tag, an internal link in an MDX file. What an SEO CLI is covers running Search Console data from the terminal, and the 120-minute weekly SEO workflow is the routine this check fits into. If the report shows "Not found (404)" rows after you removed pages, the 404 triage guide covers when to redirect and when to leave them. PageSeeds Hosted runs that weekly loop for you and sends the changes as a pull request.
FAQ
Can I use the Google Indexing API for blog posts?
Not officially. Google says it can only be used for pages with JobPosting or BroadcastEvent in a VideoObject. The endpoint may accept other URLs, but Google promises nothing for them and may revoke access for abuse.
Is the Google Indexing API free?
Yes. Each Google Cloud project gets a default quota of 200 publish requests per day. Requests for more are reviewed against the supported use cases.
Does Google support IndexNow?
No. Bing, Yandex, Seznam, Naver and other engines use IndexNow. For Google, use an accurate sitemap, internal links, and Request Indexing for a few urgent pages.
What replaced the Google sitemap ping?
Nothing. Google retired the ping endpoint in 2023. Submit the sitemap once in Search Console, keep lastmod accurate, and Google re-reads it on its own.
How do I check if a page is indexed from the terminal?
Use the Search Console URL Inspection API. It returns index status, last crawl time and the canonical Google picked. It is read-only and cannot request indexing.
$99/month per site
Frequently Asked Questions
Can I use the Google Indexing API for blog posts?
Not officially. Google's documentation says the Indexing API can only be used for pages with JobPosting structured data or BroadcastEvent embedded in a VideoObject. Requests for other pages are accepted by the endpoint, but Google gives no promise that they are used, and it says it may revoke access for abuse.
Is the Google Indexing API free?
Yes. There is no charge, but each Google Cloud project gets a default quota of 200 publish requests per day. You can request more quota, and Google reviews those requests against the supported use cases.
Does Google support IndexNow?
No. IndexNow is used by Bing, Yandex, Seznam, Naver and other participating engines. Google does not take IndexNow pings. For Google, the supported path for normal pages is an accurate sitemap plus internal links, with URL Inspection's Request Indexing for a few urgent pages.
What replaced the Google sitemap ping?
Nothing. Google retired the sitemap ping endpoint in 2023. Submit the sitemap once in Search Console (or reference it in robots.txt) and keep each URL's lastmod accurate; Google re-reads the sitemap on its own schedule.
How do I check if a page is indexed from the terminal?
Use the Search Console URL Inspection API. It returns the index status, last crawl time and canonical Google picked for a URL in a property you own. It is read-only: it reports status but cannot request indexing.