30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

List Rank Math Sitemap URLs

rank-math/list-sitemap-urls fetches the served sitemap index and, by default, follows its child sitemaps to enumerate the URLs actually advertised to search engines.

This reflects what is being served, which is not always what the settings say.

At a glance

Abilityrank-math/list-sitemap-urls
ToolsetRank Math — toolset/rank-math
GroupRank Math › Sitemaps & llms.txt
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Rank Math can cache sitemap files. When it does, the served sitemap is whatever was generated last, and a settings change — excluding a post type, adding a taxonomy — does not appear until the cache is cleared.

So a site can have a sitemap that is correctly configured and wrongly served, indefinitely. Reading the configuration confirms the intent; reading this confirms the reality.

Following the child sitemaps matters because the index alone is nearly content-free — it lists sitemap files, not URLs. The question people actually have is which pages are advertised, and that requires the second level.

On a large site that is a lot of fetching, which is why it is a deliberate call rather than part of the status read.

Discrepancies between this and the settings are fixed with rank-math/invalidate-sitemap-cache.

Input

NameTypeRequiredWhat it is
followbooleanNo — defaults to trueFollow child sitemaps to enumerate URLs.
limitintegerNoCap how many URLs to return.

What comes back

NameTypeWhat it is
urlsarrayThe URLs advertised.
sitemapsarrayThe child sitemaps found in the index.
countintegerHow many URLs were enumerated.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What pages is our sitemap actually telling Google about?

It resolves to one call:

{
  "ability": "rank-math/list-sitemap-urls",
  "parameters": {
    "limit": 200
  }
}

Worth knowing

  • Reflects what is served, cache included.
  • The index alone lists sitemaps, not URLs. Following is where the answer is.
  • Expensive on a large site — it fetches every child sitemap.
  • Differences from the settings mean a stale cache.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading