Sitemap URL Extractor: every page of a website avatar

Sitemap URL Extractor: every page of a website

Pricing

from $0.15 / 1,000 url extracteds

Go to Apify Store
Sitemap URL Extractor: every page of a website

Sitemap URL Extractor: every page of a website

Give it a domain, get every page URL in its sitemaps, one row per URL with lastmod, priority, images and hreflang. Finds sitemaps via robots.txt, follows indexes and .gz files, filters by regex or date. $0.15 per 1,000 URLs, sites with no sitemap free.

Pricing

from $0.15 / 1,000 url extracteds

Rating

0.0

(0)

Developer

Elio Saliba

Elio Saliba

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

Give it a domain and get every page URL the site lists in its sitemaps, one row per URL, with last modified date, change frequency and priority. It finds the sitemaps through robots.txt, follows sitemap indexes and .xml.gz files, and stops at the limit you set.

Built for SEO people, developers and researchers who need a clean URL list: to audit a site, seed a crawler, find what changed since last month, or compare a competitor's content with their own.

$0.15 per 1,000 URLs. Websites with no sitemap, unreachable sites and blocked sites are free. Apify's free monthly credit covers a first test run at no cost.

What you get

One row per URL.

ColumnExampleNotes
urlhttps://blog.cloudflare.com/rejected-cloudflare-logosTrimmed, de-duplicated
lastmod2026-07-15T12:25:32.957ZAs the site writes it. null when the sitemap has none
changefreqweeklynull when missing
priority0.50.0 to 1.0, null when missing or out of range
sitemapUrlhttps://blog.cloudflare.com/sitemap-posts.xmlThe file the URL came from
siteblog.cloudflare.comUseful when you list several websites
images["https://.../logo.png"]Only with Include image URLs
alternates[{"hreflang": "fr", "href": "https://.../fr/"}]Only with Include hreflang alternates

A SUMMARY record in the key-value store lists each website you gave: which sitemap files were read, how many URLs were found, skipped or returned, and what went wrong if nothing came back.

Export as JSON, CSV, Excel or HTML.

How to use

  1. Paste websites, one per line. A domain (example.com) works. So does a direct sitemap link such as https://example.com/sitemap_index.xml.
  2. Set Max URLs in total. You pay per URL returned, so start with 1,000 to see the output.
  3. Press Start and open the dataset. Add filters later if you only want part of the site.

Use it from an AI agent

