In short
A Google News sitemap is an XML sitemap extended with news: tags that give, for each recent article, the publication name, the language, the date of first publication and the title. It contains only articles from the last two days and is updated continuously, in the same file. Expected result: a stable URL, for example /news-sitemap.xml, generated by the CMS or the application and declared in robots.txt and in Search Console.
Why it matters
Google discovers news articles through its usual crawling, and the News sitemap is not an eligibility requirement: eligibility depends on the content policies (opens in a new tab). The sitemap serves another purpose: flagging new articles quickly and passing on their title and date of first publication unambiguously, two pieces of information Google otherwise has to infer from the page.
Google's documentation sets four rules specific to this format:
- add new articles to the existing sitemap as they are published, without creating a new file for each update;
- include only articles created in the last two days; after that, remove the URL from the sitemap or remove its
<news:news>tags; - a sitemap holds at most 1,000
<news:news>tags; beyond that, split it into several files; - the date provided is the date of first publication, not the date the article was added to the sitemap.
Google points out that it crawls News sitemaps as often as the rest of the site: the file speeds nothing up if the site is slow or rarely crawled. An article that drops out of the News sitemap is not deindexed; it must stay in the site's general sitemap.
What it improves
- Discovery of recent articles A real effect on sites that publish a lot, a small one on a site Google already crawls continuously.
- Title and date passed on Less risk of Google picking the wrong date or a truncated title.
- Diagnosis As a separate file, the News sitemap can be tracked on its own in the Sitemaps report in Search Console.
- Rankings No documented direct effect. The sitemap guarantees no appearance in Google News, Top stories or Discover.
- Generative engines An indirect effect, through the freshness of Google's index.
How to check
curl -s -o /dev/null -w "%{http_code} %{content_type}\n" https://example.com/news-sitemap.xml
curl -s --compressed https://example.com/news-sitemap.xml | grep -c "<news:news>"
curl -s --compressed https://example.com/news-sitemap.xml | grep -o "<news:publication_date>[^<]*" | sort | head -n 1
Compliant result: a 200 status code with an XML content type, a number of tags between 0 and 1,000, and an oldest date that goes back less than two days. Publish a test article: it should appear in the file within a few minutes, at the same sitemap URL.
Then check the Sitemaps report in Search Console: “Success” status and a recent last read date. An empty-sitemap warning on a day with no publication is of no consequence, according to Google.
How to implement
Before you start
The format, with the four required tags:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>https://example.com/politique/budget-2027-vote-assemblee</loc>
<news:news>
<news:publication>
<news:name>The Example Courier</news:name>
<news:language>en</news:language>
</news:publication>
<news:publication_date>2026-11-27T08:15:00+01:00</news:publication_date>
<news:title>2027 budget: National Assembly passes the bill at first reading</news:title>
</news:news>
</url>
</urlset>
| Tag | Rule |
|---|---|
<news:name> |
name of the publication, identical to the one shown on news.google.com, with nothing in parentheses |
<news:language> |
two- or three-letter ISO 639 code (fr, en); exceptions: zh-cn and zh-tw |
<news:publication_date> |
date of first publication in W3C format: 2026-11-27 or, better, 2026-11-27T08:15:00+01:00 |
<news:title> |
title of the article as it appears on the site, without the author's name, the outlet's name or the date |
Decisions to make before writing the code:
- Separate file or extended general sitemap: Google accepts both. The separate file is easier to track and to cache for a short time.
- Publication name: Google News publication pages now use the site name; use exactly the same name as in the
WebSitemarkup. - Scope: only indexable articles, returning HTTP 200, at their canonical URL. No section pages, sponsored content or empty news briefs.
- Cache: a few minutes at most. A one-hour cache delays the signal by just as long.
The &, < and > characters in titles must be escaped; the examples below do so.
To finish, declare the file in robots.txt (opens in a new tab), then submit it in Search Console (opens in a new tab):
Sitemap: https://example.com/sitemap.xml
Sitemap: https://example.com/news-sitemap.xml
Warning: do not use the modification date as
publication_date. An article from last week that was edited this morning has no place in the News sitemap.
WordPress
Versions WordPress 6.4 and later; Yoast SEO Premium, Rank Math PRO, Jetpack and XML Sitemap & Google News, November 2026.
The native WordPress sitemap (/wp-sitemap.xml) does not output news: tags. Four plugins do; activate only one of them:
| Plugin | Plan | Setting |
|---|---|---|
| Yoast SEO | News SEO, included in Yoast SEO Premium | Yoast SEO settings, News SEO section; inclusion can be set article by article |
| Rank Math | PRO only | Rank Math SEO > Dashboard, News Sitemap module, then Sitemap Settings > News Sitemap: publication name, content types, excluded terms |
| Jetpack | free | Jetpack > SEO > Settings, XML sitemap generation option; file served at /news-sitemap.xml |
| XML Sitemap & Google News | free | Settings > Reading, Google News sitemap checkbox |
All of them limit the file to articles from the last two days on their own. Take note of the exact sitemap URL in the plugin's settings. Jetpack only includes the “post” type: to add a custom post type, put this in a custom plugin:
add_filter('jetpack_sitemap_news_sitemap_post_types', function (array $postTypes): array {
$postTypes[] = 'depeche';
return $postTypes;
});
Exclude the News sitemap URL from the page cache (WP Rocket, LiteSpeed Cache, CDN), or limit its cache there to a few minutes.
Drupal
Versions Drupal 10 and 11; Views Google News 8.x-1.2.
Simple XML Sitemap does not document a Google News variant. The Views Google News module adds a dedicated display to Views:
composer require 'drupal/views_googlenews:^1.2'
drush en views_googlenews
Create a view of article-type content, add a Google News display and give it a path (/news-sitemap.xml). Map the fields to the tags (title, creation date), filter on “Published” and on a creation date later than -2 days, sort by date in descending order and limit to 1,000 results. Set the view's cache to a short duration. The options are detailed in the module's README file.
Laravel
Versions Laravel 11 to 13.
A controller is enough, with no dependency: it queries the articles from the last two days and writes the XML with XMLWriter, which escapes special characters.
<?php
// app/Http/Controllers/NewsSitemapController.php
namespace App\Http\Controllers;
use App\Models\Article;
use Illuminate\Http\Response;
use XMLWriter;
class NewsSitemapController extends Controller
{
public function index(): Response
{
$articles = Article::query()
->where('is_published', true)
->where('published_at', '>=', now()->subDays(2))
->latest('published_at')
->limit(1000)
->get();
$xml = new XMLWriter();
$xml->openMemory();
$xml->startDocument('1.0', 'UTF-8');
$xml->startElement('urlset');
$xml->writeAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9');
$xml->writeAttribute('xmlns:news', 'http://www.google.com/schemas/sitemap-news/0.9');
foreach ($articles as $article) {
$xml->startElement('url');
$xml->writeElement('loc', route('articles.show', $article));
$xml->startElement('news:news');
$xml->startElement('news:publication');
$xml->writeElement('news:name', config('app.name'));
$xml->writeElement('news:language', 'en');
$xml->endElement();
$xml->writeElement('news:publication_date', $article->published_at->toAtomString());
$xml->writeElement('news:title', $article->title);
$xml->endElement();
$xml->endElement();
}
$xml->endElement();
$xml->endDocument();
return response($xml->outputMemory(), 200, [
'Content-Type' => 'application/xml; charset=UTF-8',
'Cache-Control' => 'public, max-age=300',
]);
}
}
<?php
// routes/web.php
use App\Http\Controllers\NewsSitemapController;
use Illuminate\Support\Facades\Route;
Route::get('/news-sitemap.xml', [NewsSitemapController::class, 'index'])->name('newsSitemap');
published_at must be declared as datetime in the model's casts. If you already use spatie/laravel-sitemap version 8, its Url::addNews($nom, $langue, $titre, $date) method (name, language, title, date) outputs the same tags; filter the articles to two days yourself.
Symfony
Versions Symfony 6.4, 7.4 and 8.x; PrestaSitemapBundle 4.x.
PrestaSitemapBundle provides the GoogleNewsUrlDecorator decorator. Add a news section in a subscriber to the populate event:
<?php
// src/EventListener/NewsSitemapSubscriber.php
namespace App\EventListener;
use App\Repository\ArticleRepository;
use Presta\SitemapBundle\Event\SitemapPopulateEvent;
use Presta\SitemapBundle\Sitemap\Url\GoogleNewsUrlDecorator;
use Presta\SitemapBundle\Sitemap\Url\UrlConcrete;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class NewsSitemapSubscriber implements EventSubscriberInterface
{
public function __construct(private ArticleRepository $articles)
{
}
public static function getSubscribedEvents(): array
{
return [SitemapPopulateEvent::class => 'populate'];
}
public function populate(SitemapPopulateEvent $event): void
{
$router = $event->getUrlGenerator();
$since = new \DateTimeImmutable('-2 days');
foreach ($this->articles->findPublishedSince($since, 1000) as $article) {
$url = $router->generate('article_show', ['slug' => $article->getSlug()], UrlGeneratorInterface::ABSOLUTE_URL);
$event->getUrlContainer()->addUrl(
new GoogleNewsUrlDecorator(
new UrlConcrete($url),
'The Example Courier',
'en',
\DateTime::createFromInterface($article->getPublishedAt()),
$article->getTitle()
),
'news'
);
}
}
}
findPublishedSince() is a method of your repository, which you have to write: articles published since the given date, most recent first, with a limit. The bundle serves the section at /sitemap.news.xml and references it in the /sitemap.xml index. Serve it on demand rather than through presta:sitemaps:dump, unless you run that command every few minutes.
Next.js
Versions Next.js 15 and 16 (App Router).
The app/sitemap.ts convention does not output news: tags. Use a route handler:
// app/news-sitemap.xml/route.ts
type Article = { slug: string; title: string; publishedAt: string }
const escapeXml = (value: string): string =>
value
.replaceAll('&', '&')
.replaceAll('<', '<')
.replaceAll('>', '>')
export async function GET(): Promise<Response> {
const fiveMinutes = 5 * 60 * 1000
const now = Math.floor(Date.now() / fiveMinutes) * fiveMinutes
const since = new Date(now - 2 * 24 * 60 * 60 * 1000).toISOString()
const response = await fetch(
`https://cms.example.com/api/articles?status=published&since=${since}&limit=1000`,
{ next: { revalidate: 300 } },
)
const articles: Article[] = await response.json()
const urls = articles
.map(
(article) => ` <url>
<loc>https://example.com/actualites/${article.slug}</loc>
<news:news>
<news:publication>
<news:name>The Example Courier</news:name>
<news:language>en</news:language>
</news:publication>
<news:publication_date>${article.publishedAt}</news:publication_date>
<news:title>${escapeXml(article.title)}</news:title>
</news:news>
</url>`,
)
.join('\n')
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
${urls}
</urlset>`
return new Response(xml, {
headers: { 'Content-Type': 'application/xml; charset=UTF-8' },
})
}
publishedAt must come from the CMS in ISO 8601 format with a time zone. Adapt the parameters of the call to your API. The time is rounded to five minutes so that the URL called stays stable and the CMS response is reused during that window, which caps the reporting delay.
Nuxt
Versions Nuxt 3 and 4; @nuxtjs/sitemap module 7 to 9.
The @nuxtjs/sitemap module accepts a news property on each entry. Fill it in only for articles less than two days old: the others stay in the sitemap, without News tags, which Google allows.
// server/api/__sitemap__/urls.ts
import { defineSitemapEventHandler } from '#sitemap/server'
type Article = { slug: string; title: string; publishedAt: string; updatedAt: string }
export default defineSitemapEventHandler(async () => {
const articles = await $fetch<Article[]>('https://cms.example.com/api/articles?status=published')
const limit = Date.now() - 2 * 24 * 60 * 60 * 1000
return articles.map((article) => ({
loc: `/actualites/${article.slug}`,
lastmod: article.updatedAt,
...(new Date(article.publishedAt).getTime() >= limit && {
news: {
title: article.title,
publication_date: article.publishedAt,
publication: { name: 'The Example Courier', language: 'en' },
},
}),
}))
})
Declare the source in nuxt.config.ts (sitemap: { sources: ['/api/__sitemap__/urls'] }) and lower the sitemap's cache duration to a few minutes (cacheMaxAgeSeconds option). With versions 7 and 8 of the module, remove the import line: defineSitemapEventHandler is auto-imported there. If more than 1,000 articles are published in two days, isolate them in a dedicated sitemap with the sitemaps option.
Astro
Versions Astro 5 to 7.
The @astrojs/sitemap integration does not handle news: tags. Create an endpoint:
// src/pages/news-sitemap.xml.ts
import type { APIRoute } from 'astro'
export const prerender = false
type Article = { slug: string; title: string; publishedAt: string }
const escapeXml = (value: string): string =>
value
.replaceAll('&', '&')
.replaceAll('<', '<')
.replaceAll('>', '>')
export const GET: APIRoute = async () => {
const since = new Date(Date.now() - 2 * 24 * 60 * 60 * 1000).toISOString()
const response = await fetch(
`https://cms.example.com/api/articles?status=published&since=${since}&limit=1000`,
)
const articles: Article[] = await response.json()
const urls = articles
.map(
(article) => ` <url>
<loc>https://example.com/actualites/${article.slug}</loc>
<news:news>
<news:publication>
<news:name>The Example Courier</news:name>
<news:language>en</news:language>
</news:publication>
<news:publication_date>${article.publishedAt}</news:publication_date>
<news:title>${escapeXml(article.title)}</news:title>
</news:news>
</url>`,
)
.join('\n')
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
${urls}
</urlset>`
return new Response(xml, {
headers: {
'Content-Type': 'application/xml; charset=UTF-8',
'Cache-Control': 'public, max-age=300',
},
})
}
prerender = false requires a server adapter (Node, Vercel, Netlify, Cloudflare). On a fully static site, remove that line: the file is then frozen at build time, and you have to rebuild the site with every publication, then at least once a day to drop articles more than two days old.
Common mistakes
- Creating one file per article or per day, with a URL that changes: Google asks you to update the existing sitemap.
- Leaving articles from the past week or month in the file.
- Generating the sitemap with a nightly job: the day's articles get in up to twenty-four hours late.
- Putting the update date, or the generation time, in
<news:publication_date>. - Omitting the time zone when the time is provided.
- Adding the name of the outlet or the author to
<news:title>. - Running two plugins that each publish a News sitemap.
- Also removing articles more than two days old from the general sitemap.
- Blocking
Googlebot-Newsinrobots.txtwhile submitting a News sitemap.
Frequently asked questions
Is a Google News sitemap required to appear in Google News?
No, a Google News sitemap is not required. Google automatically considers the news content it crawls that complies with its content policies, with or without a sitemap. The News sitemap helps flag new articles quickly and pass on their title and date of first publication. It guarantees no appearance in Google News, Top stories or Discover.
How many articles can a Google News sitemap contain?
A Google News sitemap can contain at most 1,000 news:news tags, that is 1,000 articles, according to Google's documentation. It must list only articles created in the last two days. A news outlet that publishes more than that over the period spreads its articles across several News sitemaps, grouped in a sitemap index if needed.
What should I do with articles more than two days old?
Articles more than two days old leave the Google News sitemap: Google asks you either to remove their URL from that file or to remove their news:news tags. That does not deindex them, and they remain visible in search. Keep them in the site's general XML sitemap, with an accurate lastmod date.
Do I need a separate News sitemap, or can I extend the existing sitemap?
Google accepts both solutions: adding news:news tags to the recent URLs of the general sitemap, or creating a separate News sitemap. The separate file is often more practical, because it stays small, is regenerated very often without recomputing the whole site sitemap, and can be tracked on its own in the Sitemaps report in Search Console.
How often does Google read the News sitemap?
Google says it crawls News sitemaps as often as the rest of the site, with no guaranteed frequency. On an active news site, that crawling is frequent in practice, but it depends on the health of the server and on Google's interest in the site. The sitemap must therefore be up to date at all times, without waiting for an infrequent scheduled job.
Resources
- Google: Google News sitemapsdevelopers.google.com
- Google: build and submit a sitemapdevelopers.google.com
- Google: how content appears in Google Newssupport.google.com
- Yoast: News SEO, Rank Math: News Sitemap, Jetpack: sitemaps and XML Sitemap & Google Newsyoast.com
- Drupal: Views Google News moduledrupal.org
- spatie/laravel-sitemap: News tags and PrestaSitemapBundlespatie.be
- Nuxt Sitemap: images, videos and newsnuxtseo.com
- Next.js: route handlers and Astro: endpointsnextjs.org
Updated on
Topic checklist (PDF)