Sitemap URL extractor: every URL in a sitemap, with lastmod, as rows

This page is about reading a site's sitemap files and returning the URLs they list. It never opens the pages themselves, so it gives no page text, titles or prices, and a page the site left out of its sitemap is not returned.

SEO teams, researchers and anyone who wants a list of a site's pages, or only the newest ones, start from the sitemap rather than crawling every link.

Short version: one small site → open its sitemap.xml in the browser. Big sites, sitemap indexes, many sites, or only the pages added since last time → Sitemap URL Scraper on Apify.

Use the sitemap file itself when

The Actor saves work when

The input on the Actor's page is already filled in: the sitemap of a large public government site, up to 1,000 URLs. That returned 1,000 URLs from 2 sitemap files in 2.3 seconds for $0.51. The same site in full, with Max URLs set to 1,000,000, was 853,142 URLs from 37 sitemap files in 5 minutes 8 seconds (measured from a home connection on 19 November 2026; at $0.50 per 1,000 that many URLs cost about $427, so set Max URLs to what you need).

Good to know:

Price: $0.50 per 1,000 URLs returned, plus $0.01 per run, charged together with the first URL, so a run that returns no URL costs nothing. A site with 50,000 URLs is about $25. Summary rows, error rows and URLs removed by your filters are free; with onlyNew you pay only for the new URLs.

Try the 1,000-URL example on Apify

From a script

curl -X POST "https://api.apify.com/v2/acts/northbell~sitemap-url-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":["https://www.gov.uk/sitemap.xml"],"maxUrls":1000}'

Rows have type url, summary or error. For a daily list of new pages, add "onlyNew":true and schedule it. To check each of those pages for SEO problems, see the SEO audit API page.

Source: robots.txt and the sitemap files a site publishes. The run identifies itself as northbell-sitemap-urls.

More guides