Sitemap URL Extractor
Pricing
$1.00 / 1,000 results
Sitemap URL Extractor
Extract page URLs and last-modified values from XML sitemaps, nested indexes, and gzip sitemap files.
Pricing
$1.00 / 1,000 results
Rating
0.0
(0)
Developer
Ming Zhang
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a day ago
Last modified
Categories
Features
Share
Export page URLs from XML sitemaps for SEO audits, site migrations, and content inventories. The Actor follows nested sitemap indexes, reads gzip-compressed sitemaps, and records which sitemap listed each URL.
Input
| Field | Default | What it controls |
|---|---|---|
startUrls | Required | HTTP(S) URLs for sitemaps, sitemap indexes, or site roots. For each root the Actor tries /sitemap.xml and discovers additional URLs from Sitemap: lines in /robots.txt. |
maxSitemaps | 50 | Maximum number of distinct sitemap URLs attempted, including indexes and failures. |
maxUrls | 10000 | Maximum number of dataset rows after filtering and deduplication. |
pathContains | Empty | Case-sensitive substring of the URL pathname. |
modifiedSince | Empty | Inclusive YYYY-MM-DD cutoff. The Actor uses the calendar date written in lastmod and skips URLs with missing or invalid dates when this filter is set. |
dedupe | true | Keep the first matching occurrence of each normalized URL across all sitemaps. |
{"startUrls": ["https://example.com/sitemap.xml"],"pathContains": "/articles/","modifiedSince": "2026-01-01"}
Output
The dataset has one row per matching URL. lastmod contains the trimmed value as supplied by the sitemap, or an empty string when absent. sitemap is the requested sitemap URL.
{"url": "https://example.com/articles/sitemap-basics","lastmod": "2026-03-15T09:00:00Z","sitemap": "https://example.com/sitemap.xml"}
Limits
- Requests run sequentially with a 15-second timeout per request and the user agent
OneRice-SitemapExtractor/0.1. - Responses are limited to 50 MiB, including after gzip decompression. Sitemaps must be UTF-8 XML. DTDs and custom entities are unsupported.
- Unavailable and invalid sitemaps are logged and skipped. Results come from page
<loc>entries. The Actor fetches sitemap and discovery files only.
Pricing
Pay per result. The owner sets the price in the Apify Store.
Local development
Use Node.js 20 or newer. Run npm test for the offline core tests. Run npm install and then npm start to use the Actor with the Apify SDK. For local storage, place the input JSON in storage/key_value_stores/default/INPUT.json before starting.