Sitemap URL Extractor & New Page Monitor avatar

Sitemap URL Extractor & New Page Monitor

Pricing

from $0.20 / 1,000 url returneds

Go to Apify Store
Sitemap URL Extractor & New Page Monitor

Sitemap URL Extractor & New Page Monitor

Get every URL of a website from its sitemaps: auto-discovery via robots.txt, nested indexes, .gz, hreflang, images, news. Filter by pattern or lastmod. Monitor mode returns only new pages since the last run.

Pricing

from $0.20 / 1,000 url returneds

Rating

0.0

(0)

Developer

Penna & Pixel

Penna & Pixel

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

Get every URL of a website from its XML sitemaps, in seconds, without crawling a single page. Or schedule it and get only the pages that are new since the last run: new products, new articles, new job pages, new landing pages of a competitor.

Features

  • Auto-discovery: give example.com and the sitemaps are found from robots.txt (Sitemap: lines), then the usual locations (/sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml …). Or give a sitemap URL directly.
  • Nested sitemap indexes followed automatically, .xml.gz files decompressed, plain-text and RSS/Atom sitemaps supported
  • Per URL: lastmod, changefreq, priority, hreflang alternates, image sitemap URLs, Google News title and publication date
  • Filters: keep or drop URLs by regular expression, or keep only URLs modified after a date or in the last N days
  • Monitor mode (onlyNewUrls): remembers what it has seen and returns only new URLs on the next run, flagged isNew: true
  • Fast and light: no browser, no proxy, 256 MB of memory is enough for most sites

Use cases

  • SEO audits: list all indexable pages, find pages with old lastmod, check hreflang coverage
  • Competitor monitoring: get an alert (with Apify integrations: e-mail, Slack, webhooks, Google Sheets) when a competitor publishes new products or pages
  • Feed a crawler or an LLM pipeline with the exact list of pages to fetch
  • Content inventories and migrations

Input

{
"startUrls": ["apify.com", "https://blog.apify.com/sitemap.xml"],
"excludeUrlPatterns": ["/tag/", "/author/"],
"lastModifiedAfter": "30 days",
"maxUrlsPerSite": 10000
}

For monitoring, add "onlyNewUrls": true and create a schedule (for example daily). On the first run you get all URLs (or none, if you turn off firstRunOutputsAll, which is cheapest); from the second run on, only new ones.

Output

One row per URL (a real row from docs.python.org, hreflang list shortened):

{
"site": "https://docs.python.org/3/",
"sitemapUrl": "https://docs.python.org/sitemap.xml",
"url": "https://docs.python.org/3.12/",
"lastmod": null,
"changefreq": "yearly",
"priority": null,
"alternates": [
{ "hreflang": "de", "url": "https://docs.python.org/de/3.12/" },
{ "hreflang": "es", "url": "https://docs.python.org/es/3.12/" }
],
"imageCount": 0,
"images": [],
"newsTitle": null,
"newsPublishedAt": null
}

A SUMMARY record in the run's key-value store lists, for each site, the sitemaps found and read, how many URLs were found, matched and returned, how many were new, and any errors.

Pricing

  • $0.20 per 1,000 URLs returned ($0.0002 per URL)
  • $0.0005 per sitemap file read (indexes included; a sitemap file holds up to 50,000 URLs)
  • $0.001 per run start

URLs that are filtered out, already seen in monitor mode, or over your caps are not charged; sitemaps that fail are free. Set a maximum cost per run in the run options to stay in control.

Example: monitoring daily a 5,000-page shop with 5 sitemap files and about 20 new pages a day costs about $0.0075 a day after the first run. Extracting all 50,000 URLs of a site once costs about $10.

Good to know

  • The actor reads only sitemaps, never the pages themselves: pages missing from a site's sitemap are not found.
  • It respects each site's robots.txt and waits between requests to the same site; sites that block automated access to their sitemaps are reported in the SUMMARY, not bypassed.
  • The monitor memory is a key-value store named sitemap-url-monitor-state in your account (only short hashes of URLs, not the pages). Delete it to start fresh.
  • Private and internal network addresses are refused.

Support

A site whose sitemap comes out wrong? Open an issue with the URL: fixes are usually quick.