Sitemap URL Extractor
Pricing
from $0.05 / 1,000 unique url saveds
Sitemap URL Extractor
Your go-to sitemap extractor for SEO audits and site migrations. Collect unique page URLs from XML sitemaps and nested indexes with gzip support and URL filters. Export available lastmod, frequency, priority and source sitemap as JSON or CSV.
Pricing
from $0.05 / 1,000 unique url saveds
Rating
0.0
(0)
Developer
O M
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Turn public XML sitemaps into a deduplicated URL inventory with last-modified dates, change-frequency hints, priorities and the sitemap each URL came from. Export JSON, CSV, Excel or XML for SEO inventories, migration planning, content audits and inputs to a later crawl.
This Actor reads sitemap files and nested sitemap indexes. It does not request the listed pages or check their HTTP status. A listed URL may be outdated, redirected or unavailable.
Quick start
Supply a direct sitemap or sitemap-index URL. This example reads the public Apify CLI documentation sitemap:
{"sitemapUrls": ["https://docs.apify.com/cli/sitemap.xml"],"maxItems": 1000,"maxItemsPerInput": 1000,"maxEstimatedCostUsd": 1}
Open Dataset → Export to download the rows. Read OUTPUT → sitemaps for visited documents, excluded entries, pending references and completion status. To traverse an index, use its direct URL, such as https://docs.apify.com/sitemap.xml.
What you receive
| Field | Meaning |
|---|---|
url | A unique page URL from the sitemap; never visited by this Actor |
lastmod, lastmodRaw | Valid source date or timestamp, and the original label |
lastmodPrecision | DATE or TIMESTAMP; date-only values stay date-only |
changefreq, priority | Valid sitemap hints, or null when absent or invalid |
rootUrl, sitemapUrl | Requested input and the document containing this URL |
depth | Number of index steps from the input; the root is depth zero |
warnings | Invalid optional source metadata, without invented replacements |
scrapedAt | When this sitemap document was parsed |
URLs are deduplicated across the run. When several documents list the same URL, the first encountered row supplies its metadata. Query strings are retained. The Actor does not merge conflicting metadata or infer missing dates. Last-modified values are declarations by the website, not proof that content changed.
Example result
This excerpt is from the public documentation sitemap collected on November 12, 2026. The full record is available in examples/url.json.
{"url": "https://docs.apify.com/cli/blog","lastmod": null,"lastmodPrecision": null,"changefreq": "weekly","priority": 0.5,"sitemapUrl": "https://docs.apify.com/cli/sitemap.xml"}
Pricing
The price is $0.0149 per started run + $0.049 per 1,000 saved URLs, including Apify resources used during the run. Check the Pricing tab for the active tariff before running.
| Saved URLs in one run | Total price |
|---|---|
| 0 | $0.0149 |
| 10 | $0.01539 |
| 100 | $0.0198 |
| 736 | $0.050964 |
| 1,000 | $0.0639 |
| 5,000 | $0.2599 |
The startup fee applies even when no URLs are returned. Only saved unique URL rows receive a result fee; index links and error reports do not count as paid results. Separate runs each have their own startup fee. Dataset exports and API usage after a run follow your Apify plan's rates.
Set Apify's Maximum charge per run to cap event fees. maxEstimatedCostUsd is an additional planning allowance; the stricter limit applies. Zero skips source collection and new rows, but does not waive an active startup fee. Allow at least $0.2599 for 5,000 rows at this tariff; the quick-start $1 allowance covers it. Spending and item limits are ceilings, not promises of complete results.
Filters and coverage
urlIncludesaccepts up to 20 literal, case-sensitive URL substrings; any match includes a URL.urlExcludestakes precedence. These filters do not fetch or inspect page content.- Accepts 1–10 direct HTTP(S) sitemap URLs, XML
urlsetdocuments and nestedsitemapindexdocuments. Gzip files and HTTP gzip, deflate or Brotli encoding are supported within the response bounds. - Saves at most 5,000 unique URLs per run.
maxItemsPerInputlimits each input tree. The default is 1,000 for both limits. - Visits at most 50 sitemap documents, with a default of 20, and at most 5 index levels, with a default of 3. Failed sitemap attempts also consume the document limit. Traversal is in input order and breadth-first within each tree.
- Every file must be UTF-8 XML with the standard sitemap namespace. Maximum file size is 2 MiB both compressed and decoded, smaller than the general sitemap protocol's 50 MB limit. Oversized files stop with a reported error.
- Child sitemap requests stay on the final input origin. Listed page URLs must use the sitemap's hostname. Cross-origin references are counted and skipped. Homepage discovery, plain-text sitemap files, RSS sitemaps, image/video/news extensions and cross-site sitemap delegation are outside the supported scope.
- Public access and robots rules are required. Source errors, robots restrictions, long server delays, slow responses or repeated retries can stop collection early. The total run is bounded to five minutes.
sourceExhausted: true means every supported sitemap reference encountered within the input tree was processed without a scope exclusion or interruption. It does not mean every page on the website is listed or reachable. Read errors, invalidEntries, crossOriginReferences, pendingSitemaps and depthLimitedSitemaps before interpreting coverage as complete. A partial document can leave one pending reference even if some of its rows were saved.
Cycles and repeated sitemap references are reported and skipped. Invalid optional dates, priorities or frequency values produce warnings and null fields. Invalid required URLs are counted without creating fabricated rows.
API and AI workflows
Input: direct public sitemap URLs, optional literal URL filters and explicit limits. Output: one row per unique sitemap-listed URL, source sitemap, declared modification metadata and a separate coverage report. Suitable tasks include sitemap-to-spreadsheet exports, URL inventory snapshots, content-migration planning and preparation of a later crawl.
An AI assistant should read OUTPUT.sitemaps alongside dataset rows and verify sourceExhausted before describing the inventory as complete. For reachability checks or article content, pass selected URLs to a separate page-fetching workflow.
Recovery and support
A compatible resumed run re-reads sitemap files and skips confirmed saved URLs. It retains the original cumulative resource and time limits. Changing input requires a fresh run. If a dataset append has an uncertain outcome, automatic continuation stops to avoid duplicate rows or result fees.
When reporting an issue, include the run URL, input sitemap URL and relevant OUTPUT error code. The Actor has no login or proxy input.