In Claude, ChatGPT or Cursor, add the Apify MCP server (https://mcp.apify.com) and let the agent call this Actor (opstoolkit/sitemap-url-extractor). It needs only sites. Tell the agent a URL limit, because you pay per URL returned.

Example prompt: "List up to 500 URLs from the sitemap of crawlee.dev that contain /docs/ and were modified after 2026-10-01."

Input example

{
"sites": ["https://crawlee.dev", "https://blog.cloudflare.com"],
"maxUrls": 5000,
"maxUrlsPerSite": 3000,
"includePattern": "/blog/",
"modifiedAfter": "2026-07-01",
"includeImages": false,
"includeAlternates": false
}
  • Only URLs matching and Skip URLs matching take regular expressions, for example /blog/ or /tag/|/page/\d+.
  • Only URLs modified after needs a lastmod date. URLs with no lastmod are dropped when it is set.
  • Max URLs per website keeps one huge site from using the whole budget.
  • Only URLs on the same website is on by default. Subdomains of the site are kept, other domains are dropped.

Output example

From a real run on a public site with modifiedAfter set (shortened):

{
"url": "https://blog.cloudflare.com/enabling-google-analytics-on-wordpress-blog",
"lastmod": "2026-07-15T12:25:22.052Z",
"changefreq": null,
"priority": null,
"sitemapUrl": "https://blog.cloudflare.com/sitemap-posts.xml",
"site": "blog.cloudflare.com"
}

And one SUMMARY entry:

{
"input": "https://crawlee.dev",
"site": "crawlee.dev",
"status": "ok",
"sitemapsRead": ["https://crawlee.dev/sitemap.xml"],
"urlsFound": 301,
"urlsReturned": 300,
"problems": []
}

Sites that returned nothing have a status of no_sitemap, blocked_by_robots_txt, unreachable or invalid_input, with a plain sentence in problems, and the same sentence is written to the run log. If no site in the run has a readable sitemap, the run ends as failed with that reason, so a scheduled run or webhook can tell it apart from a run that found URLs.

What it reads

FormatNotes
XML sitemap (urlset)With lastmod, changefreq, priority, image and hreflang entries
Sitemap indexChild sitemaps are followed, up to your Max sitemap files setting
.xml.gzUnzipped with a 60 MB safety limit
Text sitemapOne URL per line
RSS and Atom feedsThe sitemap standard allows them, so a feed link works as a sitemap

Where it looks when you give a domain: the Sitemap: lines in robots.txt first, then /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /sitemap.xml.gz, /wp-sitemap.xml and two common sub-folders.

Real runs

WebsiteURLs returnedSitemap files readComplete?
crawlee.dev4,8442Yes
bbc.co.uk22,9324Stopped at the max URLs cap
apify.com47,0003Stopped at the max URLs cap

One run on a laptop with three websites. It returned 74,776 URLs in about 6 minutes. A small site takes seconds.

Use cases

  • SEO audits: get the list of pages Google is told about, then compare it with what you can crawl or what ranks.
  • Crawler seeds: feed the URLs to a scraper or to the Website SEO and Broken Link Audit Actor.
  • Change monitoring: run it weekly with Only URLs modified after set to last week to see new and updated pages.
  • Competitor research: filter by /blog/ or /products/ to see how much a competitor publishes.
  • Migrations: export old URLs for a redirect map.

Pricing

Pay per event: $0.15 per 1,000 URLs ($0.00015 per URL). Apify adds a small fee for each run start.

Site sizeCost
1,000 URLs$0.15
10,000 URLs$1.50
50,000 URLs$7.50

URLs you filter out are not charged. Duplicates are removed before charging. Set Max URLs in total to cap what a run can cost.

Compared with other options. Sitemap Actors on the Apify Store charge about $0.30 to $0.50 per 1,000 URLs on a paid plan, and more on the free plan. This one is half of that, returns the same fields, and reads text sitemaps and feeds as well.

How it treats other people's servers

  • It follows robots.txt. Sitemaps listed in robots.txt are read. Guessed addresses and child sitemaps are read only if robots.txt allows them.
  • At most 4 files are downloaded at the same time from one website, and 3 websites at once.
  • It sends a plain User-Agent that names the tool.
  • It does not open the pages themselves, only the sitemap files.
  • Addresses that are not on the public internet (localhost, private networks) are refused.

Limits

  • It reads what the site publishes. Pages that are not in a sitemap are not found. Use a crawler for those.
  • Sitemaps can be out of date. A URL in a sitemap may return 404.
  • Some sites hide the sitemap behind a login or a bot check. Those return unreachable or no_sitemap, free of charge.
  • Up to 5,000,000 URLs per run and 5,000 sitemap files per website.

Works well with

Integrations

Everything Apify supports works here: weekly schedules, webhooks, the REST API, and the official integrations with Zapier, Make, n8n and Google Sheets. The API tab on this page has ready code for JavaScript, Python and cURL.

FAQ

Why did I get 0 URLs for a website with many pages? The site has no sitemap, or hides it. Check the SUMMARY record: problems says what was tried. If you know the sitemap address, paste it instead of the domain.

Can it find pages that are not in the sitemap? No. It reads sitemaps only. That is what keeps it cheap and polite.

Does lastmod mean the page really changed? It means the site says so. Some sites set it to today on every page. Treat it as a hint.

Something broke. Open an issue on the Issues tab with the run link. I reply within a day.